[PATCH] fix struct-layout-1 tests for Xtensa
Bob Wilson
bwilson@tensilica.com
Tue Oct 7 05:56:00 GMT 2008
With the default compile options, Xtensa has some limitations on code size that
are exceeded by the struct-layout-1 tests. Someday I hope to fix those
limitations, but in the meantime, I'm getting tired of watching these tests
fail. For the g++.dg version of the test, it is easy to just add a dg-options
line for Xtensa targets. The gcc.dg version is missing Uros Bizjak's change for
the g++.dg version (http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00607.html) to
avoid replicating the dg-options lines 3 times each, so I've ported that change
over to the C version and then added the Xtensa options.
I tested this patch by doing an i686-pc-linux-gnu bootstrap and then running the
C and C++ testsuites. I verified that there were no regressions related to this
change and that all the struct-layout-1 tests ran as expected.
OK to commit?
testsuite/ChangeLog
2008-10-06 Bob Wilson <bob.wilson@acm.org>
* gcc.dg/compat/struct-layout-1_generate.c (dg_options): New. Moved
dg-options lines to this array, and added options for xtensa*-*-*.
(NDG_OPTIONS): Define.
(switchfiles): Print dg-options lines from new dg_options array.
* g++.dg/compat/struct-layout-1_generate.c (dg_options): Add options
for xtensa*-*-* targets.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gcc-compat.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20081007/3dda5b3a/attachment.ksh>
More information about the Gcc-patches
mailing list