On Tue, Jan 20, 2004 at 01:37:16PM +0100, Maciej W. Rozycki wrote:
>
> It took a bit longer than I planned, sorry. Anyway, here are two
> functionally equivalent patches, for 2.4 and the head, that remove an ISA
> specification if a tool supports "-march=" and "-mabi=" at the same time.
> Please try the appropriate one.
>
Tried the head one, it had some typos (patch follows). Unfortunately, as I wrote
earlier, gcc-3.2 doesn't set the ISA correctly when using -march=, so
it doesn't work for 3.2.
--- linux-mips-2.6.orig/arch/mips/Makefile 2004-01-06 21:17:57.000000000
+0100
+++ linux.work/arch/mips/Makefile 2004-01-20 21:14:12.000000000 +0100
@@ -111,6 +111,12 @@
if test x$(gcc-abi) != x$(gas-abi); then \
gas_abi="-Wa,-$(gas-abi) -Wa,-mgp$(gcc-abi)"; \
fi; \
+if test "$$gcc_opt" = -march= && test -n "$$gcc_abi"; then \
+ gcc_isa=; \
+fi; \
+if test "$$gas_opt" = -Wa,-march= && test -n "$$gas_abi"; then \
+ gas_isa=; \
+fi; \
echo $$gcc_abi $$gcc_opt$$gcc_cpu $$gcc_isa $$gas_abi $$gas_opt$$gas_cpu
$$gas_isa)
#
--
Dimitri Torfs | NSCE
dimitri@sonycom.com | The Corporate Village
tel: +32 2 7008541 | Da Vincilaan 7 - D1
fax: +32 2 7008622 | B-1935 Zaventem - Belgium
|