This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Addendum -- [BUG REPORT + PATCH] -Wpadded on powerpc
- From: David Taylor <dtaylor at emc dot com>
- To: gcc-bugs at sources dot redhat dot com, gcc-patches at sources dot redhat dot com
- Date: Wed, 21 May 2003 10:47:58 -0400
- Subject: 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;