From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18142 invoked by alias); 7 Jul 2002 01:56:04 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 18060 invoked by uid 71); 7 Jul 2002 01:56:01 -0000 Resent-Date: 7 Jul 2002 01:56:01 -0000 Resent-Message-ID: <20020707015601.18059.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, ghazi@caip.rutgers.edu Received: (qmail 14729 invoked by uid 61); 7 Jul 2002 01:52:48 -0000 Message-Id: <20020707015248.14728.qmail@sources.redhat.com> Date: Sat, 06 Jul 2002 18:56:00 -0000 From: ghazi@caip.rutgers.edu Reply-To: ghazi@caip.rutgers.edu To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c/7227: Regression: bogus uninitialized variable warning with attribute mode TI X-SW-Source: 2002-07/txt/msg00230.txt.bz2 List-Id: >Number: 7227 >Category: c >Synopsis: Regression: bogus uninitialized variable warning with attribute mode TI >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: mistaken >Submitter-Id: net >Arrival-Date: Sat Jul 06 18:56:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Kaveh Ghazi >Release: gcc version 3.2 20020706 (experimental) >Organization: >Environment: sparc-sun-solaris2.7 & mips-sgi-irix6.2 (but probably all) >Description: This testcase yields an uninitialized variable warning when compiled with the 3.2 trunk. The current 3.1.x branch doesn't complain, thus it is a regression. I've written the testcase in a form suitable for installation as gcc.dg/uninit-C.c: /* Spurious uninitialized variable warning, inspired by libgcc2.c. */ /* { dg-do compile } */ /* { dg-options "-O -Wuninitialized" } */ typedef int TItype __attribute__ ((mode (TI))); TItype __subvdi3 (TItype a, TItype b) { TItype w; w = a - b; return w; } >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: