* [Bug tree-optimization/17506] incorrect warning about non-existant variable
2004-09-15 18:38 [Bug tree-optimization/17506] New: incorrect warning about non-existant variable nathan at gcc dot gnu dot org
@ 2004-09-15 18:41 ` nathan at gcc dot gnu dot org
2004-09-15 20:25 ` bangerth at dealii dot org
` (20 subsequent siblings)
21 siblings, 0 replies; 35+ messages in thread
From: nathan at gcc dot gnu dot org @ 2004-09-15 18:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From nathan at gcc dot gnu dot org 2004-09-15 18:41 -------
Created an attachment (id=7142)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7142&action=view)
stripped of line markers
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug tree-optimization/17506] incorrect warning about non-existant variable
2004-09-15 18:38 [Bug tree-optimization/17506] New: incorrect warning about non-existant variable nathan at gcc dot gnu dot org
2004-09-15 18:41 ` [Bug tree-optimization/17506] " nathan at gcc dot gnu dot org
@ 2004-09-15 20:25 ` bangerth at dealii dot org
2004-09-15 20:27 ` bangerth at dealii dot org
` (19 subsequent siblings)
21 siblings, 0 replies; 35+ messages in thread
From: bangerth at dealii dot org @ 2004-09-15 20:25 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2004-09-15 20:25 -------
Confirmed. BTW, the problem is in function finish_struct_1, but the
line 4262 to which the compiler warning refers is in a static inline
function VEC_tree_iterate. That function doesn't have a variable "ix",
though it has one named "ix_" -- which is probably sheer coincidence...
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-09-15 20:25:58
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug tree-optimization/17506] incorrect warning about non-existant variable
2004-09-15 18:38 [Bug tree-optimization/17506] New: incorrect warning about non-existant variable nathan at gcc dot gnu dot org
2004-09-15 18:41 ` [Bug tree-optimization/17506] " nathan at gcc dot gnu dot org
2004-09-15 20:25 ` bangerth at dealii dot org
@ 2004-09-15 20:27 ` bangerth at dealii dot org
2004-09-15 20:28 ` reichelt at gcc dot gnu dot org
` (18 subsequent siblings)
21 siblings, 0 replies; 35+ messages in thread
From: bangerth at dealii dot org @ 2004-09-15 20:27 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2004-09-15 20:27 -------
Oh, and if I only use flags "-O -Wall" instead of "-O2 -W -Wall -g", then
the message is still there (and at the same line) but it is noted for line
fixup_inline_methods.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug tree-optimization/17506] incorrect warning about non-existant variable
2004-09-15 18:38 [Bug tree-optimization/17506] New: incorrect warning about non-existant variable nathan at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-09-15 20:27 ` bangerth at dealii dot org
@ 2004-09-15 20:28 ` reichelt at gcc dot gnu dot org
2004-09-15 20:42 ` [Bug tree-optimization/17506] [4.0 regression] " nathan at gcc dot gnu dot org
` (17 subsequent siblings)
21 siblings, 0 replies; 35+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-09-15 20:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-09-15 20:28 -------
Confirmed. This is caused by inlining:
===================================
inline int foo (int i)
{
if (i) return 1;
return 0;
}
void bar()
{
int j;
for (; foo(j); ++j) ;
}
===================================
Compiling this with "-O1 -Wall" yields:
PR17506.c: In function `bar':
PR17506.c:3: warning: 'j' is used uninitialized in this function
Btw, Nathan, please compress files that large before attaching them to a PR.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug tree-optimization/17506] [4.0 regression] incorrect warning about non-existant variable
2004-09-15 18:38 [Bug tree-optimization/17506] New: incorrect warning about non-existant variable nathan at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-09-15 20:28 ` reichelt at gcc dot gnu dot org
@ 2004-09-15 20:42 ` nathan at gcc dot gnu dot org
2004-09-15 20:52 ` bangerth at dealii dot org
` (16 subsequent siblings)
21 siblings, 0 replies; 35+ messages in thread
From: nathan at gcc dot gnu dot org @ 2004-09-15 20:42 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From nathan at gcc dot gnu dot org 2004-09-15 20:42 -------
aha, I've found the problem in fixup_inline_methods, which is inlined into
its only caller -- finish_struct_1.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug tree-optimization/17506] [4.0 regression] incorrect warning about non-existant variable
2004-09-15 18:38 [Bug tree-optimization/17506] New: incorrect warning about non-existant variable nathan at gcc dot gnu dot org
` (4 preceding siblings ...)
2004-09-15 20:42 ` [Bug tree-optimization/17506] [4.0 regression] " nathan at gcc dot gnu dot org
@ 2004-09-15 20:52 ` bangerth at dealii dot org
2004-09-15 21:37 ` [Bug tree-optimization/17506] [4.0 regression] warning about does say which variable is used as uninitialized pinskia at gcc dot gnu dot org
` (15 subsequent siblings)
21 siblings, 0 replies; 35+ messages in thread
From: bangerth at dealii dot org @ 2004-09-15 20:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2004-09-15 20:52 -------
And indeed in fixup_inline_methods, you use "ix" uninitialized. I'm
surprised how quickly Volker reduced this -- I'm not even halfway there
(though I filed another PR in the meantime :-)
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug tree-optimization/17506] [4.0 regression] warning about does say which variable is used as uninitialized
2004-09-15 18:38 [Bug tree-optimization/17506] New: incorrect warning about non-existant variable nathan at gcc dot gnu dot org
` (5 preceding siblings ...)
2004-09-15 20:52 ` bangerth at dealii dot org
@ 2004-09-15 21:37 ` pinskia at gcc dot gnu dot org
2004-09-15 22:17 ` [Bug tree-optimization/17506] [4.0 regression] warning about uninitialized variable points to wrong location bangerth at dealii dot org
` (14 subsequent siblings)
21 siblings, 0 replies; 35+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-15 21:37 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-15 21:37 -------
Since this is only a diagnostic problem, rather than a real bug in the compiler, moving down the
severity.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
Summary|[4.0 regression] incorrect |[4.0 regression] warning
|warning about non-existent |about does say which
|variable |variable is used as
| |uninitialized
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug tree-optimization/17506] [4.0 regression] warning about uninitialized variable points to wrong location
2004-09-15 18:38 [Bug tree-optimization/17506] New: incorrect warning about non-existant variable nathan at gcc dot gnu dot org
` (6 preceding siblings ...)
2004-09-15 21:37 ` [Bug tree-optimization/17506] [4.0 regression] warning about does say which variable is used as uninitialized pinskia at gcc dot gnu dot org
@ 2004-09-15 22:17 ` bangerth at dealii dot org
2004-09-16 6:52 ` nathan at gcc dot gnu dot org
` (13 subsequent siblings)
21 siblings, 0 replies; 35+ messages in thread
From: bangerth at dealii dot org @ 2004-09-15 22:17 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2004-09-15 22:17 -------
I consider this important. Nathan has (involuntarily) shown that
it can be very hard to find the place where the problem really
is. This is a serious regression!
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|minor |normal
Known to fail| |4.0.0
Summary|[4.0 regression] warning |[4.0 regression] warning
|about does say which |about uninitialized variable
|variable is used as |points to wrong location
|uninitialized |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug tree-optimization/17506] [4.0 regression] warning about uninitialized variable points to wrong location
2004-09-15 18:38 [Bug tree-optimization/17506] New: incorrect warning about non-existant variable nathan at gcc dot gnu dot org
` (7 preceding siblings ...)
2004-09-15 22:17 ` [Bug tree-optimization/17506] [4.0 regression] warning about uninitialized variable points to wrong location bangerth at dealii dot org
@ 2004-09-16 6:52 ` nathan at gcc dot gnu dot org
2004-09-16 12:49 ` bangerth at dealii dot org
` (12 subsequent siblings)
21 siblings, 0 replies; 35+ messages in thread
From: nathan at gcc dot gnu dot org @ 2004-09-16 6:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From nathan at gcc dot gnu dot org 2004-09-16 06:52 -------
It's a pretty severe diagnostic problem, as the location information given
is very nearly useless. However, I've figured a workaround, which is
'-O2 -W -Wall -fno-inline'. We should mention that in release notes, if this
bug does not get fixed.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug tree-optimization/17506] [4.0 regression] warning about uninitialized variable points to wrong location
2004-09-15 18:38 [Bug tree-optimization/17506] New: incorrect warning about non-existant variable nathan at gcc dot gnu dot org
` (8 preceding siblings ...)
2004-09-16 6:52 ` nathan at gcc dot gnu dot org
@ 2004-09-16 12:49 ` bangerth at dealii dot org
2004-09-16 14:33 ` nathan at gcc dot gnu dot org
` (11 subsequent siblings)
21 siblings, 0 replies; 35+ messages in thread
From: bangerth at dealii dot org @ 2004-09-16 12:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2004-09-16 12:49 -------
I don't consider this a reasonable stop-gap[1]. And I wouldn't see why,
in the presence of a small testcase at the beginning of stage 3 we
shouldn't be able to fix this properly.
W.
[1] Nobody reads the release nodes (as shown with many PRs about not
being able to access elements of template base class), and we're bound
to get lots of bug reports that will be hard to reduce because the
compiler doesn't say where a problem happens.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug tree-optimization/17506] [4.0 regression] warning about uninitialized variable points to wrong location
2004-09-15 18:38 [Bug tree-optimization/17506] New: incorrect warning about non-existant variable nathan at gcc dot gnu dot org
` (9 preceding siblings ...)
2004-09-16 12:49 ` bangerth at dealii dot org
@ 2004-09-16 14:33 ` nathan at gcc dot gnu dot org
2004-10-21 4:06 ` pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
21 siblings, 0 replies; 35+ messages in thread
From: nathan at gcc dot gnu dot org @ 2004-09-16 14:33 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From nathan at gcc dot gnu dot org 2004-09-16 14:33 -------
No, I don't consider it a reasonable stopgap either :) Just thought I'd mention
it, if you find yourself in the same position. BTW, if you replace 'inline' with
'static' in the reduced testcase of #4, you'll get the same problem (which is
what happens in class.c). This is extremely confusing, because there are no
inline keywords anywhere :)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug tree-optimization/17506] [4.0 regression] warning about uninitialized variable points to wrong location
2004-09-15 18:38 [Bug tree-optimization/17506] New: incorrect warning about non-existant variable nathan at gcc dot gnu dot org
` (10 preceding siblings ...)
2004-09-16 14:33 ` nathan at gcc dot gnu dot org
@ 2004-10-21 4:06 ` pinskia at gcc dot gnu dot org
2004-10-21 4:09 ` pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
21 siblings, 0 replies; 35+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-21 4:06 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-21 04:05 -------
Created an attachment (id=7391)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7391&action=view)
Patch which fixes the problem
ChangeLog:
* tree-ssa.c (warn_uninit): Say where the variables are declared.
(warn_uninitialized_var): Use %qD.
(warn_uninitialized_phi): Likewise.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug tree-optimization/17506] [4.0 regression] warning about uninitialized variable points to wrong location
2004-09-15 18:38 [Bug tree-optimization/17506] New: incorrect warning about non-existant variable nathan at gcc dot gnu dot org
` (11 preceding siblings ...)
2004-10-21 4:06 ` pinskia at gcc dot gnu dot org
@ 2004-10-21 4:09 ` pinskia at gcc dot gnu dot org
2004-11-25 20:57 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
21 siblings, 0 replies; 35+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-21 4:09 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-21 04:09 -------
I will post this patch after you say if the message is a good idea or not.
I messed up on the patch though, it should be inform instead of "note". I changed it from warning as it
should not be warning.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug tree-optimization/17506] [4.0 regression] warning about uninitialized variable points to wrong location
2004-09-15 18:38 [Bug tree-optimization/17506] New: incorrect warning about non-existant variable nathan at gcc dot gnu dot org
` (12 preceding siblings ...)
2004-10-21 4:09 ` pinskia at gcc dot gnu dot org
@ 2004-11-25 20:57 ` pinskia at gcc dot gnu dot org
2005-01-20 23:52 ` reichelt at gcc dot gnu dot org
` (7 subsequent siblings)
21 siblings, 0 replies; 35+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-25 20:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-25 20:56 -------
I am going to post this patch soon (after dinner) with an update to the testsuite.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug tree-optimization/17506] [4.0 regression] warning about uninitialized variable points to wrong location
2004-09-15 18:38 [Bug tree-optimization/17506] New: incorrect warning about non-existant variable nathan at gcc dot gnu dot org
` (13 preceding siblings ...)
2004-11-25 20:57 ` pinskia at gcc dot gnu dot org
@ 2005-01-20 23:52 ` reichelt at gcc dot gnu dot org
2005-04-21 5:05 ` [Bug tree-optimization/17506] [4.0/4.1 " mmitchel at gcc dot gnu dot org
` (6 subsequent siblings)
21 siblings, 0 replies; 35+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-01-20 23:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2005-01-20 23:52 -------
Andrew, what happended to the patch?
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |monitored
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug tree-optimization/17506] [4.0/4.1 regression] warning about uninitialized variable points to wrong location
2004-09-15 18:38 [Bug tree-optimization/17506] New: incorrect warning about non-existant variable nathan at gcc dot gnu dot org
` (14 preceding siblings ...)
2005-01-20 23:52 ` reichelt at gcc dot gnu dot org
@ 2005-04-21 5:05 ` mmitchel at gcc dot gnu dot org
2005-07-08 1:41 ` mmitchel at gcc dot gnu dot org
` (5 subsequent siblings)
21 siblings, 0 replies; 35+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-04-21 5:05 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.0 |4.0.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug tree-optimization/17506] [4.0/4.1 regression] warning about uninitialized variable points to wrong location
2004-09-15 18:38 [Bug tree-optimization/17506] New: incorrect warning about non-existant variable nathan at gcc dot gnu dot org
` (15 preceding siblings ...)
2005-04-21 5:05 ` [Bug tree-optimization/17506] [4.0/4.1 " mmitchel at gcc dot gnu dot org
@ 2005-07-08 1:41 ` mmitchel at gcc dot gnu dot org
2005-07-13 11:41 ` reichelt at gcc dot gnu dot org
` (4 subsequent siblings)
21 siblings, 0 replies; 35+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-07-08 1:41 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.1 |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug tree-optimization/17506] [4.0/4.1 regression] warning about uninitialized variable points to wrong location
2004-09-15 18:38 [Bug tree-optimization/17506] New: incorrect warning about non-existant variable nathan at gcc dot gnu dot org
` (16 preceding siblings ...)
2005-07-08 1:41 ` mmitchel at gcc dot gnu dot org
@ 2005-07-13 11:41 ` reichelt at gcc dot gnu dot org
2005-07-13 11:51 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
21 siblings, 0 replies; 35+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-07-13 11:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2005-07-13 11:41 -------
The warning disappeared on mainline, see PR22456.
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |22456
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug tree-optimization/17506] [4.0/4.1 regression] warning about uninitialized variable points to wrong location
2004-09-15 18:38 [Bug tree-optimization/17506] New: incorrect warning about non-existant variable nathan at gcc dot gnu dot org
` (17 preceding siblings ...)
2005-07-13 11:41 ` reichelt at gcc dot gnu dot org
@ 2005-07-13 11:51 ` pinskia at gcc dot gnu dot org
2005-07-13 12:08 ` reichelt at gcc dot gnu dot org
` (2 subsequent siblings)
21 siblings, 0 replies; 35+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-13 11:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-13 11:48 -------
(In reply to comment #17)
> The warning disappeared on mainline, see PR22456.
Only in the reduced testcase as it was an empty loop.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug tree-optimization/17506] [4.0/4.1 regression] warning about uninitialized variable points to wrong location
2004-09-15 18:38 [Bug tree-optimization/17506] New: incorrect warning about non-existant variable nathan at gcc dot gnu dot org
` (18 preceding siblings ...)
2005-07-13 11:51 ` pinskia at gcc dot gnu dot org
@ 2005-07-13 12:08 ` reichelt at gcc dot gnu dot org
2005-08-22 12:19 ` pinskia at gcc dot gnu dot org
2005-09-27 16:10 ` mmitchel at gcc dot gnu dot org
21 siblings, 0 replies; 35+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-07-13 12:08 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2005-07-13 12:05 -------
> Only in the reduced testcase as it was an empty loop.
Right. Here's a new testcase that still triggers the bug on mainline:
============================
inline int foo (int i)
{
if (i) return 1;
return 0;
}
void baz();
void bar()
{
int j;
for (; foo(j); ++j)
baz();
}
============================
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn|22456 |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug tree-optimization/17506] [4.0/4.1 regression] warning about uninitialized variable points to wrong location
2004-09-15 18:38 [Bug tree-optimization/17506] New: incorrect warning about non-existant variable nathan at gcc dot gnu dot org
` (19 preceding siblings ...)
2005-07-13 12:08 ` reichelt at gcc dot gnu dot org
@ 2005-08-22 12:19 ` pinskia at gcc dot gnu dot org
2005-09-27 16:10 ` mmitchel at gcc dot gnu dot org
21 siblings, 0 replies; 35+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-22 12:19 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug tree-optimization/17506] [4.0/4.1 regression] warning about uninitialized variable points to wrong location
2004-09-15 18:38 [Bug tree-optimization/17506] New: incorrect warning about non-existant variable nathan at gcc dot gnu dot org
` (20 preceding siblings ...)
2005-08-22 12:19 ` pinskia at gcc dot gnu dot org
@ 2005-09-27 16:10 ` mmitchel at gcc dot gnu dot org
21 siblings, 0 replies; 35+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-09-27 16:10 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.2 |4.0.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug tree-optimization/17506] [4.0/4.1 regression] warning about uninitialized variable points to wrong location
[not found] <bug-17506-361@http.gcc.gnu.org/bugzilla/>
@ 2005-10-23 0:02 ` pinskia at gcc dot gnu dot org
2005-10-30 22:53 ` mmitchel at gcc dot gnu dot org
` (9 subsequent siblings)
10 siblings, 0 replies; 35+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-23 0:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #20 from pinskia at gcc dot gnu dot org 2005-10-23 00:02 -------
No longer working on this. If someone to take my patch and update it and also
update the testsuite, that is ok with me.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|pinskia at gcc dot gnu dot |unassigned at gcc dot gnu
|org |dot org
Status|ASSIGNED |NEW
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug tree-optimization/17506] [4.0/4.1 regression] warning about uninitialized variable points to wrong location
[not found] <bug-17506-361@http.gcc.gnu.org/bugzilla/>
2005-10-23 0:02 ` pinskia at gcc dot gnu dot org
@ 2005-10-30 22:53 ` mmitchel at gcc dot gnu dot org
2005-10-30 23:40 ` steven at gcc dot gnu dot org
` (8 subsequent siblings)
10 siblings, 0 replies; 35+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-10-30 22:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #21 from mmitchel at gcc dot gnu dot org 2005-10-30 22:53 -------
Leaving as P2; as stated in the audit trail, this problem has the potential to
seriously confuse people.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug tree-optimization/17506] [4.0/4.1 regression] warning about uninitialized variable points to wrong location
[not found] <bug-17506-361@http.gcc.gnu.org/bugzilla/>
2005-10-23 0:02 ` pinskia at gcc dot gnu dot org
2005-10-30 22:53 ` mmitchel at gcc dot gnu dot org
@ 2005-10-30 23:40 ` steven at gcc dot gnu dot org
2006-08-30 3:33 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
10 siblings, 0 replies; 35+ messages in thread
From: steven at gcc dot gnu dot org @ 2005-10-30 23:40 UTC (permalink / raw)
To: gcc-bugs
--
steven at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |steven at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2005-02-26 18:42:11 |2005-10-30 23:39:58
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug tree-optimization/17506] [4.0/4.1 regression] warning about uninitialized variable points to wrong location
[not found] <bug-17506-361@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2005-10-30 23:40 ` steven at gcc dot gnu dot org
@ 2006-08-30 3:33 ` pinskia at gcc dot gnu dot org
2006-08-30 18:47 ` amylaar at gcc dot gnu dot org
` (6 subsequent siblings)
10 siblings, 0 replies; 35+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-30 3:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #30 from pinskia at gcc dot gnu dot org 2006-08-30 03:33 -------
I will file tomorrow the bug reports about the cases I mentioned to the patches
list.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.0/4.1/4.2 regression] |[4.0/4.1 regression]
|warning about uninitialized |warning about uninitialized
|variable points to wrong |variable points to wrong
|location |location
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug tree-optimization/17506] [4.0/4.1 regression] warning about uninitialized variable points to wrong location
[not found] <bug-17506-361@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2006-08-30 3:33 ` pinskia at gcc dot gnu dot org
@ 2006-08-30 18:47 ` amylaar at gcc dot gnu dot org
2006-08-30 18:58 ` amylaar at gcc dot gnu dot org
` (5 subsequent siblings)
10 siblings, 0 replies; 35+ messages in thread
From: amylaar at gcc dot gnu dot org @ 2006-08-30 18:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #31 from amylaar at gcc dot gnu dot org 2006-08-30 18:47 -------
(In reply to comment #29)
> (In reply to comment #28)
>
> > 2006-08-29 Nathan Sidwell <nathan@codesourcery.com>
> > J"orn Rennecke <joern.rennecke@st.com>
> >
> > PR tree-optimization/17506
> > * tree-ssa.c (warn_uninit): If warning about a location outside of
> > the current function, note where the variable was declared.
>
> I have no recollection of writing any patch about this (and have no objection
> to being removed from the credits :)
>
Oops, I mixed up comments #11 and #12.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug tree-optimization/17506] [4.0/4.1 regression] warning about uninitialized variable points to wrong location
[not found] <bug-17506-361@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2006-08-30 18:47 ` amylaar at gcc dot gnu dot org
@ 2006-08-30 18:58 ` amylaar at gcc dot gnu dot org
2006-10-18 9:27 ` rguenth at gcc dot gnu dot org
` (4 subsequent siblings)
10 siblings, 0 replies; 35+ messages in thread
From: amylaar at gcc dot gnu dot org @ 2006-08-30 18:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #32 from amylaar at gcc dot gnu dot org 2006-08-30 18:58 -------
Subject: Bug 17506
Author: amylaar
Date: Wed Aug 30 18:57:54 2006
New Revision: 116593
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116593
Log:
Fixed attribution for patch for PR tree-optimization/17506
Modified:
trunk/gcc/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug tree-optimization/17506] [4.0/4.1 regression] warning about uninitialized variable points to wrong location
[not found] <bug-17506-361@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2006-08-30 18:58 ` amylaar at gcc dot gnu dot org
@ 2006-10-18 9:27 ` rguenth at gcc dot gnu dot org
2007-02-14 9:03 ` mmitchel at gcc dot gnu dot org
` (3 subsequent siblings)
10 siblings, 0 replies; 35+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-10-18 9:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #33 from rguenth at gcc dot gnu dot org 2006-10-18 09:27 -------
A backport bootstraps and regtests ok on the 4.1 branch. Don't know if the
side-effects of this patch makes it appplicable for backporting though.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug tree-optimization/17506] [4.0/4.1 regression] warning about uninitialized variable points to wrong location
[not found] <bug-17506-361@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2006-10-18 9:27 ` rguenth at gcc dot gnu dot org
@ 2007-02-14 9:03 ` mmitchel at gcc dot gnu dot org
2007-04-03 5:20 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
10 siblings, 0 replies; 35+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-02-14 9:03 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.1.2 |4.1.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug tree-optimization/17506] [4.0/4.1 regression] warning about uninitialized variable points to wrong location
[not found] <bug-17506-361@http.gcc.gnu.org/bugzilla/>
` (7 preceding siblings ...)
2007-02-14 9:03 ` mmitchel at gcc dot gnu dot org
@ 2007-04-03 5:20 ` pinskia at gcc dot gnu dot org
2007-08-15 15:23 ` manu at gcc dot gnu dot org
2008-02-20 22:34 ` [Bug tree-optimization/17506] [4.0/4.1 Regression] " rguenth at gcc dot gnu dot org
10 siblings, 0 replies; 35+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-04-03 5:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #34 from pinskia at gcc dot gnu dot org 2007-04-03 06:19 -------
*** Bug 31181 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ahs3 at fc dot hp dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug tree-optimization/17506] [4.0/4.1 regression] warning about uninitialized variable points to wrong location
[not found] <bug-17506-361@http.gcc.gnu.org/bugzilla/>
` (8 preceding siblings ...)
2007-04-03 5:20 ` pinskia at gcc dot gnu dot org
@ 2007-08-15 15:23 ` manu at gcc dot gnu dot org
2008-02-20 22:34 ` [Bug tree-optimization/17506] [4.0/4.1 Regression] " rguenth at gcc dot gnu dot org
10 siblings, 0 replies; 35+ messages in thread
From: manu at gcc dot gnu dot org @ 2007-08-15 15:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #35 from manu at gcc dot gnu dot org 2007-08-15 15:23 -------
If there are not going to be more releases of GCC 4.0 or 4.1, I guess we can
close this, no?
--
manu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
^ permalink raw reply [flat|nested] 35+ messages in thread
* [Bug tree-optimization/17506] [4.0/4.1 Regression] warning about uninitialized variable points to wrong location
[not found] <bug-17506-361@http.gcc.gnu.org/bugzilla/>
` (9 preceding siblings ...)
2007-08-15 15:23 ` manu at gcc dot gnu dot org
@ 2008-02-20 22:34 ` rguenth at gcc dot gnu dot org
10 siblings, 0 replies; 35+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-02-20 22:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #36 from rguenth at gcc dot gnu dot org 2008-02-20 22:34 -------
Fixed since 4.2.0, wontfix for older branches.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Known to fail|4.0.0 |4.0.0 4.1.3
Known to work|3.4.2 |3.4.2 4.2.0
Resolution| |FIXED
Summary|[4.0/4.1 regression] |[4.0/4.1 Regression]
|warning about uninitialized |warning about uninitialized
|variable points to wrong |variable points to wrong
|location |location
Target Milestone|4.1.3 |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
^ permalink raw reply [flat|nested] 35+ messages in thread