public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/17506] New: incorrect warning about non-existant variable
@ 2004-09-15 18:38 nathan at gcc dot gnu dot org
  2004-09-15 18:41 ` [Bug tree-optimization/17506] " nathan at gcc dot gnu dot org
                   ` (21 more replies)
  0 siblings, 22 replies; 23+ messages in thread
From: nathan at gcc dot gnu dot org @ 2004-09-15 18:38 UTC (permalink / raw)
  To: gcc-bugs

In patching cp/class.c I get the following error out of a bootstrap,

../../gcc/gcc/cp/class.c: In function `finish_struct_1':
../../gcc/gcc/tree.h:80: warning: 'ix' is used uninitialized in this function

*) tree.h:80 is a static inline function, which is called from finish_struct_1
*) finish_struct_1 nor that inline function have a variable called 'ix' (that I
can see).

I've attached a preprocessed source with all the #lines removed, and the
expansion of tree.h:80 split onto several lines for easy location. It has the
same problems, reporting

nathan@garibaldi:390>./cc1 -quiet -fdump-tree-all -Wall -W  -g -O2 unused.i
unused.i: In function `finish_struct_1':
unused.i:4262: warning: 'ix' is used uninitialized in this function

line 4262 is '  if (vec_ && ix_ < vec_->num)' -- a distinct lack of 'ix'.

-- 
           Summary: incorrect warning about non-existant variable
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: nathan at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506


^ permalink raw reply	[flat|nested] 23+ 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 ` nathan at gcc dot gnu dot org
  2004-09-15 20:25 ` bangerth at dealii dot org
                   ` (20 subsequent siblings)
  21 siblings, 0 replies; 23+ 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] 23+ 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; 23+ 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] 23+ 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; 23+ 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] 23+ 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; 23+ 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] 23+ 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; 23+ 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] 23+ 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; 23+ 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] 23+ 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; 23+ 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] 23+ 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; 23+ 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] 23+ 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; 23+ 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] 23+ 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; 23+ 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] 23+ 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; 23+ 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] 23+ 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; 23+ 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] 23+ 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; 23+ 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] 23+ 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; 23+ 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] 23+ 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; 23+ 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] 23+ 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; 23+ 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] 23+ 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; 23+ 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] 23+ 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; 23+ 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] 23+ 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; 23+ 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] 23+ 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; 23+ 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] 23+ 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; 23+ 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] 23+ 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; 23+ 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] 23+ messages in thread

end of thread, other threads:[~2005-09-27 16:07 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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
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
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
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
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
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

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).