[PATCH] remove another bogus padded-struct warning
Bob Wilson
bwilson@tensilica.com
Fri Sep 16 21:34:00 GMT 2005
The gcc.dg/20050607-1.c test fails for Xtensa targets because the warning about
padding is still produced. (The Xtensa TRAMPOLINE_SIZE is 59 bytes and
TRAMPOLINE_ALIGN is 32 bits, so the trampoline type is padded by 1 byte.) The
original patch associated with this testcase
(http://gcc.gnu.org/ml/gcc-patches/2005-06/msg00650.html) fixed one instance
where layout_type is called in tree-nested.c. This patch does the same thing
for the other call to layout_type in that file. I verified that the patch
builds and successfully disables the offending warning for this testcase.
2005-09-16 Bob Wilson <bob.wilson@acm.org>
* tree-nested.c (get_trampoline_type): Disable warn_padded around
layout_type call.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-nested-warnpad.diff
Type: text/x-patch
Size: 898 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050916/eea943d1/attachment.bin>
More information about the Gcc-patches
mailing list