]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Append to HOST_LIBGCC2_CFLAGS in libgcc
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Mon, 7 Nov 2011 17:14:32 +0000 (17:14 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Mon, 7 Nov 2011 17:14:32 +0000 (17:14 +0000)
* config.host (tmake_file): Correct comment.
(bfin*-elf*): Remove bfin/t-elf from tmake_file, add
t-libgcc-pic.
(bfin*-uclinux*): Likewise.
(bfin*-linux-uclibc*): Likewise.
(xstormy16-*-elf): Add stormy16/t-stormy16 to tmake_file.

* config/arm/t-elf (HOST_LIBGCC2_CFLAGS): Append instead of
assigning.
* config/arm/t-strongarm-elf (HOST_LIBGCC2_CFLAGS): Likewise.
* config/avr/t-avr (HOST_LIBGCC2_CFLAGS): Likewise.
* config/c6x/t-elf (HOST_LIBGCC2_CFLAGS): Likewise.
* config/h8300/t-h8300 (HOST_LIBGCC2_CFLAGS): Likewise.
* config/lm32/t-elf (HOST_LIBGCC2_CFLAGS): Likewise.
* config/m32r/t-m32r (HOST_LIBGCC2_CFLAGS): Likewise.
* config/mcore/t-mcore (HOST_LIBGCC2_CFLAGS): Likewise.
* config/mips/t-elf (HOST_LIBGCC2_CFLAGS): Likewise.
* config/mmix/t-mmix (HOST_LIBGCC2_CFLAGS): Likewise.
* config/pdp11/t-pdp11 (HOST_LIBGCC2_CFLAGS): Likewise.
* config/picochip/t-picochip (HOST_LIBGCC2_CFLAGS): Likewise.
* config/stormy16/t-stormy16 (HOST_LIBGCC2_CFLAGS): Likewise.
* config/t-openbsd-thread (HOST_LIBGCC2_CFLAGS): Likewise.

* config/bfin/t-elf: Remove.
* config/t-vxworks (HOST_LIBGCC2_CFLAGS): Remove.

From-SVN: r181098

19 files changed:
libgcc/ChangeLog
libgcc/config.host
libgcc/config/arm/t-elf
libgcc/config/arm/t-strongarm-elf
libgcc/config/avr/t-avr
libgcc/config/bfin/t-elf [deleted file]
libgcc/config/c6x/t-elf
libgcc/config/h8300/t-h8300
libgcc/config/lm32/t-elf
libgcc/config/m32r/t-m32r
libgcc/config/mcore/t-mcore
libgcc/config/mips/t-elf
libgcc/config/mmix/t-mmix
libgcc/config/pdp11/t-pdp11
libgcc/config/picochip/t-picochip
libgcc/config/sh/t-sh
libgcc/config/stormy16/t-stormy16
libgcc/config/t-openbsd-thread
libgcc/config/t-vxworks

index ecfac19759c9aa446cf7af4ae0b49e6b6a81bb68..a0b5a89b84963352352db4511d1b7c8267adc826 100644 (file)
@@ -1,3 +1,31 @@
+2011-11-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * config.host (tmake_file): Correct comment.
+       (bfin*-elf*): Remove bfin/t-elf from tmake_file, add
+       t-libgcc-pic.
+       (bfin*-uclinux*): Likewise.
+       (bfin*-linux-uclibc*): Likewise.
+       (xstormy16-*-elf): Add stormy16/t-stormy16 to tmake_file.
+
+       * config/arm/t-elf (HOST_LIBGCC2_CFLAGS): Append instead of
+       assigning.
+       * config/arm/t-strongarm-elf (HOST_LIBGCC2_CFLAGS): Likewise.
+       * config/avr/t-avr (HOST_LIBGCC2_CFLAGS): Likewise.
+       * config/c6x/t-elf (HOST_LIBGCC2_CFLAGS): Likewise.
+       * config/h8300/t-h8300 (HOST_LIBGCC2_CFLAGS): Likewise.
+       * config/lm32/t-elf (HOST_LIBGCC2_CFLAGS): Likewise.
+       * config/m32r/t-m32r (HOST_LIBGCC2_CFLAGS): Likewise.
+       * config/mcore/t-mcore (HOST_LIBGCC2_CFLAGS): Likewise.
+       * config/mips/t-elf (HOST_LIBGCC2_CFLAGS): Likewise.
+       * config/mmix/t-mmix (HOST_LIBGCC2_CFLAGS): Likewise.
+       * config/pdp11/t-pdp11 (HOST_LIBGCC2_CFLAGS): Likewise.
+       * config/picochip/t-picochip (HOST_LIBGCC2_CFLAGS): Likewise.
+       * config/stormy16/t-stormy16 (HOST_LIBGCC2_CFLAGS): Likewise.
+       * config/t-openbsd-thread (HOST_LIBGCC2_CFLAGS): Likewise.
+
+       * config/bfin/t-elf: Remove.
+       * config/t-vxworks (HOST_LIBGCC2_CFLAGS): Remove.
+
 2011-11-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
        * config.host (*-*-rtems*): Add t-rtems to tmake_file.
index 835c5ceffdbc18ab867d003f9253ecee160f3f92..8af99f57987abdeb1fa7836446f1c72b3c3fac4f 100644 (file)
@@ -58,8 +58,7 @@
 #                      Defaults to "$cpu_type/sfp-machine.h" if it exists,
 #                      no-sfp-machine.h otherwise.
 #  tmake_file          A list of machine-description-specific
-#                      makefile-fragments, if different from
-#                      "$cpu_type/t-$cpu_type".
+#                      makefile fragments.
 #  tm_defines          List of target macros to define for all compilations.
 #  tm_file             A list of target macro files used only for code
 #                      built for the target, not the host.  These files
@@ -402,16 +401,16 @@ avr-*-*)
        tm_file="$tm_file avr/avr-lib.h"
        ;;
 bfin*-elf*)
