Test gcc.dg/uninit-13.c failure

Sebastian Huber sebastian.huber@embedded-brains.de
Thu Feb 6 13:55:00 GMT 2014


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?

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the Gcc mailing list