AVR C Runtime Library - Bugs: bug #26284, boot_lock_fuse_bits_get does not...
You are not allowed to post comments on this tracker with your current authentication level.
bug #26284: boot_lock_fuse_bits_get does not compile under gcc 4.3.X
Submitter: | Brad Schick <schickb> | ||
Submitted: | Wed 22 Apr 2009 07:17:50 AM UTC | ||
Category: | Library | Severity: | 3 - Normal |
Priority: | 5 - Normal | Item Group: | libc code |
Status: | Fixed | Assigned to: | arcanum |
Percent Complete: | 100% | Open/Closed: | Closed |
Release: | 1.6.5 | Fixed Release: | 1.6.4 |
Sat 25 Apr 2009 09:16:24 PM UTC, comment #2: |
Eric Weddington <arcanum> |
Wed 22 Apr 2009 07:51:49 AM UTC, comment #1: This actually may have been like for a long time, but I think it should still be changed. As is, the macro is a hassle to use since it doesn't accept a variable; it must be hard-coded in a switch statement or something. Also, the very similar 'boot_signature_byte_get' isn't limited to constants. My patch makes 'boot_lock_fuse_bits_get' more flexible like 'boot_signature_byte_get'.
|
Brad Schick <schickb> |
Wed 22 Apr 2009 07:17:50 AM UTC, original submission:
The 'boot_lock_fuse_bits_get' macro in <avr/boot.h> causes a compile error when passed a non-constant argument. Building the code below in a fairly recent version of GCC (like 4.3.2) produces the error:
|
Brad Schick <schickb> |
Depends on the following items: None found
Items that depend on this one: None found
Follow 6 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2009-04-25 | arcanum | Status | None | Fixed | |
Percent Complete | 0% | 100% | |||
Assigned to | None | arcanum | |||
Open/Closed | Open | Closed | |||
Fixed Release | None | 1.6.4 | |||
2009-04-22 | schickb | Attached File | - | Added boot_lock_fuse_bits_get.patch, #17992 |
Powered by Savane 3.13-02a9.
Corresponding source code
Thanks for the patch!