-       tmake_file="bfin/t-bfin bfin/t-elf bfin/t-crtlibid bfin/t-crtstuff t-fdpbit"
+       tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
        extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o crtlibid.o"
         ;;
 bfin*-uclinux*)
-       tmake_file="bfin/t-bfin bfin/t-elf bfin/t-crtlibid bfin/t-crtstuff t-fdpbit"
+       tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
        extra_parts="$extra_parts crtbeginS.o crtendS.o crtlibid.o"
        md_unwind_header=bfin/linux-unwind.h
         ;;
 bfin*-linux-uclibc*)
-       tmake_file="$tmake_file bfin/t-bfin bfin/t-elf bfin/t-crtstuff t-fdpbit bfin/t-linux"
+       tmake_file="$tmake_file bfin/t-bfin bfin/t-crtstuff t-libgcc-pic t-fdpbit bfin/t-linux"
        # No need to build crtbeginT.o on uClibc systems.  Should probably
        # be moved to the OS specific section above.
        extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
@@ -1099,7 +1098,7 @@ vax-*-netbsdelf*)
 vax-*-openbsd*)
        ;;
 xstormy16-*-elf)
-       tmake_file=t-fdpbit
+       tmake_file="stormy16/t-stormy16 t-fdpbit"
        ;;
 xtensa*-*-elf*)
        tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-elf"
index 414484eb9ca8cc45e4fb0dd2a244f2c55fac990a..d9e8064e4deaaf3a436f0710d121c3263f78863c 100644 (file)
@@ -15,4 +15,4 @@ LIB1ASMFUNCS += _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_tls _bb_init_func \
 # Currently there is a bug somewhere in GCC's alias analysis
 # or scheduling code that is breaking _fpmul_parts in fp-bit.c.
 # Disabling function inlining is a workaround for this problem.
-HOST_LIBGCC2_CFLAGS = -fno-inline
+HOST_LIBGCC2_CFLAGS += -fno-inline
index 369a839373855af4e63cfe8ec3cae3565bb35019..45d1b9932189426d72b9c28bcd8a5d5ea8ea3451 100644 (file)
@@ -3,4 +3,4 @@ LIB1ASMFUNCS += _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_tls _bb_init_func _clzsi
 # Currently there is a bug somewhere in GCC's alias analysis
 # or scheduling code that is breaking _fpmul_parts in fp-bit.c.
 # Disabling function inlining is a workaround for this problem.
