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]

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


David Taylor <dtaylor@emc.com> writes:

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

You *do* have a testcase!

In that case, the previous patch plus this testcase is OK.


> 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;
> 

-- 
- Geoffrey Keating <geoffk@geoffk.org>


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