gcc/
authorgjl <gjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Feb 2015 10:51:10 +0000 (10:51 +0000)
committergjl <gjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Feb 2015 10:51:10 +0000 (10:51 +0000)
* config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220937 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/avr/stdfix.h

index 4bbdfe3..bcae92c 100644 (file)
@@ -1,3 +1,7 @@
+2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
+
+       * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
+
 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/65170
index a743335..51f848b 100644 (file)
@@ -233,4 +233,13 @@ typedef long long unsigned int uint_uk_t;
 #define roundfx   __builtin_avr_roundfx
 #define countlsfx __builtin_avr_countlsfx
 
+
+/* Hook in stuff from AVR-Libc.  */
+
+#if (defined (__WITH_AVRLIBC__)                 \
+     && defined (__has_include)                 \
+     && __has_include (<stdfix-avrlibc.h>))
+#include <stdfix-avrlibc.h>
+#endif
+
 #endif /* _AVRGCC_STDFIX_H */