-HOST_LIBGCC2_CFLAGS = -fno-inline
+HOST_LIBGCC2_CFLAGS += -fno-inline
index 63f7460e2b3131c642c4200a70f7badeabe85314..cd529ae860657c1cfa0f3c09889479f70724e55d 100644 (file)
@@ -53,7 +53,7 @@ LIB2FUNCS_EXCLUDE = \
 # We do not have the DF type.
 # Most of the C functions in libgcc2 use almost all registers,
 # so use -mcall-prologues for smaller code size.
-HOST_LIBGCC2_CFLAGS = -DDF=SF -Dinhibit_libc -mcall-prologues -Os
+HOST_LIBGCC2_CFLAGS += -DDF=SF -Dinhibit_libc -mcall-prologues -Os
 
 # Extra 16-bit integer functions.
 intfuncs16 = _absvXX2 _addvXX3 _subvXX3 _mulvXX3 _negvXX2 _clrsbXX2
diff --git a/libgcc/config/bfin/t-elf b/libgcc/config/bfin/t-elf
deleted file mode 100644 (file)
index cb243e6..0000000
+++ /dev/null
@@ -1 +0,0 @@
-HOST_LIBGCC2_CFLAGS = $(PICFLAG)
index 18819666722d309d93e401078017b85acba9e5fd..c58c614849cb5c27589d8cf56a5c870f9777b777 100644 (file)
@@ -20,7 +20,7 @@ LIB2ADD = $(srcdir)/config/c6x/gef.c \
           $(srcdir)/config/c6x/eqd.c
 
 # Avoid failures when the user's GOT becomes too large.
-HOST_LIBGCC2_CFLAGS = -msdata=none
+HOST_LIBGCC2_CFLAGS += -msdata=none
 
 LIB2ADDEH = $(srcdir)/config/c6x/unwind-c6x.c \
   $(srcdir)/config/c6x/libunwind.S \
index 750529d92c237a2b785c8f965483bc890f1269a0..b6448523e344242199e33a2c821add795acb3cc3 100644 (file)
@@ -10,4 +10,4 @@ LIB2ADD = \
        $(srcdir)/config/h8300/fixunssfsi.c
 
 # We do not have DF type, so fake out the libgcc2 compilation.
-HOST_LIBGCC2_CFLAGS = -DDF=SF
+HOST_LIBGCC2_CFLAGS += -DDF=SF
index b1ee8f2a253276db7391360266195f592434e293..f96c0988b075e42caf1c99ffe2e2fe9458dfb929 100644 (file)
@@ -1,2 +1,2 @@
 CRTSTUFF_T_CFLAGS = -G 0 -msign-extend-enabled
-HOST_LIBGCC2_CFLAGS = -G 0 -msign-extend-enabled
+HOST_LIBGCC2_CFLAGS += -G 0 -msign-extend-enabled
index f32cbbef4ee2a4ad64edeb9f148121227a2d325a..861044b15b9ca8efc9555881010861da4d191f33 100644 (file)
@@ -1,6 +1,6 @@
 # Turn off the SDA while compiling libgcc2.  There are no headers for it
 # and we want maximal upward compatibility here.
-HOST_LIBGCC2_CFLAGS = -G 0
+HOST_LIBGCC2_CFLAGS += -G 0
 
 # We need to use -fpic when we are using gcc to compile the routines in
 # initfini.c.  This is only really needed when we are going to use gcc/g++
index fe024c7aee4368987a07be5d934a7f0c9fc57755..8268a17e7adfc806f7c8a30433732f146aed9a1a 100644 (file)
@@ -2,4 +2,4 @@ LIB1ASMSRC    = mcore/lib1funcs.S
 LIB1ASMFUNCS  = _divsi3 _udivsi3 _modsi3 _umodsi3
 
 # could use -msifilter to be safe from interrupt/jmp interactions and others.
