Commit 8ef3ea70 by Stan Shebs Committed by Stan Shebs

weak-1.c: xfail on Darwin.

        * gcc.dg/weak-1.c: xfail on Darwin.
        * gcc.dg/weak-2.c: Ditto.
        * gcc.dg/weak-3.c: Ditto.
        * gcc.dg/weak-4.c: Ditto.
        * gcc.dg/weak-5.c: Ditto.
        * gcc.dg/weak-6.c: Ditto.
        * gcc.dg/weak-7.c: Ditto.
        * gcc.dg/weak-8.c: Ditto.
        * gcc.dg/weak-9.c: Ditto.

From-SVN: r56855
parent 3717da94
2002-09-05 Stan Shebs <shebs@apple.com>
* gcc.dg/weak-1.c: xfail on Darwin.
* gcc.dg/weak-2.c: Ditto.
* gcc.dg/weak-3.c: Ditto.
* gcc.dg/weak-4.c: Ditto.
* gcc.dg/weak-5.c: Ditto.
* gcc.dg/weak-6.c: Ditto.
* gcc.dg/weak-7.c: Ditto.
* gcc.dg/weak-8.c: Ditto.
* gcc.dg/weak-9.c: Ditto.
Thu Sep 5 00:34:33 2002 J"orn Rennecke <joern.rennecke@superh.com> Thu Sep 5 00:34:33 2002 J"orn Rennecke <joern.rennecke@superh.com>
* gcc.c-torture/execute/loop-14.c: New test. * gcc.c-torture/execute/loop-14.c: New test.
......
...@@ -2,9 +2,10 @@ ...@@ -2,9 +2,10 @@
/* { dg-options "-fno-common" } */ /* { dg-options "-fno-common" } */
/* COFF does not support weak, and dg doesn't support UNSUPPORTED. */ /* COFF does not support weak, and dg doesn't support UNSUPPORTED. */
/* { dg-do compile { xfail *-*-coff i?86-pc-cygwin h8300-*-hms } } */ /* { dg-do compile { xfail *-*-coff i?86-pc-cygwin h8300-*-hms *-*-darwin* } } */
/* { dg-final { global target_triplet } } */ /* { dg-final { global target_triplet } } */
/* { dg-final { if [string match *-*-darwin* $target_triplet ] {return} } } */
/* { dg-final { if [string match h8300-*-hms $target_triplet ] {return} } } */ /* { dg-final { if [string match h8300-*-hms $target_triplet ] {return} } } */
/* { dg-final { if [string match i?86-pc-cygwin $target_triplet ] {return} } } */ /* { dg-final { if [string match i?86-pc-cygwin $target_triplet ] {return} } } */
/* { dg-final { if [string match *-*-coff $target_triplet ] {return} } } */ /* { dg-final { if [string match *-*-coff $target_triplet ] {return} } } */
......
...@@ -2,9 +2,10 @@ ...@@ -2,9 +2,10 @@
/* { dg-options "-fno-common" } */ /* { dg-options "-fno-common" } */
/* COFF does not support weak, and dg doesn't support UNSUPPORTED. */ /* COFF does not support weak, and dg doesn't support UNSUPPORTED. */
/* { dg-do compile { xfail *-*-coff i?86-pc-cygwin h8300-*-hms } } */ /* { dg-do compile { xfail *-*-coff i?86-pc-cygwin h8300-*-hms *-*-darwin* } } */
/* { dg-final { global target_triplet } } */ /* { dg-final { global target_triplet } } */
/* { dg-final { if [string match *-*-darwin* $target_triplet ] {return} } } */
/* { dg-final { if [string match h8300-*-hms $target_triplet ] {return} } } */ /* { dg-final { if [string match h8300-*-hms $target_triplet ] {return} } } */
/* { dg-final { if [string match i?86-pc-cygwin $target_triplet ] {return} } } */ /* { dg-final { if [string match i?86-pc-cygwin $target_triplet ] {return} } } */
/* { dg-final { if [string match *-*-coff $target_triplet ] {return} } } */ /* { dg-final { if [string match *-*-coff $target_triplet ] {return} } } */
...@@ -30,7 +31,7 @@ void * foo1b (void) ...@@ -30,7 +31,7 @@ void * foo1b (void)
return (void *)ffoo1b; return (void *)ffoo1b;
} }
extern void * ffoo1c (void); /* { dg-warning "applying #pragma weak" "applying #pragma weak" { xfail *-*-coff i?86-pc-cygwin h8300-*-hms } } */ extern void * ffoo1c (void); /* { dg-warning "applying #pragma weak" "applying #pragma weak" { xfail *-*-coff i?86-pc-cygwin h8300-*-hms *-*-darwin* } } */
void * foo1c (void) void * foo1c (void)
{ {
return (void *)ffoo1c; return (void *)ffoo1c;
......
...@@ -2,10 +2,12 @@ ...@@ -2,10 +2,12 @@
/* { dg-options "-fno-common" } */ /* { dg-options "-fno-common" } */
/* COFF does not support weak, and dg doesn't support UNSUPPORTED. */ /* COFF does not support weak, and dg doesn't support UNSUPPORTED. */
/* { dg-do compile { xfail *-*-coff i?86-pc-cygwin h8300-*-hms } } */ /* { dg-do compile { xfail *-*-coff i?86-pc-cygwin h8300-*-hms *-*-darwin* } } */
/* { dg-excess-errors "COFF does not support weak symbols" { target *-*-coff i?86-pc-cygwin h8300-*-hms } } */ /* { dg-excess-errors "COFF does not support weak symbols" { target *-*-coff i?86-pc-cygwin h8300-*-hms } } */
/* { dg-excess-errors "Darwin does not support weak symbols" { target *-*-darwin* } } */
/* { dg-final { global target_triplet } } */ /* { dg-final { global target_triplet } } */
/* { dg-final { if [string match *-*-darwin* $target_triplet ] {return} } } */
/* { dg-final { if [string match h8300-*-hms $target_triplet ] {return} } } */ /* { dg-final { if [string match h8300-*-hms $target_triplet ] {return} } } */
/* { dg-final { if [string match i?86-pc-cygwin $target_triplet ] {return} } } */ /* { dg-final { if [string match i?86-pc-cygwin $target_triplet ] {return} } } */
/* { dg-final { if [string match *-*-coff $target_triplet ] {return} } } */ /* { dg-final { if [string match *-*-coff $target_triplet ] {return} } } */
......
...@@ -2,9 +2,10 @@ ...@@ -2,9 +2,10 @@
/* { dg-options "-fno-common" } */ /* { dg-options "-fno-common" } */
/* COFF does not support weak, and dg doesn't support UNSUPPORTED. */ /* COFF does not support weak, and dg doesn't support UNSUPPORTED. */
/* { dg-do compile { xfail *-*-coff i?86-pc-cygwin h8300-*-hms } } */ /* { dg-do compile { xfail *-*-coff i?86-pc-cygwin h8300-*-hms *-*-darwin* } } */
/* { dg-final { global target_triplet } } */ /* { dg-final { global target_triplet } } */
/* { dg-final { if [string match *-*-darwin* $target_triplet ] {return} } } */
/* { dg-final { if [string match h8300-*-hms $target_triplet ] {return} } } */ /* { dg-final { if [string match h8300-*-hms $target_triplet ] {return} } } */
/* { dg-final { if [string match i?86-pc-cygwin $target_triplet ] {return} } } */ /* { dg-final { if [string match i?86-pc-cygwin $target_triplet ] {return} } } */
/* { dg-final { if [string match *-*-coff $target_triplet ] {return} } } */ /* { dg-final { if [string match *-*-coff $target_triplet ] {return} } } */
...@@ -38,7 +39,7 @@ void * foo1b (void) ...@@ -38,7 +39,7 @@ void * foo1b (void)
} }
extern int vfoo1c; /* { dg-warning "applying #pragma weak" "applying #pragma weak" { xfail *-*-coff i?86-pc-cygwin h8300-*-hms } } */ extern int vfoo1c; /* { dg-warning "applying #pragma weak" "applying #pragma weak" { xfail *-*-coff i?86-pc-cygwin h8300-*-hms *-*-darwin* } } */
void * foo1c (void) void * foo1c (void)
{ {
return (void *)&vfoo1c; return (void *)&vfoo1c;
...@@ -70,7 +71,7 @@ void * foo1f (void) ...@@ -70,7 +71,7 @@ void * foo1f (void)
#pragma weak vfoo1f #pragma weak vfoo1f
extern int vfoo1g; /* { dg-warning "applying #pragma weak" "applying #pragma weak" { xfail *-*-coff i?86-pc-cygwin h8300-*-hms } } */ extern int vfoo1g; /* { dg-warning "applying #pragma weak" "applying #pragma weak" { xfail *-*-coff i?86-pc-cygwin h8300-*-hms *-*-darwin* } } */
void * foo1g (void) void * foo1g (void)
{ {
return (void *)&vfoo1g; return (void *)&vfoo1g;
......
...@@ -2,10 +2,12 @@ ...@@ -2,10 +2,12 @@
/* { dg-options "-fno-common" } */ /* { dg-options "-fno-common" } */
/* COFF does not support weak, and dg doesn't support UNSUPPORTED. */ /* COFF does not support weak, and dg doesn't support UNSUPPORTED. */
/* { dg-do compile { xfail *-*-coff i?86-pc-cygwin h8300-*-hms } } */ /* { dg-do compile { xfail *-*-coff i?86-pc-cygwin h8300-*-hms *-*-darwin* } } */
/* { dg-excess-errors "COFF does not support weak symbols" { target *-*-coff i?86-pc-cygwin h8300-*-hms } } */ /* { dg-excess-errors "COFF does not support weak symbols" { target *-*-coff i?86-pc-cygwin h8300-*-hms } } */
/* { dg-excess-errors "Darwin does not support weak symbols" { target *-*-darwin* } } */
/* { dg-final { global target_triplet } } */ /* { dg-final { global target_triplet } } */
/* { dg-final { if [string match *-*-darwin* $target_triplet ] {return} } } */
/* { dg-final { if [string match h8300-*-hms $target_triplet ] {return} } } */ /* { dg-final { if [string match h8300-*-hms $target_triplet ] {return} } } */
/* { dg-final { if [string match i?86-pc-cygwin $target_triplet ] {return} } } */ /* { dg-final { if [string match i?86-pc-cygwin $target_triplet ] {return} } } */
/* { dg-final { if [string match *-*-coff $target_triplet ] {return} } } */ /* { dg-final { if [string match *-*-coff $target_triplet ] {return} } } */
......
/* { dg-do compile } */ /* { dg-do compile } */
extern void * foo (void); extern void * foo (void);
void * foo (void) { return (void *)foo; } /* { dg-error "precede" "" { xfail *-*-coff i?86-pc-cygwin h8300-*-hms } } */ void * foo (void) { return (void *)foo; } /* { dg-error "precede" "" { xfail *-*-coff i?86-pc-cygwin h8300-*-hms *-*-darwin* } } */
#pragma weak foo #pragma weak foo
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-excess-errors "COFF does not support weak symbols" { target *-*-coff i?86-pc-cygwin h8300-*-hms } } */ /* { dg-excess-errors "COFF does not support weak symbols" { target *-*-coff i?86-pc-cygwin h8300-*-hms } } */
/* { dg-excess-errors "Darwin does not support weak symbols" { target *-*-darwin* } } */
extern void * foo (void); extern void * foo (void);
void * foo (void) { return (void *)foo; } /* { dg-error "precede" } */ void * foo (void) { return (void *)foo; } /* { dg-error "precede" } */
......
/* { dg-do assemble } */ /* { dg-do assemble } */
/* COFF does not support weak, and dg doesn't support UNSUPPORTED. */ /* COFF does not support weak, and dg doesn't support UNSUPPORTED. */
/* { dg-do assemble { xfail *-*-coff i?86-pc-cygwin h8300-*-hms } } */ /* { dg-do assemble { xfail *-*-coff i?86-pc-cygwin h8300-*-hms *-*-darwin* } } */
__attribute__ ((weak)) int i; __attribute__ ((weak)) int i;
......
...@@ -2,12 +2,12 @@ ...@@ -2,12 +2,12 @@
/* { dg-options "-fno-common" } */ /* { dg-options "-fno-common" } */
/* COFF does not support weak, and dg doesn't support UNSUPPORTED. */ /* COFF does not support weak, and dg doesn't support UNSUPPORTED. */
/* { dg-do compile { xfail *-*-coff i?86-pc-cygwin h8300-*-hms } } */ /* { dg-do compile { xfail *-*-coff i?86-pc-cygwin h8300-*-hms *-*-darwin* } } */
/* { dg-final { global target_triplet } } */ /* { dg-final { global target_triplet } } */
/* { dg-final { if [string match *-*-darwin* $target_triplet ] {return} } } */
/* { dg-final { if [string match h8300-*-hms $target_triplet ] {return} } } */ /* { dg-final { if [string match h8300-*-hms $target_triplet ] {return} } } */
/* { dg-final { if [string match i?86-pc-cygwin $target_triplet ] {return} } } * /* { dg-final { if [string match i?86-pc-cygwin $target_triplet ] {return} } } */
/
/* { dg-final { if [string match *-*-coff $target_triplet ] {return} } } */ /* { dg-final { if [string match *-*-coff $target_triplet ] {return} } } */
/* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?f1" } } */ /* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?f1" } } */
/* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?f2" } } */ /* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?f2" } } */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment