This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, testsuite, mips] Fix gcc.dg/torture/mips-sdata-1.c
- From: Richard Sandiford <rdsandiford at googlemail dot com>
- To: "Steve Ellcey " <sellcey at mips dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 05 Nov 2012 20:30:37 +0000
- Subject: Re: [patch, testsuite, mips] Fix gcc.dg/torture/mips-sdata-1.c
- References: <853292c5-73e0-4fbe-8174-1734f559dd5d@EXCHHUB01.MIPS.com>
"Steve Ellcey " <sellcey@mips.com> writes:
> diff --git a/gcc/testsuite/gcc.dg/torture/mips-sdata-1.c b/gcc/testsuite/gcc.dg/torture/mips-sdata-1.c
> index 8ffd4d8..53c9e4f 100644
> --- a/gcc/testsuite/gcc.dg/torture/mips-sdata-1.c
> +++ b/gcc/testsuite/gcc.dg/torture/mips-sdata-1.c
> @@ -1,6 +1,7 @@
> /* Check that sdata-accesses are applied regardless of size or ABI. */
> /* { dg-options -mexplicit-relocs } */
> /* { dg-do compile { target mips*-*-elf* } } */
> +/* { dg-skip-if "" { *-*-* } { "-fno-fat-lto-objects" } { "" } } */
>
> struct s { int x[4]; };
> struct s my_struct __attribute__((__section__(".sdata")));
The other tests that hit this problem have -ffat-lto-objects in the
dg-options line, so we might as well do the same here for consistency.
That's OK if it works.
Thanks,
Richard