public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Test gcc.dg/uninit-13.c failure
@ 2014-02-06 13:55 Sebastian Huber
  2014-02-06 17:51 ` Andreas Krebbel
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Huber @ 2014-02-06 13:55 UTC (permalink / raw)
  To: GCC

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Test gcc.dg/uninit-13.c failure
  2014-02-06 13:55 Test gcc.dg/uninit-13.c failure Sebastian Huber
@ 2014-02-06 17:51 ` Andreas Krebbel
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Krebbel @ 2014-02-06 17:51 UTC (permalink / raw)
  To: gcc

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-06 17:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-06 13:55 Test gcc.dg/uninit-13.c failure Sebastian Huber
2014-02-06 17:51 ` Andreas Krebbel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).