diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2010-11-12 10:55:34 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2010-11-12 10:55:34 +0000 |
commit | 882557be0237c2db3a48c2e3fc46bf7918bdac26 (patch) | |
tree | a91605f754ef2bba01f015d5a6a62fd8d67f650b | |
parent | 3f02a5f3d3c8609d617dee98f8945b4f1a1a4367 (diff) | |
download | gcc-882557be0237c2db3a48c2e3fc46bf7918bdac26.zip gcc-882557be0237c2db3a48c2e3fc46bf7918bdac26.tar.gz gcc-882557be0237c2db3a48c2e3fc46bf7918bdac26.tar.bz2 |
gcc:
* config/mips/iris6.h [!IRIX_USING_GNU_LD]
(SUPPORTS_INIT_PRIORITY): Define.
gcc/testsuite:
* lib/prune.exp (prune_gcc_output): Ignore IRIX 6 linker multiline
warning.
* g++.dg/abi/packed1.C (struct INNER): Ignore warning on
mips-sgi-irix*.
* g++.dg/cpp/_Pragma1.C: Skip on mips-sgi-irix*.
* gcc.target/mips/call-3.c: Add dg-require-visibility.
From-SVN: r166648
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/mips/iris6.h | 5 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/abi/packed1.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp/_Pragma1.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/mips/call-3.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/lib/prune.exp | 5 |
7 files changed, 26 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b6afd94..50aad29 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-11-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * config/mips/iris6.h [!IRIX_USING_GNU_LD] + (SUPPORTS_INIT_PRIORITY): Define. + 2010-11-12 Joern Rennecke <amylaar@spamcop.net> PR target/46430 diff --git a/gcc/config/mips/iris6.h b/gcc/config/mips/iris6.h index dd8eb11..4663c2a 100644 --- a/gcc/config/mips/iris6.h +++ b/gcc/config/mips/iris6.h @@ -311,6 +311,11 @@ along with GCC; see the file COPYING3. If not see library search directories. */ #define LINK_ELIMINATE_DUPLICATE_LDIRECTORIES 1 +/* The SGI linker doesn't understand constructor priorities. */ +#ifndef IRIX_USING_GNU_LD +#define SUPPORTS_INIT_PRIORITY 0 +#endif + /* Add -g to mips.h default to avoid confusing gas with local symbols generated from stabs info. */ #undef NM_FLAGS diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4b01e09..f0f2c98 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2010-11-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * lib/prune.exp (prune_gcc_output): Ignore IRIX 6 linker multiline + warning. + * g++.dg/abi/packed1.C (struct INNER): Ignore warning on + mips-sgi-irix*. + * g++.dg/cpp/_Pragma1.C: Skip on mips-sgi-irix*. + * gcc.target/mips/call-3.c: Add dg-require-visibility. + 2010-11-12 Eric Botcazou <ebotcazou@adacore.com> * gcc.dg/pr46375.c: New test. diff --git a/gcc/testsuite/g++.dg/abi/packed1.C b/gcc/testsuite/g++.dg/abi/packed1.C index 071fa8b..5bec67a 100644 --- a/gcc/testsuite/g++.dg/abi/packed1.C +++ b/gcc/testsuite/g++.dg/abi/packed1.C @@ -4,7 +4,7 @@ extern "C" void abort (); -struct INNER { // { dg-warning "inefficient.*vptr" "" { target alpha*-*-* ia64-*-* hppa*-*-* sparc*-*-* sh*-*-* } } +struct INNER { // { dg-warning "inefficient.*vptr" "" { target alpha*-*-* ia64-*-* hppa*-*-* mips-sgi-irix* sparc*-*-* sh*-*-* } } virtual int foo() const { return 1; } } __attribute__ ((packed)); diff --git a/gcc/testsuite/g++.dg/cpp/_Pragma1.C b/gcc/testsuite/g++.dg/cpp/_Pragma1.C index 3b58c1e..2ca13ef 100644 --- a/gcc/testsuite/g++.dg/cpp/_Pragma1.C +++ b/gcc/testsuite/g++.dg/cpp/_Pragma1.C @@ -2,7 +2,7 @@ // This is supposed to succeed only if // the target defines HANDLE_PRAGMA_PACK_PUSH_POP // and doesn't define HANDLE_PRAGMA_PACK_WITH_EXPANSION. -// { dg-do compile { target { ! { powerpc-ibm-aix* *-*-solaris2* fido-*-* m68k-*-* sh*-[us]*-elf m32c-*-* *-*-vxworks alpha*-dec-osf* } } } } +// { dg-do compile { target { ! { powerpc-ibm-aix* *-*-solaris2* fido-*-* m68k-*-* mips-sgi-irix* sh*-[us]*-elf m32c-*-* *-*-vxworks alpha*-dec-osf* } } } } #define push bar #define foo _Pragma ("pack(push)") diff --git a/gcc/testsuite/gcc.target/mips/call-3.c b/gcc/testsuite/gcc.target/mips/call-3.c index b552b61..25f01d2 100644 --- a/gcc/testsuite/gcc.target/mips/call-3.c +++ b/gcc/testsuite/gcc.target/mips/call-3.c @@ -1,5 +1,6 @@ /* { dg-options "-O2 -mrelax-pic-calls -mno-shared" } */ /* { dg-final { scan-assembler "\\.reloc\t1f,R_MIPS_JALR,g\n1:\tjalr\t" } } */ +/* { dg-require-visibility "" } */ __attribute__ ((visibility ("hidden"))) void g (); diff --git a/gcc/testsuite/lib/prune.exp b/gcc/testsuite/lib/prune.exp index acb807f..0ec277b 100644 --- a/gcc/testsuite/lib/prune.exp +++ b/gcc/testsuite/lib/prune.exp @@ -1,4 +1,4 @@ -# Copyright (C) 1997, 1999, 2000, 2002, 2004, 2007, 2008 +# Copyright (C) 1997, 1999, 2000, 2002, 2004, 2007, 2008, 2010 # Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify @@ -38,6 +38,9 @@ proc prune_gcc_output { text } { regsub -all "(^|\n)\[^\n\]*: Additional NOP may be necessary to workaround Itanium processor A/B step errata" $text "" text regsub -all "(^|\n)\[^\n*\]*: Assembler messages:\[^\n\]*" $text "" text + # Ignore second line of IRIX 6 linker multiline message. + regsub -all "(^|\n)\[ \t\]*that might degrade performance on an older version \\(rev. 2.2\\) R4000 processor.\[^\n\]*" $text "" text + # Ignore harmless VTA note. regsub -all "(^|\n)\[^\n\]*: note: variable tracking size limit exceeded with -fvar-tracking-assignments, retrying without\[^\n\]*" $text "" text |