Makefile.in (fixed-funcs,fixed-conv-funcs): filter-out LIB2FUNCS_EXCLUDE before addin...
authorGeorg-Johann Lay <avr@gjlay.de>
Thu, 23 Aug 2012 15:41:03 +0000 (15:41 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Thu, 23 Aug 2012 15:41:03 +0000 (15:41 +0000)
* Makefile.in (fixed-funcs,fixed-conv-funcs): filter-out
LIB2FUNCS_EXCLUDE before adding them to libgcc-objects,
libgcc-s-objects.
* fixed-obj.mk: Only expand dependency if $o is not in
LIB2FUNCS_EXCLUDE.

From-SVN: r190624

libgcc/ChangeLog
libgcc/Makefile.in
libgcc/fixed-obj.mk

index d59a455e54ad76d3beffe5a8536fdcff5f702d7c..33ad51854798e69ae4019d07c8b5d80d93d8033b 100644 (file)
@@ -1,3 +1,11 @@
+2012-08-22  Georg-Johann Lay  <avr@gjlay.de>
+
+       * Makefile.in (fixed-funcs,fixed-conv-funcs): filter-out
+       LIB2FUNCS_EXCLUDE before adding them to libgcc-objects,
+       libgcc-s-objects.
+       * fixed-obj.mk: Only expand dependency if $o is not in
+       LIB2FUNCS_EXCLUDE.
+
 2012-08-22  H.J. Lu  <hongjiu.lu@intel.com>
 
        * config/i386/t-linux (HOST_LIBGCC2_CFLAGS): New.
index b37fdb90e0ac7369df7d56b55d372e60ff5e1a82..1de1b8e5a48b2645e033c1b7e37dbda841746b4a 100644 (file)
@@ -763,9 +763,9 @@ iter-to := $(fixed-modes)
 include $(srcdir)/empty.mk $(patsubst %,$(srcdir)/fixed-obj.mk,$(iter-items))
 
 # Add arithmetic functions to list of objects to be built
-libgcc-objects += $(patsubst %,%$(objext),$(fixed-funcs))
+libgcc-objects += $(patsubst %,%$(objext),$(filter-out $(LIB2FUNCS_EXCLUDE),$(fixed-funcs)))
 ifeq ($(enable_shared),yes)
-libgcc-s-objects += $(patsubst %,%_s$(objext),$(fixed-funcs))
+libgcc-s-objects += $(patsubst %,%_s$(objext),$(filter-out $(LIB2FUNCS_EXCLUDE),$(fixed-funcs)))
 endif
 
 # Convert from or to fractional
@@ -782,9 +782,9 @@ iter-to := $(fixed-conv-to)
 include $(srcdir)/empty.mk $(patsubst %,$(srcdir)/fixed-obj.mk,$(iter-items))
 
 # Add conversion functions to list of objects to be built
-libgcc-objects += $(patsubst %,%$(objext),$(fixed-conv-funcs))
+libgcc-objects += $(patsubst %,%$(objext),$(filter-out $(LIB2FUNCS_EXCLUDE),$(fixed-conv-funcs)))
 ifeq ($(enable_shared),yes)
-libgcc-s-objects += $(patsubst %,%_s$(objext),$(fixed-conv-funcs))
+libgcc-s-objects += $(patsubst %,%_s$(objext),$(filter-out $(LIB2FUNCS_EXCLUDE),$(fixed-conv-funcs)))
 endif
 
 endif
index ac699d2f9e336feeb2875d99301a4e991340bcb1..4db7a5792c7a88e31942c669783d4d0b14e6817d 100644 (file)
@@ -22,6 +22,7 @@ endif
 
 #$(info $o$(objext): -DL$($o-label) $($o-opt))
 
+ifneq ($o,$(filter $o,$(LIB2FUNCS_EXCLUDE)))
 $o$(objext): %$(objext): $(srcdir)/fixed-bit.c
        $(gcc_compile) -DL$($*-label) $($*-opt) -c $(srcdir)/fixed-bit.c $(vis_hide)
 
@@ -29,3 +30,4 @@ ifeq ($(enable_shared),yes)
 $(o)_s$(objext): %_s$(objext): $(srcdir)/fixed-bit.c
        $(gcc_s_compile) -DL$($*-label) $($*-opt) -c $(srcdir)/fixed-bit.c
 endif
+endif