diff options
author | Georg-Johann Lay <avr@gjlay.de> | 2012-09-05 08:47:50 +0000 |
---|---|---|
committer | Georg-Johann Lay <gjl@gcc.gnu.org> | 2012-09-05 08:47:50 +0000 |
commit | b588ae3074e258f5c736034c212e7499a565746f (patch) | |
tree | 9f336c5bfcd0b1ffef11bb616b7591f8823a8ed2 /gcc/config.gcc | |
parent | 4efbb06f6737868e79b3791af3462fb58da91013 (diff) | |
download | gcc-b588ae3074e258f5c736034c212e7499a565746f.zip gcc-b588ae3074e258f5c736034c212e7499a565746f.tar.gz gcc-b588ae3074e258f5c736034c212e7499a565746f.tar.bz2 |
re PR target/54461 ([avr] add configure option for better AVR-Libc integration)
PR target/54461
* configure.ac (noconfigdirs,target=avr-*-*): Add target-newlib,
target-libgloss if not configured --with-avrlibc=no.
* configure: Regenerate.
libgcc/
PR target/54461
* config.host (tmake_file,host=avr-*-*): Add avr/t-avrlibc if
not configured --with-avrlibc=no.
* config/avr/t-avrlibc: New file.
* Makefile.in (FPBIT_FUNCS): filter-out LIB2FUNCS_EXCLUDE.
(DPBIT_FUNCS): Ditto.
(TPBIT_FUNCS): Ditto.
gcc/
PR target/54461
* config.gcc (tm_file,target=avr-*-*): Add avr/avrlibc.h if
not configured --with-avrlibc=no.
(tm_defines,target=avr-*-*): Add WITH_AVRLIBC if not configured
--with-avrlibc=no.
* config/avr/avrlibc.h: New file.
* config/avr/avr-c.c: Build-in define __WITH_AVRLIBC__ if
not configured --with-avrlibc=no.
* doc/invoke.texi (AVR Built-in Macros): Document __WITH_AVRLIBC__
From-SVN: r190967
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index 514f672..6d9c68d 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -892,6 +892,10 @@ avr-*-rtems*) ;; avr-*-*) tm_file="elfos.h avr/elf.h avr/avr.h dbxelf.h avr/avr-stdint.h" + if test x${with_avrlibc} != xno; then + tm_file="${tm_file} ${cpu_type}/avrlibc.h" + tm_defines="${tm_defines} WITH_AVRLIBC" + fi tmake_file="avr/t-avr avr/t-multilib" use_gcc_stdint=wrap extra_gcc_objs="driver-avr.o avr-devices.o" |