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]

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


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;


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