[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-commit] [2251] bug #34047: missing math.h include in delay.h
From: |
Joerg Wunsch |
Subject: |
[avr-libc-commit] [2251] bug #34047: missing math.h include in delay.h |
Date: |
Wed, 14 Sep 2011 08:20:34 +0000 |
Revision: 2251
http://svn.sv.gnu.org/viewvc/?view=rev&root=avr-libc&revision=2251
Author: joerg_wunsch
Date: 2011-09-14 08:20:33 +0000 (Wed, 14 Sep 2011)
Log Message:
-----------
bug #34047: missing math.h include in delay.h
Include <math.h>.
Ticket Links:
------------
http://savannah.gnu.org/bugs/?34047
Modified Paths:
--------------
trunk/avr-libc/ChangeLog
trunk/avr-libc/NEWS
trunk/avr-libc/include/util/delay.h.in
Modified: trunk/avr-libc/ChangeLog
===================================================================
--- trunk/avr-libc/ChangeLog 2011-09-14 08:17:34 UTC (rev 2250)
+++ trunk/avr-libc/ChangeLog 2011-09-14 08:20:33 UTC (rev 2251)
@@ -1,5 +1,10 @@
2011-09-14 Joerg Wunsch <address@hidden>
+ bug #34047: missing math.h include in delay.h
+ * util/delay.h.in: include <math.h>
+
+2011-09-14 Joerg Wunsch <address@hidden>
+
* util/delay.h.in: Fall back to the historic algorithm when
compiling within a freestanding environment.
Modified: trunk/avr-libc/NEWS
===================================================================
--- trunk/avr-libc/NEWS 2011-09-14 08:17:34 UTC (rev 2250)
+++ trunk/avr-libc/NEWS 2011-09-14 08:20:33 UTC (rev 2251)
@@ -14,6 +14,7 @@
[#33130] twitest.c source code is broken
[#33230] Sleep modes have incorrect names for ATtiny261/461/861
[#33238] Wrong _VECTORS_SIZE for mega8U2 et al
+ [#34047] missing math.h include in delay.h
[no-id] New names for CLKSTA/CLKSEL0/1 for AT90USB82/162
system when power_all_disable() is used
[no-id] util/delay.h would not compile with -ffreestanding
Modified: trunk/avr-libc/include/util/delay.h.in
===================================================================
--- trunk/avr-libc/include/util/delay.h.in 2011-09-14 08:17:34 UTC (rev
2250)
+++ trunk/avr-libc/include/util/delay.h.in 2011-09-14 08:20:33 UTC (rev
2251)
@@ -95,6 +95,12 @@
# warning "Compiler optimizations disabled; functions from <util/delay.h>
won't work as designed"
#endif
+#if __HAS_DELAY_CYCLES && defined(__OPTIMIZE__) && \
+ !defined(__DELAY_BACKWARD_COMPATIBLE__) && \
+ __STDC_HOSTED__
+# include <math.h>
+#endif
+
/**
\ingroup util_delay
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [avr-libc-commit] [2251] bug #34047: missing math.h include in delay.h,
Joerg Wunsch <=