This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Unreviewed libgcc build patch
Paolo Bonzini <bonzini@gnu.org> writes:
> Ok without the commented info evaluation, and with the per-target
> macro renamed to c_flags-$<.
Here's what I've installed after rebuilding libgcc and verifying that
-fexceptions still isn't applied to enable-execute-stack.c.
Thanks.
Rainer
2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* shared-object.mk (c_flags-$o): Save c_flags.
($(base)$(objext)): Use it.
($(base)_s$(objext)): Likewise.
Index: libgcc/shared-object.mk
===================================================================
--- libgcc/shared-object.mk (revision 175260)
+++ libgcc/shared-object.mk (working copy)
@@ -6,13 +6,15 @@
base := $(basename $(notdir $o))
+c_flags-$o := $(c_flags)
+
ifeq ($(suffix $o),.c)
$(base)$(objext): $o
- $(gcc_compile) $(c_flags) -c $< $(vis_hide)
+ $(gcc_compile) $(c_flags-$<) -c $< $(vis_hide)
$(base)_s$(objext): $o
- $(gcc_s_compile) $(c_flags) -c $<
+ $(gcc_s_compile) $(c_flags-$<) -c $<
else
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University