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]

Fix for linkage.c failure on irix6.2


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 }


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