AVR C Runtime Library - Bugs: bug #19009, Make <util/delay.h> issue a...
You are not allowed to post comments on this tracker with your current authentication level.
bug #19009: Make <util/delay.h> issue a warning when optimizations are turned off
Submitter: | Joerg Wunsch <joerg_wunsch> | ||
Submitted: | Fri 09 Feb 2007 10:35:33 AM UTC | ||
Category: | Header | Severity: | 2 - Minor |
Priority: | 7 - High | Item Group: | Header files |
Status: | Fixed | Assigned to: | joerg_wunsch |
Percent Complete: | 0% | Open/Closed: | Closed |
Release: | None | Fixed Release: | None |
Fri 09 Feb 2007 10:42:22 AM UTC, comment #1: |
Joerg Wunsch <joerg_wunsch> |
Fri 09 Feb 2007 10:35:33 AM UTC, original submission:
Many users attempt to use the inline functions from <util/delay.h>
|
Joerg Wunsch <joerg_wunsch> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
Follow 5 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2007-05-13 | joerg_wunsch | Status | None | Fixed | |
Assigned to | None | joerg_wunsch | |||
Open/Closed | Open | Closed | |||
2007-05-06 | arcanum | Priority | 9 - Immediate | 7 - High | |
2007-03-25 | arcanum | Priority | 5 - Normal | 9 - Immediate |
Powered by Savane 3.13-d3ae.
Corresponding source code
It might be worth considering whether throwing possible
unfounded warnings (about F_CPU and/or missing optimization)
to those people could be avoided who are not interested in the
_delay_us() and _delay_ms() functions at all but only in
_delay_loop_1() and _delay_loop_2(). These two functions have
no special requirements (like optimization).
One option for this is to completely disable _delay_ms() and
delay_us() (including their checks for F_CPU and __OPTIMIZE_)
based on the user predefining a macro, say _NO_DELAY_US_DELAY_MS
or such before including <util/delay.h>.