Make two libstdc++ tests use -Wl,--no-enum-size-warning for ARM Linux EABI
Joseph S. Myers
joseph@codesourcery.com
Wed Jul 9 20:29:00 GMT 2008
Various g++ and gfortran tests use -Wl,--no-enum-size-warning for
arm*-*-linux*eabi to avoid linker warnings when the test using
-fshort-enums is linked against libraries not using -fshort-enums.
Two libstdc++ tests need to use this option as well. This patch adds
the option to them; OK to commit?
2008-07-09 Joseph Myers <joseph@codesourcery.com>
* testsuite/20_util/make_signed/requirements/typedefs-2.cc,
testsuite/20_util/make_unsigned/requirements/typedefs-2.cc: Use
-Wl,--no-enum-size-warning for arm*-*-linux*eabi.
Index: testsuite/20_util/make_signed/requirements/typedefs-2.cc
===================================================================
--- testsuite/20_util/make_signed/requirements/typedefs-2.cc (revision 137650)
+++ testsuite/20_util/make_signed/requirements/typedefs-2.cc (working copy)
@@ -1,4 +1,5 @@
// { dg-options "-std=gnu++0x -funsigned-char -fshort-enums" }
+// { dg-options "-std=gnu++0x -funsigned-char -fshort-enums -Wl,--no-enum-size-warning" { target arm*-*-linux*eabi } }
// 2007-05-03 Benjamin Kosnik <bkoz@redhat.com>
//
Index: testsuite/20_util/make_unsigned/requirements/typedefs-2.cc
===================================================================
--- testsuite/20_util/make_unsigned/requirements/typedefs-2.cc (revision 137650)
+++ testsuite/20_util/make_unsigned/requirements/typedefs-2.cc (working copy)
@@ -1,4 +1,5 @@
// { dg-options "-std=gnu++0x -funsigned-char -fshort-enums" }
+// { dg-options "-std=gnu++0x -funsigned-char -fshort-enums -Wl,--no-enum-size-warning" { target arm*-*-linux*eabi } }
// 2007-05-03 Benjamin Kosnik <bkoz@redhat.com>
//
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libstdc++
mailing list