Message ID | 000001cbb3f8$8351ab60$89f50220$@bolton@arm.com |
---|---|
State | New |
Headers | show |
On Fri, 14 Jan 2011, Ian Bolton wrote: > Note that this change leads to a linker warning due to a > subsequent mismatch between variable-size enums for the file and > 32-bit enums (for the gcc_tg.o "testglue" file), so I have also > added a filter on this warning. The normal approach for the warning would be to pass -Wl,--no-enum-size-warning on ARM eabi targets (or at least, that's the approach for tests passing -fshort-enums explicitly). (I don't know if gold uses the same message text as GNU ld for this warning, but using the option avoids such dependence on details of the text from a tool outside of GCC. You can presume gold has the same options, but not necessarily the same diagnostic text.)
Index: gcc/testsuite/gcc.dg/20100906-1.c =================================================================== --- gcc/testsuite/gcc.dg/20100906-1.c (revision 168543) +++ gcc/testsuite/gcc.dg/20100906-1.c (working copy) @@ -1,5 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O2" } */ +/* { dg-options "-O2 -fno-short-enums" {target short_enums} } */ +/* { dg-prune-output "yet the output is to use variable-size enums" } */ /* This testcase got misoptimized by combine due to a wrong setting of subst_low_luid in try_combine. */