public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/24004] gcc 4.0.2 gives bogus 'may be unused warnings' at -O3
[not found] <bug-24004-11395@http.gcc.gnu.org/bugzilla/>
@ 2005-12-01 23:57 ` SLTxLQEc4vuR5kMzK at anime dot net
2005-12-02 0:10 ` [Bug middle-end/24004] [4.0 Regression] bogus 'may be uninit warnings' for loops pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 5+ messages in thread
From: SLTxLQEc4vuR5kMzK at anime dot net @ 2005-12-01 23:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from SLTxLQEc4vuR5kMzK at anime dot net 2005-12-01 23:57 -------
still present in 4.0.2
--
SLTxLQEc4vuR5kMzK at anime dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|gcc 4.0.1 gives bogus 'may |gcc 4.0.2 gives bogus 'may
|be unused warnings' at -O3 |be unused warnings' at -O3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24004
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/24004] [4.0 Regression] bogus 'may be uninit warnings' for loops
[not found] <bug-24004-11395@http.gcc.gnu.org/bugzilla/>
2005-12-01 23:57 ` [Bug middle-end/24004] gcc 4.0.2 gives bogus 'may be unused warnings' at -O3 SLTxLQEc4vuR5kMzK at anime dot net
@ 2005-12-02 0:10 ` pinskia at gcc dot gnu dot org
2006-01-23 12:32 ` SLTxLQEc4vuR5kMzK at anime dot net
` (2 subsequent siblings)
4 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-12-02 0:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2005-12-02 00:10 -------
Note the warning is that bogus, take the following example:
float a(void)
{
float i;
float granularity = 0.01f;
float dist = 0;
float vec[2] = {0,0};
float lastPoint;
float result;
for(i = 0; i <= 1.f; i += granularity ) {
result = vec[1] - vec[0];
if( i != 0 ) {
vec[0] = result - lastPoint;
dist += vec[0];
}
lastPoint = result;
}
return dist;
}
We get the same warning. For the mainline, we get no warning as we are jump
threading so that the if (i!=0) is removed for the first iteration of the loop.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |24639
nThis| |
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |diagnostic
Known to fail| |4.0.0 4.0.3
Known to work| |4.1.0 3.4.0
Last reconfirmed|0000-00-00 00:00:00 |2005-12-02 00:10:15
date| |
Summary|gcc 4.0.2 gives bogus 'may |[4.0 Regression] bogus 'may
|be uninit warnings' at -O3 |be uninit warnings' for
| |loops
Target Milestone|--- |4.0.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24004
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/24004] [4.0 Regression] bogus 'may be uninit warnings' for loops
[not found] <bug-24004-11395@http.gcc.gnu.org/bugzilla/>
2005-12-01 23:57 ` [Bug middle-end/24004] gcc 4.0.2 gives bogus 'may be unused warnings' at -O3 SLTxLQEc4vuR5kMzK at anime dot net
2005-12-02 0:10 ` [Bug middle-end/24004] [4.0 Regression] bogus 'may be uninit warnings' for loops pinskia at gcc dot gnu dot org
@ 2006-01-23 12:32 ` SLTxLQEc4vuR5kMzK at anime dot net
2006-03-11 3:18 ` mmitchel at gcc dot gnu dot org
2007-02-03 15:44 ` gdr at gcc dot gnu dot org
4 siblings, 0 replies; 5+ messages in thread
From: SLTxLQEc4vuR5kMzK at anime dot net @ 2006-01-23 12:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from SLTxLQEc4vuR5kMzK at anime dot net 2006-01-23 12:32 -------
so is this a bug or not a bug? or user error?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24004
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/24004] [4.0 Regression] bogus 'may be uninit warnings' for loops
[not found] <bug-24004-11395@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2006-01-23 12:32 ` SLTxLQEc4vuR5kMzK at anime dot net
@ 2006-03-11 3:18 ` mmitchel at gcc dot gnu dot org
2007-02-03 15:44 ` gdr at gcc dot gnu dot org
4 siblings, 0 replies; 5+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-03-11 3:18 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.3 |4.0.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24004
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/24004] [4.0 Regression] bogus 'may be uninit warnings' for loops
[not found] <bug-24004-11395@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2006-03-11 3:18 ` mmitchel at gcc dot gnu dot org
@ 2007-02-03 15:44 ` gdr at gcc dot gnu dot org
4 siblings, 0 replies; 5+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-02-03 15:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from gdr at gcc dot gnu dot org 2007-02-03 15:44 -------
Fixed in GCC-4.1.1 and higher.
--
gdr at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|4.0.4 |4.1.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24004
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-02-03 15:44 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-24004-11395@http.gcc.gnu.org/bugzilla/>
2005-12-01 23:57 ` [Bug middle-end/24004] gcc 4.0.2 gives bogus 'may be unused warnings' at -O3 SLTxLQEc4vuR5kMzK at anime dot net
2005-12-02 0:10 ` [Bug middle-end/24004] [4.0 Regression] bogus 'may be uninit warnings' for loops pinskia at gcc dot gnu dot org
2006-01-23 12:32 ` SLTxLQEc4vuR5kMzK at anime dot net
2006-03-11 3:18 ` mmitchel at gcc dot gnu dot org
2007-02-03 15:44 ` gdr at gcc dot gnu dot org
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).