diff options
author | aj <aj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-11-12 06:44:46 +0000 |
---|---|---|
committer | aj <aj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-11-12 06:44:46 +0000 |
commit | 53048587dd868a8d1729600da87eac960dabcfdb (patch) | |
tree | 8a15b1576d487a8ddc4cf18ddd28b12c0c3a5f25 | |
parent | e6436fdadd1904ab5877fba23ad8db3270f58212 (diff) | |
download | gcc-53048587dd868a8d1729600da87eac960dabcfdb.tar.gz |
2003-11-12 Andreas Jaeger <aj@suse.de>
Jakub Jelinek <jakub@redhat.com>
Andrew Pinski <pinskia@physics.uc.edu>
Richard Henderson <rth@redhat.com>
* gcc.dg/c90-const-expr-2.c (foo): Avoid extra warning on 64-bit
systems.
* gcc.dg/20030926-1.c: Make it work on x86_64 systems.
* gcc.dg/i386-pentium4-not-mull.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73485 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/testsuite/ChangeLog | 11 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/20030926-1.c | 3 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/c90-const-expr-2.c | 8 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/i386-pentium4-not-mull.c | 3 |
4 files changed, 22 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a769adb1dff..7bd8ab2736f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,14 @@ +2003-11-12 Andreas Jaeger <aj@suse.de> + Jakub Jelinek <jakub@redhat.com> + Andrew Pinski <pinskia@physics.uc.edu> + Richard Henderson <rth@redhat.com> + + * gcc.dg/c90-const-expr-2.c (foo): Avoid extra warning on 64-bit + systems. + + * gcc.dg/20030926-1.c: Make it work on x86_64 systems. + * gcc.dg/i386-pentium4-not-mull.c: Likewise. + 2003-11-11 Andreas Jaeger <aj@suse.de> * gcc.c-torture/execute/20020720-1.x: Test passes also on x86_64. diff --git a/gcc/testsuite/gcc.dg/20030926-1.c b/gcc/testsuite/gcc.dg/20030926-1.c index 085cb9b4da1..39833a65171 100644 --- a/gcc/testsuite/gcc.dg/20030926-1.c +++ b/gcc/testsuite/gcc.dg/20030926-1.c @@ -1,6 +1,7 @@ /* PR optimization/11741 */ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */ -/* { dg-options "-O2 -minline-all-stringops -march=pentium4" } */ +/* { dg-options "-O2 -minline-all-stringops" } */ +/* { dg-options "-O2 -minline-all-stringops -march=pentium4" { target i?86-*-* } } */ void foo (char *p) diff --git a/gcc/testsuite/gcc.dg/c90-const-expr-2.c b/gcc/testsuite/gcc.dg/c90-const-expr-2.c index 7363e2a2e2c..8c2c99f5cdb 100644 --- a/gcc/testsuite/gcc.dg/c90-const-expr-2.c +++ b/gcc/testsuite/gcc.dg/c90-const-expr-2.c @@ -14,6 +14,12 @@ int *a; int b; long *c; +#ifdef _LP64 +#define ZERO 0L +#else +#define ZERO 0 +#endif + /* Assertion that n is a null pointer constant: so the conditional expression has type 'int *' instead of 'void *'. */ @@ -30,7 +36,7 @@ foo (void) ASSERT_NPC ((void *)0); ASSERT_NOT_NPC ((void *)(void *)0); /* { dg-bogus "incompatible" "bogus null pointer constant" { xfail *-*-* } } */ ASSERT_NOT_NPC ((void *)(char *)0); /* { dg-bogus "incompatible" "bogus null pointer constant" { xfail *-*-* } } */ - ASSERT_NOT_NPC ((void *)(0, 0)); /* { dg-bogus "incompatible" "bogus null pointer constant" } */ + ASSERT_NOT_NPC ((void *)(0, ZERO)); /* { dg-bogus "incompatible" "bogus null pointer constant" } */ ASSERT_NOT_NPC ((void *)(&"Foobar"[0] - &"Foobar"[0])); /* { dg-bogus "incompatible" "bogus null pointer constant" { xfail *-*-* } } */ /* This last one is a null pointer constant in C99 only. */ ASSERT_NOT_NPC ((void *)(1 ? 0 : (0, 0))); /* { dg-bogus "incompatible" "bogus null pointer constant" { xfail *-*-* } } */ diff --git a/gcc/testsuite/gcc.dg/i386-pentium4-not-mull.c b/gcc/testsuite/gcc.dg/i386-pentium4-not-mull.c index 0780b050bdd..8d4a083e5d8 100644 --- a/gcc/testsuite/gcc.dg/i386-pentium4-not-mull.c +++ b/gcc/testsuite/gcc.dg/i386-pentium4-not-mull.c @@ -1,5 +1,6 @@ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */ -/* { dg-options "-O2 -march=pentium4" } */ +/* { dg-options "-O2 -march=pentium4" { target i?86-*-* } } */ +/* { dg-options "-O2 -march=pentium4 -m32" { target x86_64-*-* } } */ /* { dg-final { scan-assembler-not "imull" } } */ /* Should be done not using imull. */ |