-HOST_LIBGCC2_CFLAGS = -O3 -DNO_FLOATLIB_FIXUNSDFSI #-msifilter
+HOST_LIBGCC2_CFLAGS += -O3 -DNO_FLOATLIB_FIXUNSDFSI #-msifilter
index 3a1dfd7648cf40fa1e912b8bdc815095512864ad..651f10a530387ec2ae2c94f27694cf39440430d7 100644 (file)
@@ -1,3 +1,3 @@
 # We must build libgcc2.a with -G 0, in case the user wants to link
 # without the $gp register.
-HOST_LIBGCC2_CFLAGS = -G 0
+HOST_LIBGCC2_CFLAGS += -G 0
index 40ee1e4bdb1f3e5bbc4163767084fa22bca38266..2ee4f001ad695d9b8b80515fc1dcb019eac71986 100644 (file)
@@ -1,4 +1,4 @@
-HOST_LIBGCC2_CFLAGS = -mlibfuncs -O2
+HOST_LIBGCC2_CFLAGS += -mlibfuncs -O2
 
 # We need to turn off some assumptions on normality for code in crtstuff.c
 # and crt{i,n}.S, specifically about execution not continuing past the
index bcd88e4426c398225ac1d8725967e2c4ddac3cda..7cadae11a2adcbb1a24bf0804af6bb4bd2a89fb9 100644 (file)
@@ -5,4 +5,4 @@ LIB2ADD = $(srcdir)/udivmod.c \
          $(srcdir)/memmove.c \
          $(srcdir)/memset.c
 
-HOST_LIBGCC2_CFLAGS = -O2 -mfloat32
+HOST_LIBGCC2_CFLAGS += -O2 -mfloat32
index dd65f9e77d9ee3e0015c335d0b431bd078adfc0f..4de5dbbdcd3462d0736cdea8a5033cb40e675f4f 100644 (file)
@@ -25,7 +25,7 @@ LIB2ADD = \
 
 # Special libgcc setup. Make single/double floating point the same,
 # and use our own include files.
-HOST_LIBGCC2_CFLAGS = -DDF=SF -I../../includes/
+HOST_LIBGCC2_CFLAGS += -DDF=SF -I../../includes/
 
 # Switch off all debugging for the embedded libraries.
 # (embedded processors need small libraries by default).
index 1229b5cbaf2c3ecd50c19f6464d8e61ee0ff6b69..efbaff8479ea62b89598fc62afb772135917bee8 100644 (file)
@@ -59,5 +59,5 @@ div_table-4-300.o: $(srcdir)/config/sh/lib1funcs-4-300.S
 libgcc-4-300.a: div_table-4-300.o
        $(AR_CREATE_FOR_TARGET) $@ div_table-4-300.o
 
-HOST_LIBGCC2_CFLAGS = -mieee
+HOST_LIBGCC2_CFLAGS += -mieee
 
index 8726a3dc4fc80266da3879252d24928f75583987..d62d167d93d455ffd149316d92ca89c59a4619ba 100644 (file)
@@ -36,4 +36,4 @@ LIB2ADD = \
        $(srcdir)/config/stormy16/cmpsi2.c \
        $(srcdir)/config/stormy16/ucmpsi2.c
 
-HOST_LIBGCC2_CFLAGS = -O2
+HOST_LIBGCC2_CFLAGS += -O2
index 17d17edf9363a0239d9eadd8f3d2cfae920b1e5e..50b61e5865f8ed11becfa8291d08a9203021ea61 100644 (file)
@@ -1,3 +1,3 @@
 # This is currently needed to compile libgcc2 for threads support
-HOST_LIBGCC2_CFLAGS=-pthread
+HOST_LIBGCC2_CFLAGS += -pthread
 
index ab8f014dd5d2e0237c50b7080fcef72e97818b80..3647f75d572bcd1e2419e1c991e8133b73caecc2 100644 (file)
@@ -1,7 +1,3 @@
-# FIXME: Need to specify the next two?
-# No special flags needed for libgcc.a
-HOST_LIBGCC2_CFLAGS =
-
 # Don't build libgcc.a with debug info
 LIBGCC2_DEBUG_CFLAGS =