This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch]: Apply Multilib Options to CCASFLAGS


The attached patch has already been applied to sourceware.org to enable newlib to build multilibs properly after converting to updated autotools.

The newer autoconf and automake use separate flags (CCASFLAGS) for compiling .S files which are used in newlib for machine-specific files. The top-level config-ml.in adds multilib options to CFLAGS, but not to CCASFLAGS. This results in .S code being incorrectly compiled in the multilibs (e.g. arm thumb multilib code compiled without -mthumb).

Please apply if accepted.

-- Jeff J.

2006-06-05 Jeff Johnston <jjohnstn@redhat.com>

        * config-ml.in: Alter CCASFLAGS to include special
        multilib options the same as is done for CFLAGS.

--- config-ml.in	2006-01-04 20:18:26.000000000 -0500
+++ /home/cygnus/jjohnstn/sourceware/src/config-ml.in	2006-06-08 12:07:05.000000000 -0400
@@ -551,6 +551,7 @@ multi-do:
 		flags=`echo $$i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
 		if (cd ../$${dir}/$${lib}; $(MAKE) $(FLAGS_TO_PASS) \
 				CFLAGS="$(CFLAGS) $${flags}" \
+				CCASFLAGS="$(CCASFLAGS) $${flags}" \
 				FCFLAGS="$(FCFLAGS) $${flags}" \
 				FFLAGS="$(FFLAGS) $${flags}" \
 				ADAFLAGS="$(ADAFLAGS) $${flags}" \

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]