public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/48028] New: [4.4 Regression] undeserved uninitialized variable warning regression since 4.4.2
@ 2011-03-07 23:32 matt at use dot net
  2011-03-08  0:06 ` [Bug middle-end/48028] " matt at use dot net
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: matt at use dot net @ 2011-03-07 23:32 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [4.4 Regression] undeserved uninitialized variable
                    warning regression since 4.4.2
           Product: gcc
           Version: 4.4.5
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: matt@use.net


I have several instances of undeserved uninitialized variable warnings since
upgrading from 4.4.2 to 4.4.5. Oddly, they only seem to come up in 64-bit
targets, but I'm not sure if that's consistent. 

I have attached the pre-processed sources for two examples. One is from
kerberos5 sources.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug middle-end/48028] [4.4 Regression] undeserved uninitialized variable warning regression since 4.4.2
  2011-03-07 23:32 [Bug middle-end/48028] New: [4.4 Regression] undeserved uninitialized variable warning regression since 4.4.2 matt at use dot net
@ 2011-03-08  0:06 ` matt at use dot net
  2011-03-08  0:20 ` pinskia at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: matt at use dot net @ 2011-03-08  0:06 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Matt Hargett <matt at use dot net> 2011-03-08 00:06:26 UTC ---
Created attachment 23580
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23580
pre-processed source of the file that triggers the -Wuninitialized warning
regression on x86-64


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug middle-end/48028] [4.4 Regression] undeserved uninitialized variable warning regression since 4.4.2
  2011-03-07 23:32 [Bug middle-end/48028] New: [4.4 Regression] undeserved uninitialized variable warning regression since 4.4.2 matt at use dot net
  2011-03-08  0:06 ` [Bug middle-end/48028] " matt at use dot net
@ 2011-03-08  0:20 ` pinskia at gcc dot gnu.org
  2011-03-08  0:20 ` pinskia at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-03-08  0:20 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-03-08 00:19:48 UTC ---
So the code looks like (after inlining and folding of *&):
int f(void);
int g1(void);
void g2(int);

int g(void)
{
  int selret;
  int e = 0;
  while (1)
  {
    e = f();
    if (e!= 0)
      selret = g1();
    if (e==4)
      continue;
    if (e!=0)
      break;
    g2(selret);
  }
  return 0;
}


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug middle-end/48028] [4.4 Regression] undeserved uninitialized variable warning regression since 4.4.2
  2011-03-07 23:32 [Bug middle-end/48028] New: [4.4 Regression] undeserved uninitialized variable warning regression since 4.4.2 matt at use dot net
  2011-03-08  0:06 ` [Bug middle-end/48028] " matt at use dot net
  2011-03-08  0:20 ` pinskia at gcc dot gnu.org
@ 2011-03-08  0:20 ` pinskia at gcc dot gnu.org
  2011-03-08 10:55 ` [Bug middle-end/48028] [4.3/4.4 " rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-03-08  0:20 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-03-08 00:20:39 UTC ---
(In reply to comment #2)
> So the code looks like (after inlining and folding of *&):
Woops that is wrong, the first e!=0 should have been == 0 but we don't warn
there, hmm.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug middle-end/48028] [4.3/4.4 Regression] undeserved uninitialized variable warning regression since 4.4.2
  2011-03-07 23:32 [Bug middle-end/48028] New: [4.4 Regression] undeserved uninitialized variable warning regression since 4.4.2 matt at use dot net
                   ` (2 preceding siblings ...)
  2011-03-08  0:20 ` pinskia at gcc dot gnu.org
@ 2011-03-08 10:55 ` rguenth at gcc dot gnu.org
  2011-06-27 10:45 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-03-08 10:55 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011.03.08 10:55:41
      Known to work|                            |4.2.4, 4.4.0, 4.4.3, 4.5.2,
                   |                            |4.6.0
   Target Milestone|---                         |4.3.6
            Summary|[4.4 Regression] undeserved |[4.3/4.4 Regression]
                   |uninitialized variable      |undeserved uninitialized
                   |warning regression since    |variable warning regression
                   |4.4.2                       |since 4.4.2
     Ever Confirmed|0                           |1
      Known to fail|                            |4.3.0, 4.3.5, 4.4.4

--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-08 10:55:41 UTC ---
Only happens at -O3, so probably needs inlining to trigger and is susceptible
to inline heuristic changes.  4.5 works fine.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug middle-end/48028] [4.3/4.4 Regression] undeserved uninitialized variable warning regression since 4.4.2
  2011-03-07 23:32 [Bug middle-end/48028] New: [4.4 Regression] undeserved uninitialized variable warning regression since 4.4.2 matt at use dot net
                   ` (3 preceding siblings ...)
  2011-03-08 10:55 ` [Bug middle-end/48028] [4.3/4.4 " rguenth at gcc dot gnu.org
@ 2011-06-27 10:45 ` rguenth at gcc dot gnu.org
  2011-06-27 13:56 ` rguenth at gcc dot gnu.org
  2012-03-13 16:52 ` [Bug middle-end/48028] [4.4 " jakub at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-06-27 10:45 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug middle-end/48028] [4.3/4.4 Regression] undeserved uninitialized variable warning regression since 4.4.2
  2011-03-07 23:32 [Bug middle-end/48028] New: [4.4 Regression] undeserved uninitialized variable warning regression since 4.4.2 matt at use dot net
                   ` (4 preceding siblings ...)
  2011-06-27 10:45 ` rguenth at gcc dot gnu.org
@ 2011-06-27 13:56 ` rguenth at gcc dot gnu.org
  2012-03-13 16:52 ` [Bug middle-end/48028] [4.4 " jakub at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-06-27 13:56 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.6                       |4.4.7

--- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-06-27 12:13:46 UTC ---
4.3 branch is being closed, moving to 4.4.7 target.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug middle-end/48028] [4.4 Regression] undeserved uninitialized variable warning regression since 4.4.2
  2011-03-07 23:32 [Bug middle-end/48028] New: [4.4 Regression] undeserved uninitialized variable warning regression since 4.4.2 matt at use dot net
                   ` (5 preceding siblings ...)
  2011-06-27 13:56 ` rguenth at gcc dot gnu.org
@ 2012-03-13 16:52 ` jakub at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-03-13 16:52 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jakub at gcc dot gnu.org
         Resolution|                            |FIXED
   Target Milestone|4.4.7                       |4.5.2

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-03-13 13:26:47 UTC ---
Fixed in 4.5+, 4.4 is no longer supported.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-03-13 16:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-07 23:32 [Bug middle-end/48028] New: [4.4 Regression] undeserved uninitialized variable warning regression since 4.4.2 matt at use dot net
2011-03-08  0:06 ` [Bug middle-end/48028] " matt at use dot net
2011-03-08  0:20 ` pinskia at gcc dot gnu.org
2011-03-08  0:20 ` pinskia at gcc dot gnu.org
2011-03-08 10:55 ` [Bug middle-end/48028] [4.3/4.4 " rguenth at gcc dot gnu.org
2011-06-27 10:45 ` rguenth at gcc dot gnu.org
2011-06-27 13:56 ` rguenth at gcc dot gnu.org
2012-03-13 16:52 ` [Bug middle-end/48028] [4.4 " jakub 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).