Addendum -- [BUG REPORT + PATCH] -Wpadded on powerpc

David Taylor dtaylor@emc.com
Wed May 21 15:41:00 GMT 2003


I forgot to include the testsuite file -- to hopefully keep -Wpadded
working in the future.

2003-05-21  David Taylor  <dtaylor@usendtaylorx1l.176south>

	* gcc.dg/Wpadded.c: New file.


Index: gcc/testsuite/gcc.dg/Wpadded.c
===================================================================
RCS file: gcc/testsuite/gcc.dg/Wpadded.c
diff -N gcc/testsuite/gcc.dg/Wpadded.c
*** /dev/null   1 Jan 1970 00:00:00 -0000
--- gcc/testsuite/gcc.dg/Wpadded.c      16 May 2003 17:55:40 -0000
***************
*** 0 ****
--- 1,9 ----
+ /* Source: EMC.  */
+ 
+ /* { dg-do compile } */
+ /* { dg-options "-Wpadded" } */
+ 
+ struct foo {
+   char bar;
+   long baz;                   /* { dg-warning "padding struct to align" } */
+ } futz;



More information about the Gcc-bugs mailing list