Hi all,

another one. Here I'm not really sure if there are EABI variants which do _not_ support these test cases.

My target succeeds with this patch.

Comments?

If no (comments), ok for trunk?

TIA,
Andreas

2014-11-10  Andreas Tobler  <andre...@gcc.gnu.org>

        * g++.old-deja/g++.jason/enum6.C: Use arm_eabi for dg-options.
        Update comment.
        * g++.old-deja/g++.law/enum9.C: Likewise.
        * g++.old-deja/g++.other/enum4.C: Likewise.

Index: g++.old-deja/g++.jason/enum6.C
===================================================================
--- g++.old-deja/g++.jason/enum6.C      (revision 217306)
+++ g++.old-deja/g++.jason/enum6.C      (working copy)
@@ -7,10 +7,8 @@
 // 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* 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* } }
+// not be needed.
+// { dg-options "-fshort-enums -Wl,--no-enum-size-warning" { target arm_eabi } 
}
 
 #include <limits.h>
 
Index: g++.old-deja/g++.law/enum9.C
===================================================================
--- g++.old-deja/g++.law/enum9.C        (revision 217306)
+++ g++.old-deja/g++.law/enum9.C        (working copy)
@@ -7,10 +7,8 @@
 // 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* 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* } }
+// not be needed.
+// { dg-options "-fshort-enums -Wl,--no-enum-size-warning" { target arm_eabi } 
}
 
 // GROUPS passed enums
   extern "C" int printf (const char *, ...);
Index: g++.old-deja/g++.other/enum4.C
===================================================================
--- g++.old-deja/g++.other/enum4.C      (revision 217306)
+++ g++.old-deja/g++.other/enum4.C      (working copy)
@@ -9,10 +9,8 @@
 // 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* 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* } }
+// not be needed.
+// { dg-options "-fshort-enums -Wl,--no-enum-size-warning" { target arm_eabi } 
}
 
 enum E { 
   a = -312

Reply via email to