* g++.old-deja/g++.jason/enum6.C, g++.old-deja/g++.law/enum9.C,
authordrow <drow@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 May 2008 18:34:53 +0000 (18:34 +0000)
committerdrow <drow@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 May 2008 18:34:53 +0000 (18:34 +0000)
g++.old-deja/g++.other/enum4.C, gfortran/enum_9.f90,
gfortran.dg/enum_10.f90: Broaden dg-options pattern.

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

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.jason/enum6.C
gcc/testsuite/g++.old-deja/g++.law/enum9.C
gcc/testsuite/g++.old-deja/g++.other/enum4.C
gcc/testsuite/gfortran.dg/enum_10.f90
gcc/testsuite/gfortran.dg/enum_9.f90

index 4aacdf2..7e4386e 100644 (file)
@@ -1,3 +1,11 @@
+2008-05-06  Mark Shinwell  <shinwell@codesourcery.com>
+           Daniel Jacobowitz  <dan@codesourcery.com>
+           Andrew Jenner  <andrew@codesourcery.com>
+
+       * g++.old-deja/g++.jason/enum6.C, g++.old-deja/g++.law/enum9.C,
+       g++.old-deja/g++.other/enum4.C, gfortran/enum_9.f90,
+       gfortran.dg/enum_10.f90: Broaden dg-options pattern.
+
 2008-05-06  Tom Tromey  <tromey@redhat.com>
 
        PR preprocessor/35313, PR preprocessor/36088:
index 586b4ce..7be0cd8 100644 (file)
@@ -1,6 +1,17 @@
 // { dg-do run  }
 // { dg-options "-fshort-enums" }
 
+// On ARM EABI targets this testcase will cause a warning to be emitted
+// whilst EABI attributes are being merged at link time unless
+// the --no-enum-size-warning option is passed to the linker.  Whilst the
+// enum-size attributes should only be emitted if there are values of
+// enum type that can escape the compilation unit, gcc cannot currently
+// detect this; if this facility is added then this linker option should
+// not be needed.  arm-*-linux*eabi should be a good approximation to
+// those platforms where the EABI supplement defines enum values to be
+// 32 bits wide.
+// { dg-options "-fshort-enums -Wl,--no-enum-size-warning" { target arm*-*-linux*eabi } }
+
 #include <limits.h>
 
 enum A { a1 = 0x7fffffff };
index 9713e4b..5a74b2f 100644 (file)
@@ -1,5 +1,17 @@
 // { dg-do run  }
 // { dg-options "-fshort-enums" }
+
+// On ARM EABI targets this testcase will cause a warning to be emitted
+// whilst EABI attributes are being merged at link time unless
+// the --no-enum-size-warning option is passed to the linker.  Whilst the
+// enum-size attributes should only be emitted if there are values of
+// enum type that can escape the compilation unit, gcc cannot currently
+// detect this; if this facility is added then this linker option should
+// not be needed.  arm-*-linux*eabi should be a good approximation to
+// those platforms where the EABI supplement defines enum values to be
+// 32 bits wide.
+// { dg-options "-fshort-enums -Wl,--no-enum-size-warning" { target arm*-*-linux*eabi } }
+
 // GROUPS passed enums
   extern "C" int printf (const char *, ...);
 
index 6dd025c..429e812 100644 (file)
@@ -1,7 +1,19 @@
 // { dg-do run  }
 // { dg-options "-fshort-enums" }
+
 // Origin: Mark Mitchell <mark@codesourcery.com>
 
+// On ARM EABI targets this testcase will cause a warning to be emitted
+// whilst EABI attributes are being merged at link time unless
+// the --no-enum-size-warning option is passed to the linker.  Whilst the
+// enum-size attributes should only be emitted if there are values of
+// enum type that can escape the compilation unit, gcc cannot currently
+// detect this; if this facility is added then this linker option should
+// not be needed.  arm-*-linux*eabi should be a good approximation to
+// those platforms where the EABI supplement defines enum values to be
+// 32 bits wide.
+// { dg-options "-fshort-enums -Wl,--no-enum-size-warning" { target arm*-*-linux*eabi } }
+
 enum E { 
   a = -312
 };
index 6bfd819..99a1690 100644 (file)
@@ -1,6 +1,7 @@
 ! { dg-do run }
 ! { dg-additional-sources enum_10.c }
 ! { dg-options "-fshort-enums -w" }
+! { dg-options "-fshort-enums -w -Wl,--no-enum-size-warning" { target arm*-*-linux*eabi } }
 ! Make sure short enums are indeed interoperable with the
 ! corresponding C type.
 
index e735cf8..8a5c60a 100644 (file)
@@ -1,5 +1,6 @@
 ! { dg-do run }
 ! { dg-options "-fshort-enums" }
+! { dg-options "-fshort-enums -Wl,--no-enum-size-warning" { target arm*-*-linux*eabi } }
 ! Program to test enumerations when option -fshort-enums is given
 
 program main