public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/7227: Regression: bogus uninitialized variable warning with attribute mode TI
@ 2002-07-06 18:56 ghazi
0 siblings, 0 replies; only message in thread
From: ghazi @ 2002-07-06 18:56 UTC (permalink / raw)
To: gcc-gnats
>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:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-07-07 1:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-06 18:56 c/7227: Regression: bogus uninitialized variable warning with attribute mode TI ghazi
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).