This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Make gcc.dg/fshort-wchar.c use -Wl,--no-wchar-size-warning on ARM EABI


Just as some testcases use -Wl,--no-enum-size-warning for
arm*-*-linux*eabi to avoid linker warnings about different enum sizes
in input files, so the testcase gcc.dg/fshort-wchar.c triggers a
linker complaint about different wchar_t sizes.  I've added a
--no-wchar-size-warning option to binutils; OK to commit this patch to
make the test use it?  (It already fails for this target in the
absence of the option, so I don't think failing with a different error
if you use binutils predating the option is a problem.)

2008-07-18  Joseph Myers  <joseph@codesourcery.com>

	* gcc.dg/fshort-wchar.c: Use -Wl,--no-wchar-size-warning on
	arm*-*-*eabi.

Index: gcc.dg/fshort-wchar.c
===================================================================
--- gcc.dg/fshort-wchar.c	(revision 137650)
+++ gcc.dg/fshort-wchar.c	(working copy)
@@ -2,6 +2,7 @@
 
 /* { dg-do run } */
 /* { dg-options "-fshort-wchar" } */
+/* { dg-options "-fshort-wchar -Wl,--no-wchar-size-warning" { target arm*-*-*eabi } } */
 
 /* Source: Neil Booth, 10 Dec 2002.
 

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]