mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-15 22:51:38 +08:00
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
This commit is contained in:
parent
3717da940a
commit
8ef3ea700a
@ -1,3 +1,15 @@
|
||||
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>
|
||||
|
||||
* gcc.c-torture/execute/loop-14.c: New test.
|
||||
|
@ -2,9 +2,10 @@
|
||||
/* { dg-options "-fno-common" } */
|
||||
|
||||
/* 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 { if [string match *-*-darwin* $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 *-*-coff $target_triplet ] {return} } } */
|
||||
|
@ -2,9 +2,10 @@
|
||||
/* { dg-options "-fno-common" } */
|
||||
|
||||
/* 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 { if [string match *-*-darwin* $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 *-*-coff $target_triplet ] {return} } } */
|
||||
@ -30,7 +31,7 @@ void * foo1b (void)
|
||||
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)
|
||||
{
|
||||
return (void *)ffoo1c;
|
||||
|
@ -2,10 +2,12 @@
|
||||
/* { dg-options "-fno-common" } */
|
||||
|
||||
/* 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 "Darwin does not support weak symbols" { target *-*-darwin* } } */
|
||||
|
||||
/* { 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 i?86-pc-cygwin $target_triplet ] {return} } } */
|
||||
/* { dg-final { if [string match *-*-coff $target_triplet ] {return} } } */
|
||||
|
@ -2,9 +2,10 @@
|
||||
/* { dg-options "-fno-common" } */
|
||||
|
||||
/* 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 { if [string match *-*-darwin* $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 *-*-coff $target_triplet ] {return} } } */
|
||||
@ -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)
|
||||
{
|
||||
return (void *)&vfoo1c;
|
||||
@ -70,7 +71,7 @@ void * foo1f (void)
|
||||
#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)
|
||||
{
|
||||
return (void *)&vfoo1g;
|
||||
|
@ -2,10 +2,12 @@
|
||||
/* { dg-options "-fno-common" } */
|
||||
|
||||
/* 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 "Darwin does not support weak symbols" { target *-*-darwin* } } */
|
||||
|
||||
/* { 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 i?86-pc-cygwin $target_triplet ] {return} } } */
|
||||
/* { dg-final { if [string match *-*-coff $target_triplet ] {return} } } */
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* { dg-do compile } */
|
||||
|
||||
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
|
||||
|
@ -1,5 +1,6 @@
|
||||
/* { dg-do compile } */
|
||||
/* { 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);
|
||||
void * foo (void) { return (void *)foo; } /* { dg-error "precede" } */
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* { dg-do assemble } */
|
||||
|
||||
/* 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;
|
||||
|
||||
|
@ -2,12 +2,12 @@
|
||||
/* { dg-options "-fno-common" } */
|
||||
|
||||
/* 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 { if [string match *-*-darwin* $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 { scan-assembler "weak\[^ \t\]*\[ \t\]_?f1" } } */
|
||||
/* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?f2" } } */
|
||||
|
Loading…
x
Reference in New Issue
Block a user