Fix for linkage.c failure on irix6.2
Billinghurst, David (CRTS)
David.Billinghurst@riotinto.com
Tue May 29 23:19:00 GMT 2001
The test linkage.c failed on irix6.* due to testsuite deficiencies.. Patch
http://gcc.gnu.org/ml/gcc-patches/2001-05/msg01637.html fixed irix6.5, but
was incomplete for irix6.2. This finishes the job. The previous patch went
into the 3.0 branch, so I guess this one should too.
Please apply if OK.
2001-05-23 David.Billinghurst <David.Billinghurst@riotinto.com>
* gcc.misc-tests/linkage.exp: Pass appropriate flags to native
compiler for irix6.2
Index: linkage.exp
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.misc-tests/linkage.exp,v
retrieving revision 1.2.2.1
diff -u -r1.2.2.1 linkage.exp
--- linkage.exp 2001/05/23 19:49:19 1.2.2.1
+++ linkage.exp 2001/05/30 04:53:50
@@ -28,9 +28,13 @@
# Need to ensure ABI for native compiler matches gcc
set native_cflags ""
if [istarget "mips-sgi-irix6*"] {
- if [ string match "*64*" [exec file "linkage-x.o"] ] {
+ set file_string [exec file "linkage-x.o"]
+ if [ string match "*64*" $file_string ] {
set native_cflags "-64"
}
+ if [ string match "N32" $file_string ] {
+ set native_cflags "-n32"
+ }
}
catch { exec rm -f linkage-y.o }
More information about the Gcc-patches
mailing list