This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [SPARC] Fix PR target/87807
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Rainer Orth <ro at cebitec dot uni-bielefeld dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 05 Dec 2018 16:39:49 +0100
- Subject: Re: [SPARC] Fix PR target/87807
- References: <37650183.iAzO7P3RYW@polaris> <yddftvc867m.fsf@CeBiTec.Uni-Bielefeld.DE>
> unfortunately, the new tests FAIL to compile, both 32 and 64-bit:
>
> +FAIL: gcc.target/sparc/20181129-1.c (test for excess errors)
> +UNRESOLVED: gcc.target/sparc/20181129-1.c compilation failed to produce
> executable +FAIL: gcc.target/sparc/20181129-2.c (test for excess errors)
> +UNRESOLVED: gcc.target/sparc/20181129-2.c compilation failed to produce
> executable
Not clear how I missed them, they are in my logs too...
> Excess errors:
> /vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.target/sparc/20181129-1.c:17:3
> : error: ISO C90 forbids mixed declarations and code
> [-Wdeclaration-after-statement]
>
> /vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.target/sparc/20181129-2.c: In
> function 'f':
> /vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.target/sparc/20181129-2.c:17:
> 3: error: ISO C90 forbids mixed declarations and code
> [-Wdeclaration-after-statement]
>
> The following patch fixes this by building as C99. Alternatively, it
> would work just as well to split the x declaration and initialization.
Thanks for fixing this.
--
Eric Botcazou