From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22865 invoked by alias); 6 Feb 2014 13:55:38 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 22854 invoked by uid 89); 6 Feb 2014 13:55:37 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=AWL,BAYES_00,RDNS_DYNAMIC,T_FILL_THIS_FORM_SHORT autolearn=no version=3.3.2 X-HELO: mail.embedded-brains.de Received: from host-82-135-62-35.customer.m-online.net (HELO mail.embedded-brains.de) (82.135.62.35) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 06 Feb 2014 13:55:36 +0000 Received: by mail.embedded-brains.de (Postfix, from userid 65534) id 03E74652CFE; Thu, 6 Feb 2014 14:55:32 +0100 (CET) Received: from [192.168.100.11] (unknown [192.168.100.11]) by mail.embedded-brains.de (Postfix) with ESMTP id B2329652CFB for ; Thu, 6 Feb 2014 14:55:31 +0100 (CET) Message-ID: <52F3944E.4030804@embedded-brains.de> Date: Thu, 06 Feb 2014 13:55:00 -0000 From: Sebastian Huber User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: GCC Subject: Test gcc.dg/uninit-13.c failure Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg00049.txt.bz2 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.