aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorGeorg-Johann Lay <avr@gjlay.de>2012-01-02 12:51:57 +0000
committerGeorg-Johann Lay <gjl@gcc.gnu.org>2012-01-02 12:51:57 +0000
commit884f56d1e1ee1a31d6ac75c8f3b3989b8118271e (patch)
tree09faf9ffade22c526948920809d1a98fde9264e0 /gcc/config.gcc
parent94fae14bf8aa693c31a8d19febfffd048edb9535 (diff)
downloadgcc-884f56d1e1ee1a31d6ac75c8f3b3989b8118271e.zip
gcc-884f56d1e1ee1a31d6ac75c8f3b3989b8118271e.tar.gz
gcc-884f56d1e1ee1a31d6ac75c8f3b3989b8118271e.tar.bz2
re PR target/51345 ([avr] Devices with 8-bit SP need their own multilib(s))
contrib/ PR target/51345 * gcc_update (files_and_dependencies): Add gcc/config/avr/t-multilib, gcc/config/avr/multilib.h. libgcc/ PR target/51345 * config/avr/lib1funcs.S: Remove FIXME comments. (SPEED_DIV): Depend on __AVR_HAVE_8BIT_SP__. gcc/ PR target/51345 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h (tmake_file target=avr): Add avr/t-multilib. * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__. * config/avr/genmultilib.awk: New file. * config/avr/t-multilib: New auto-generated file. * config/avr/multilib.h: New auto-generated file. * config/avr/t-avr (AVR_MCUS): New variable. (genopt.sh): Use it. (s-mlib): Depend on t-multilib. (t-multilib, multilib.h): New dependencies. (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS. (MULTILIB_OPTIONS): Remove. (MULTILIB_MATCHES): Remove. (MULTILIB_DIRNAMES): Remove. (MULTILIB_EXCEPTIONS): Remove: * config/avr/genopt.sh: Don't use hard coded file name; pass AVR_MCUS from t-avr instead. From-SVN: r182797
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r--gcc/config.gcc7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc
index d0f7b28..bc2bf05 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -909,13 +909,14 @@ arm*-wince-pe*)
extra_objs="pe.o"
;;
avr-*-rtems*)
- tm_file="elfos.h avr/elf.h avr/avr.h dbxelf.h avr/rtems.h rtems.h newlib-stdint.h"
- tmake_file="avr/t-avr t-rtems avr/t-rtems"
+ tm_file="elfos.h avr/elf.h avr/avr.h avr/multilib.h dbxelf.h avr/rtems.h rtems.h newlib-stdint.h"
+ tmake_file="avr/t-avr avr/t-multilib t-rtems avr/t-rtems"
extra_gcc_objs="driver-avr.o avr-devices.o"
extra_objs="avr-devices.o avr-log.o"
;;
avr-*-*)
- tm_file="elfos.h avr/elf.h avr/avr.h dbxelf.h newlib-stdint.h"
+ tm_file="elfos.h avr/elf.h avr/avr.h avr/multilib.h dbxelf.h newlib-stdint.h"
+ tmake_file="avr/t-avr avr/t-multilib"
use_gcc_stdint=wrap
extra_gcc_objs="driver-avr.o avr-devices.o"
extra_objs="avr-devices.o avr-log.o"