This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Make two libstdc++ tests use -Wl,--no-enum-size-warning for ARM Linux EABI
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Wed, 9 Jul 2008 20:29:20 +0000 (UTC)
- Subject: Make two libstdc++ tests use -Wl,--no-enum-size-warning for ARM Linux EABI
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