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; 35+ 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] 35+ messages in thread
[parent not found: <bug-17506-361@http.gcc.gnu.org/bugzilla/>]
[parent not found: <bug-17506-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2021-09-02 15:21 UTC | newest]

Thread overview: 35+ 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
     [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
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
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
     [not found] <bug-17506-4@http.gcc.gnu.org/bugzilla/>
2021-09-02 15:21 ` cvs-commit at gcc dot gnu.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).