public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/17506] [4.0/4.1 Regression] warning about uninitialized variable points to wrong location
[not found] <bug-17506-4@http.gcc.gnu.org/bugzilla/>
@ 2021-09-02 15:21 ` cvs-commit at gcc dot gnu.org
0 siblings, 0 replies; 19+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-09-02 15:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=17506
--- Comment #37 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Sebor <msebor@gcc.gnu.org>:
https://gcc.gnu.org/g:9695e1c23be5b5c55d572ced152897313ddb96ae
commit r12-3315-g9695e1c23be5b5c55d572ced152897313ddb96ae
Author: Martin Sebor <msebor@redhat.com>
Date: Thu Sep 2 09:20:09 2021 -0600
Improve -Wuninitialized note location.
Related:
PR tree-optimization/17506 - warning about uninitialized variable points to
wrong location
PR testsuite/37182 - Revision 139286 caused gcc.dg/pr17506.c and
gcc.dg/uninit-15.c
gcc/ChangeLog:
PR tree-optimization/17506
PR testsuite/37182
* tree-ssa-uninit.c (warn_uninit): Remove conditional guarding
note.
gcc/testsuite/ChangeLog:
PR tree-optimization/17506
PR testsuite/37182
* gcc.dg/diagnostic-tree-expr-ranges-2.c: Add expected output.
* gcc.dg/uninit-15-O0.c: Remove xfail.
* gcc.dg/uninit-15.c: Same.
^ permalink raw reply [flat|nested] 19+ 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; 19+ 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] 19+ 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; 19+ 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] 19+ 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; 19+ 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] 19+ 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; 19+ 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] 19+ 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; 19+ 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] 19+ 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; 19+ 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] 19+ 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; 19+ 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] 19+ 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; 19+ 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] 19+ 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 ` [Bug tree-optimization/17506] [4.0/4.1 regression] " 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; 19+ 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] 19+ 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 ` [Bug tree-optimization/17506] [4.0/4.1 regression] " 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; 19+ 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] 19+ 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; 19+ 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] 19+ 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
` (5 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
6 siblings, 0 replies; 19+ 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] 19+ 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
` (4 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
6 siblings, 0 replies; 19+ 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] 19+ 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
` (3 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
6 siblings, 0 replies; 19+ 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] 19+ 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
` (2 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)
6 siblings, 0 replies; 19+ 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] 19+ 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
2005-04-21 5:05 ` [Bug tree-optimization/17506] [4.0/4.1 regression] warning about uninitialized variable points to wrong location 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
` (3 subsequent siblings)
6 siblings, 0 replies; 19+ 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] 19+ 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
2005-04-21 5:05 ` [Bug tree-optimization/17506] [4.0/4.1 regression] warning about uninitialized variable points to wrong location 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)
6 siblings, 0 replies; 19+ 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] 19+ 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
@ 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)
6 siblings, 0 replies; 19+ 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] 19+ messages in thread
end of thread, other threads:[~2021-09-02 15:21 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-17506-4@http.gcc.gnu.org/bugzilla/>
2021-09-02 15:21 ` [Bug tree-optimization/17506] [4.0/4.1 Regression] warning about uninitialized variable points to wrong location cvs-commit at gcc dot gnu.org
[not found] <bug-17506-361@http.gcc.gnu.org/bugzilla/>
2005-10-23 0:02 ` [Bug tree-optimization/17506] [4.0/4.1 regression] " 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
2004-09-15 18:38 [Bug tree-optimization/17506] New: incorrect warning about non-existant variable nathan at gcc dot gnu dot org
2005-04-21 5:05 ` [Bug tree-optimization/17506] [4.0/4.1 regression] warning about uninitialized variable points to wrong location 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).