Mixed sparc -m32/-m64 testsuite failures
Kaveh R. Ghazi
ghazi@caip.rutgers.edu
Tue Apr 16 23:19:00 GMT 2002
> From: Richard Henderson <rth@redhat.com>
>
> On Tue, Apr 16, 2002 at 07:36:17AM -0700, Jim Wilson wrote:
> > Use %e to print an error message. gcc/config/mips/mips.h for instance has
> > %{mgp32: %{mfp64:%emay not use both -mgp32 and -mfp64}
>
> Good idea.
> r~
> * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
Wouldn't some of the other sparc ports need this?
(Note, please sanity check this, to me specs are a twisty maze of
little passages, all alike.)
Tested via cross-compiling cc1 to sparc64-unknown-linux-gnu and
sparc64-unknown-netbsd and compiling random C programs with -m32 -m64
to see that the error message is sent.
Ok to install?
Thanks,
--Kaveh
2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
* sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
diff -rup orig/egcc-3.1-CVS20020416/gcc/config/sparc/linux64.h egcc-3.1-CVS20020416/gcc/config/sparc/linux64.h
--- orig/egcc-3.1-CVS20020416/gcc/config/sparc/linux64.h Mon Apr 15 22:04:43 2002
+++ egcc-3.1-CVS20020416/gcc/config/sparc/linux64.h Tue Apr 16 23:23:22 2002
@@ -249,6 +249,7 @@ ENDFILE_SPEC_COMMON
%{mcypress:-mcpu=cypress} \
%{msparclite:-mcpu=sparclite} %{mf930:-mcpu=f930} %{mf934:-mcpu=f934} \
%{mv8:-mcpu=v8} %{msupersparc:-mcpu=supersparc} \
+%{m32:%{m64:%emay not use both -m32 and -m64}} \
%{m64:-mptr64 -mstack-bias -mlong-double-128 \
%{!mcpu*:%{!mcypress:%{!msparclite:%{!mf930:%{!mf934:%{!mv8:%{!msupersparc:-mcpu=ultrasparc}}}}}}} \
%{!mno-vis:%{!mcpu=v9:-mvis}}} \
@@ -259,6 +260,7 @@ ENDFILE_SPEC_COMMON
%{mcypress:-mcpu=cypress} \
%{msparclite:-mcpu=sparclite} %{mf930:-mcpu=f930} %{mf934:-mcpu=f934} \
%{mv8:-mcpu=v8} %{msupersparc:-mcpu=supersparc} \
+%{m32:%{m64:%emay not use both -m32 and -m64}} \
%{m32:-mptr32 -mno-stack-bias %{!mlong-double-128:-mlong-double-64} \
%{!mcpu*:%{!mcypress:%{!msparclite:%{!mf930:%{!mf934:%{!mv8:%{!msupersparc:-mcpu=cypress}}}}}}}} \
%{!m32:%{!mcpu*:-mcpu=ultrasparc}} \
diff -rup orig/egcc-3.1-CVS20020416/gcc/config/sparc/netbsd-elf.h egcc-3.1-CVS20020416/gcc/config/sparc/netbsd-elf.h
--- orig/egcc-3.1-CVS20020416/gcc/config/sparc/netbsd-elf.h Mon Apr 8 16:06:55 2002
+++ egcc-3.1-CVS20020416/gcc/config/sparc/netbsd-elf.h Tue Apr 16 23:21:52 2002
@@ -150,6 +150,7 @@ Boston, MA 02111-1307, USA. */
%{mcypress:-mcpu=cypress} \
%{msparclite:-mcpu=sparclite} %{mf930:-mcpu=f930} %{mf934:-mcpu=f934} \
%{mv8:-mcpu=v8} %{msupersparc:-mcpu=supersparc} \
+ %{m32:%{m64:%emay not use both -m32 and -m64}} \
%{m64: \
-mptr64 -mstack-bias -mno-v8plus -mlong-double-128 \
%{!mcpu*: \
@@ -168,6 +169,7 @@ Boston, MA 02111-1307, USA. */
%{mcypress:-mcpu=cypress} \
%{msparclite:-mcpu=sparclite} %{mf930:-mcpu=f930} %{mf934:-mcpu=f934} \
%{mv8:-mcpu=v8} %{msupersparc:-mcpu=supersparc} \
+ %{m32:%{m64:%emay not use both -m32 and -m64}} \
%{m32: \
-mptr32 -mno-stack-bias \
%{!mlong-double-128:-mlong-double-64} \
More information about the Gcc-bugs
mailing list