On 06/02/14 14:55, Sebastian Huber wrote:
> Hello,
>
> for the test case gcc.dg/uninit-13.c:
>
> /* { dg-do compile } */
> /* { dg-options "-O -Wuninitialized" } */
>
> typedef _Complex float C;
> C foo()
> {
> C f;
> __imag__ f = 0; /* { dg-warning "is used" "unconditional" } */
> return f;
> }
>
> I have the following failure on arm-rtems:
>
> spawn -ignore SIGHUP /scratch/git-rtems-testing/gcc/b-arm-gcc/gcc/xgcc
> -B/scratch/git-rtems-testing/gcc/b-arm-gcc/gcc/
> /home/sh/archive/gcc-git/gcc/testsuite/gcc.dg/uninit-13.c
> -fno-diagnostics-show-caret -fdiagnostics-color=never -O -Wuninitialized
> -DSTACK_SIZE=2048 -S -isystem
> /scratch/git-rtems-testing/gcc/b-arm-gcc/arm-rtems4.11/./newlib/targ-include
> -isystem /home/sh/archive/gcc-git/newlib/libc/include
> -B/scratch/git-rtems-testing/gcc/install-git/arm-rtems4.11/edb7312/lib/
> -specs
> bsp_specs -qrtems -o uninit-13.s
> /home/sh/archive/gcc-git/gcc/testsuite/gcc.dg/uninit-13.c: In function 'foo':
> /home/sh/archive/gcc-git/gcc/testsuite/gcc.dg/uninit-13.c:7:5: warning:
> '__real__ f' is used uninitialized in this function [-Wuninitialized]
> output is:
> /home/sh/archive/gcc-git/gcc/testsuite/gcc.dg/uninit-13.c: In function 'foo':
> /home/sh/archive/gcc-git/gcc/testsuite/gcc.dg/uninit-13.c:7:5: warning:
> '__real__ f' is used uninitialized in this function [-Wuninitialized]
>
> FAIL: gcc.dg/uninit-13.c unconditional (test for warnings, line 8)
> FAIL: gcc.dg/uninit-13.c (test for excess errors)
>
> Fails also on arm-eabi:
>
> http://gcc.gnu.org/ml/gcc-testresults/2014-02/msg00200.html
>
> On the other hand this test seems to pass on armv7l-unknown-linux-gnueabihf:
>
> http://gcc.gnu.org/ml/gcc-testresults/2014-02/msg00280.html
>
> Does anyone know what is wrong here?
>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39246