aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGeorg-Johann Lay <avr@gjlay.de>2015-02-24 10:51:10 +0000
committerGeorg-Johann Lay <gjl@gcc.gnu.org>2015-02-24 10:51:10 +0000
commitdd07a06fe79702db5dcb6836c186513a659bc288 (patch)
tree4fb5391ad23336b6b12f723b9958c0dd5d771bbc /gcc
parentce551f1268b02453e8465583528da72244cbb222 (diff)
downloadgcc-dd07a06fe79702db5dcb6836c186513a659bc288.zip
gcc-dd07a06fe79702db5dcb6836c186513a659bc288.tar.gz
gcc-dd07a06fe79702db5dcb6836c186513a659bc288.tar.bz2
stdfix.h [...]: Include <stdfix-avrlibc.h>.
gcc/ * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>. From-SVN: r220937
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/avr/stdfix.h9
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4bbdfe3..bcae92c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/avr/stdfix.h b/gcc/config/avr/stdfix.h
index a743335..51f848b 100644
--- a/gcc/config/avr/stdfix.h
+++ b/gcc/config/avr/stdfix.h
@@ -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 */