This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Addendum -- [BUG REPORT + PATCH] -Wpadded on powerpc
- From: Geoff Keating <geoffk at geoffk dot org>
- To: David Taylor <dtaylor at emc dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 21 May 2003 11:57:57 -0700
- Subject: Re: Addendum -- [BUG REPORT + PATCH] -Wpadded on powerpc
- References: <200305211447.h4LElwa16918__11994.8185900741$1053528555@mailhub.lss.emc.com>
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>