compare1.c: Add -fno-short-enums.
authorKazu Hirata <kazu@codesourcery.com>
Tue, 5 Jul 2005 00:47:25 +0000 (00:47 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Tue, 5 Jul 2005 00:47:25 +0000 (00:47 +0000)
* gcc.dg/compare1.c: Add -fno-short-enums.  Don't skip on any
target.
* gcc.dg/compare9.c: Use -fshort-enums instead of
-fshort-enums.  Change the last test to dg-bogus.

From-SVN: r101610

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/compare1.c
gcc/testsuite/gcc.dg/compare9.c

index 1f18a2959f3fd6bbefe58740c4fb55d81f5568e1..4805a761840757339dba33af468d588f3eca42f7 100644 (file)
@@ -1,3 +1,10 @@
+2005-07-05  Kazu Hirata  <kazu@codesourcery.com>
+
+       * gcc.dg/compare1.c: Add -fno-short-enums.  Don't skip on any
+       target.
+       * gcc.dg/compare9.c: Use -fshort-enums instead of
+       -fshort-enums.  Change the last test to dg-bogus.
+
 2005-07-04  Kazu Hirata  <kazu@codesourcery.com>
 
        * gcc.dg/compare1.c: Skip on arm*-*-eabi* arm*-*-symbianelf*.
index 06049270c077c452452ce6a0b2afc4f1ee79f076..17ba3ee2098c975e5284070180a71ec38124e9b1 100644 (file)
@@ -1,11 +1,10 @@
 /* Test for a bogus warning on comparison between signed and unsigned.
-   This was inspired by code in gcc. */
+   This was inspired by code in gcc.  This testcase is identical to
+   compare9.c except that we use -fno-short-enums here and expect a
+   warning from case 4.  */
 
 /* { dg-do compile } */
-/* { dg-options "-Wsign-compare" } */
-/* This test would fail on targets with short enums being default.  See
-   compare9.c.  */
-/* { dg-skip-if "" { arm*-*-eabi* arm*-*-symbianelf* }  { "*" } { "" } } */
+/* { dg-options "-fno-short-enums -Wsign-compare" } */
 
 int tf = 1;
 
index e46e0641ade7ae38a6a3aee7380887b776c485ca..02150cb1fb6bad40fd0f3b69ca31cf5456bd4a18 100644 (file)
@@ -1,11 +1,10 @@
 /* Test for a bogus warning on comparison between signed and unsigned.
    This was inspired by code in gcc.  This testcase is identical to
-   compare1.c except that we add -fno-short-enums to accomodate
-   targets with short enums being default, such as arm*-*-eabi* and
-   arm*-*-symbianelf*.  */
+   compare1.c except that we use -fshort-enums here and do not expect
+   a warning from case 4.  */
 
 /* { dg-do compile } */
-/* { dg-options "-fno-short-enums -Wsign-compare" } */
+/* { dg-options "-fshort-enums -Wsign-compare" } */
 
 int tf = 1;
 
@@ -38,5 +37,5 @@ int h(enum mm2 x)
 
 int i(enum mm2 x)
 {
-  return x == (tf?DI2:-1); /* { dg-warning "signed and unsigned" "case 4" } */
+  return x == (tf?DI2:-1); /* { dg-bogus "signed and unsigned" "case 4" } */
 }