OSDN Git Service

* g++.dg/abi/mangle6.C: Run for all MIPS targets. Provide dummy
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Nov 2004 20:10:13 +0000 (20:10 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Nov 2004 20:10:13 +0000 (20:10 +0000)
strings for 32-bit code.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89957 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/abi/mangle6.C

index b4746bc..aae1748 100644 (file)
@@ -1,3 +1,8 @@
+2004-11-01  Richard Sandiford  <rsandifo@redhat.com>
+
+       * g++.dg/abi/mangle6.C: Run for all MIPS targets.  Provide dummy
+       strings for 32-bit code.
+
 2004-11-01  Joseph S. Myers  <joseph@codesourcery.com>
 
        PR c/18239
index ff5fd5b..280fe24 100644 (file)
@@ -1,6 +1,7 @@
 /* Check that __int128 types are mangled.  */
-/* { dg-do compile { target mips64*-*-* mipsisa64*-*-* } } */
+/* { dg-do compile { target mips*-*-* } } */
 
+#ifdef __mips64
 typedef int int128 __attribute__ ((mode(TI)));
 typedef unsigned int uint128 __attribute__ ((mode(TI)));
 
@@ -13,6 +14,10 @@ struct S
 
 int128 (S::*ptr1) (int128) const = &S::func1;
 uint128 (S::*ptr2) (uint128) const = &S::func2;
+#else
+const char *str1 = "_ZNK1S5func1En";
+const char *str2 = "_ZNK1S5func2Eo";
+#endif
 
 /* { dg-final { scan-assembler _ZNK1S5func1En } } */
 /* { dg-final { scan-assembler _ZNK1S5func2Eo } } */