public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/19430] Missing uninitialized warning
       [not found] <bug-19430-9033@http.gcc.gnu.org/bugzilla/>
@ 2006-03-10 15:25 ` ciaccio at disi dot unige dot it
  2006-03-10 15:28 ` pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 17+ messages in thread
From: ciaccio at disi dot unige dot it @ 2006-03-10 15:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from ciaccio at disi dot unige dot it  2006-03-10 15:25 -------
An even simpler test case of this bug (tested with gcc 3.4.5):

int main( void ) {
        int rc;
        return rc;
        *&rc = 0;
}

> gcc -O -Wall program.c
(more stunning silence)

NOTE: in this example, there is no function invocation inside main().
NOTE: remove the last statement in the program, and the warning will show up.

g.


-- 


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


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

* [Bug middle-end/19430] Missing uninitialized warning
       [not found] <bug-19430-9033@http.gcc.gnu.org/bugzilla/>
  2006-03-10 15:25 ` [Bug middle-end/19430] Missing uninitialized warning ciaccio at disi dot unige dot it
@ 2006-03-10 15:28 ` pinskia at gcc dot gnu dot org
  2006-03-10 15:31 ` dnovillo at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-10 15:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from pinskia at gcc dot gnu dot org  2006-03-10 15:28 -------
(In reply to comment #7)
> An even simpler test case of this bug (tested with gcc 3.4.5):
That works correctly in 4.0.0 and above.


-- 


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


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

* [Bug middle-end/19430] Missing uninitialized warning
       [not found] <bug-19430-9033@http.gcc.gnu.org/bugzilla/>
  2006-03-10 15:25 ` [Bug middle-end/19430] Missing uninitialized warning ciaccio at disi dot unige dot it
  2006-03-10 15:28 ` pinskia at gcc dot gnu dot org
@ 2006-03-10 15:31 ` dnovillo at gcc dot gnu dot org
  2006-03-10 15:37 ` mike at codeweavers dot com
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 17+ messages in thread
From: dnovillo at gcc dot gnu dot org @ 2006-03-10 15:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from dnovillo at gcc dot gnu dot org  2006-03-10 15:31 -------

Not going to work on this problem any time soon.


-- 

dnovillo at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|dnovillo 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=19430


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

* [Bug middle-end/19430] Missing uninitialized warning
       [not found] <bug-19430-9033@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2006-03-10 15:31 ` dnovillo at gcc dot gnu dot org
@ 2006-03-10 15:37 ` mike at codeweavers dot com
  2006-09-25 22:44 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 17+ messages in thread
From: mike at codeweavers dot com @ 2006-03-10 15:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from mike at codeweavers dot com  2006-03-10 15:37 -------
Can I bribe you to work on it by fixing a Wine bug in exchange? :)


-- 


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


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

* [Bug middle-end/19430] Missing uninitialized warning
       [not found] <bug-19430-9033@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2006-03-10 15:37 ` mike at codeweavers dot com
@ 2006-09-25 22:44 ` pinskia at gcc dot gnu dot org
  2007-03-02 23:36 ` skunk at iskunk dot org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-25 22:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from pinskia at gcc dot gnu dot org  2006-09-25 22:44 -------
*** Bug 29227 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |debian-gcc at lists dot
                   |                            |debian dot org


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


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

* [Bug middle-end/19430] Missing uninitialized warning
       [not found] <bug-19430-9033@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2006-09-25 22:44 ` pinskia at gcc dot gnu dot org
@ 2007-03-02 23:36 ` skunk at iskunk dot org
  2007-03-20 17:43 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 17+ messages in thread
From: skunk at iskunk dot org @ 2007-03-02 23:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from skunk at iskunk dot org  2007-03-02 23:36 -------
Here's my minimal test case. Compile with "-O3 -Wall -c":

#include <stdio.h>

void frob(int *pi);

int main(void)
{
    int i;
    printf("i = %d\n", i);
    frob(&i);

    return 0;
}

No warning from 4.0.3 nor 4.1.2....


-- 


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


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

* [Bug middle-end/19430] Missing uninitialized warning
       [not found] <bug-19430-9033@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2007-03-02 23:36 ` skunk at iskunk dot org
@ 2007-03-20 17:43 ` pinskia at gcc dot gnu dot org
  2007-08-15 15:36 ` [Bug middle-end/19430] V_MAY_DEF (taking address of var) causes missing " manu at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-03-20 17:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from pinskia at gcc dot gnu dot org  2007-03-20 17:43 -------
*** Bug 31284 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu dot
                   |                            |org


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


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

* [Bug middle-end/19430] V_MAY_DEF (taking address of var) causes missing uninitialized warning
       [not found] <bug-19430-9033@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2007-03-20 17:43 ` pinskia at gcc dot gnu dot org
@ 2007-08-15 15:36 ` manu at gcc dot gnu dot org
  2007-08-17  9:17 ` manu at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 17+ messages in thread
From: manu at gcc dot gnu dot org @ 2007-08-15 15:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from manu at gcc dot gnu dot org  2007-08-15 15:36 -------
Trying to improve the summary to help spot duplicates.


-- 

manu at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu dot org
            Summary|Missing uninitialized       |V_MAY_DEF (taking address of
                   |warning                     |var) causes missing
                   |                            |uninitialized warning


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


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

* [Bug middle-end/19430] V_MAY_DEF (taking address of var) causes missing uninitialized warning
       [not found] <bug-19430-9033@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2007-08-15 15:36 ` [Bug middle-end/19430] V_MAY_DEF (taking address of var) causes missing " manu at gcc dot gnu dot org
@ 2007-08-17  9:17 ` manu at gcc dot gnu dot org
  2008-08-20 22:32 ` manu at gcc dot gnu dot org
  2009-11-19 12:01 ` manu at gcc dot gnu dot org
  10 siblings, 0 replies; 17+ messages in thread
From: manu at gcc dot gnu dot org @ 2007-08-17  9:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #15 from manu at gcc dot gnu dot org  2007-08-17 09:17 -------
This seems to me a duplicate of PR179. I am going to add a dependency to
remember to check this PR when PR179 gets fixed.


-- 

manu at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |179


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


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

* [Bug middle-end/19430] V_MAY_DEF (taking address of var) causes missing uninitialized warning
       [not found] <bug-19430-9033@http.gcc.gnu.org/bugzilla/>
                   ` (8 preceding siblings ...)
  2007-08-17  9:17 ` manu at gcc dot gnu dot org
@ 2008-08-20 22:32 ` manu at gcc dot gnu dot org
  2009-11-19 12:01 ` manu at gcc dot gnu dot org
  10 siblings, 0 replies; 17+ messages in thread
From: manu at gcc dot gnu dot org @ 2008-08-20 22:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #16 from manu at gcc dot gnu dot org  2008-08-20 22:31 -------
All testcases except the one in the original description were actually
duplicates of PR179 and are thusly fixed. 

The original testcase deals with PHI ops which is a completely different beast.
I added it XFAILED as gcc.dg/uninit-pr19430.c but I doubt it will get magically
fixed, so suggestions/patches welcome.


-- 


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


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

* [Bug middle-end/19430] V_MAY_DEF (taking address of var) causes missing uninitialized warning
       [not found] <bug-19430-9033@http.gcc.gnu.org/bugzilla/>
                   ` (9 preceding siblings ...)
  2008-08-20 22:32 ` manu at gcc dot gnu dot org
@ 2009-11-19 12:01 ` manu at gcc dot gnu dot org
  10 siblings, 0 replies; 17+ messages in thread
From: manu at gcc dot gnu dot org @ 2009-11-19 12:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #17 from manu at gcc dot gnu dot org  2009-11-19 12:00 -------
*** Bug 42079 has been marked as a duplicate of this bug. ***


-- 

manu at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |m dot b dot lankhorst at
                   |                            |gmail dot com


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


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

* [Bug middle-end/19430] Missing uninitialized warning
  2005-01-13 20:05 [Bug c/19430] New: Missing warning terra at gnome dot org
                   ` (4 preceding siblings ...)
  2005-09-10  8:07 ` mike at codeweavers dot com
@ 2005-09-12 21:55 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-12 21:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-12 21:55 -------
*** Bug 23844 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marcus at jet dot franken
                   |                            |dot de


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


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

* [Bug middle-end/19430] Missing uninitialized warning
  2005-01-13 20:05 [Bug c/19430] New: Missing warning terra at gnome dot org
                   ` (3 preceding siblings ...)
  2005-09-10  2:19 ` pinskia at gcc dot gnu dot org
@ 2005-09-10  8:07 ` mike at codeweavers dot com
  2005-09-12 21:55 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 17+ messages in thread
From: mike at codeweavers dot com @ 2005-09-10  8:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mike at codeweavers dot com  2005-09-10 08:07 -------

Simplifying things a bit:

void foo(int*);
void bar(void) { int x; if(x) foo(&x); }

gcc -c foo.c -Wall -O2 -Wuninitialized

(More stunning silence.)


-- 


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


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

* [Bug middle-end/19430] Missing uninitialized warning
  2005-01-13 20:05 [Bug c/19430] New: Missing warning terra at gnome dot org
                   ` (2 preceding siblings ...)
  2005-09-10  2:17 ` pinskia at gcc dot gnu dot org
@ 2005-09-10  2:19 ` pinskia at gcc dot gnu dot org
  2005-09-10  8:07 ` mike at codeweavers dot com
  2005-09-12 21:55 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-10  2:19 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-10 02:19 -------
(In reply to comment #3)
> (In reply to comment #1)
> > Confirmed.  It doesn't work on mainline either.  The warning machinery is
> > getting confused with the first V_MAY_DEF to j in the first call to 'bar()'.
> Actually the warning machinery does not work with VOPs at all.
I should say see PR 23805 for an example of that.
Also the extra V_MAY_DEF is coming from that fact the clobber list is not flow sensitive, see PR 23384 
for that bug.

-- 


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


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

* [Bug middle-end/19430] Missing uninitialized warning
  2005-01-13 20:05 [Bug c/19430] New: Missing warning terra at gnome dot org
  2005-01-13 20:32 ` [Bug middle-end/19430] Missing uninitialized warning pinskia at gcc dot gnu dot org
  2005-09-10  2:16 ` pinskia at gcc dot gnu dot org
@ 2005-09-10  2:17 ` pinskia at gcc dot gnu dot org
  2005-09-10  2:19 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-10  2:17 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-10 02:17 -------
(In reply to comment #1)
> Confirmed.  It doesn't work on mainline either.  The warning machinery is
> getting confused with the first V_MAY_DEF to j in the first call to 'bar()'.
Actually the warning machinery does not work with VOPs at all.

-- 


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


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

* [Bug middle-end/19430] Missing uninitialized warning
  2005-01-13 20:05 [Bug c/19430] New: Missing warning terra at gnome dot org
  2005-01-13 20:32 ` [Bug middle-end/19430] Missing uninitialized warning pinskia at gcc dot gnu dot org
@ 2005-09-10  2:16 ` pinskia at gcc dot gnu dot org
  2005-09-10  2:17 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-10  2:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-10 02:16 -------
*** Bug 23805 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mike at codeweavers dot com


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


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

* [Bug middle-end/19430] Missing uninitialized warning
  2005-01-13 20:05 [Bug c/19430] New: Missing warning terra at gnome dot org
@ 2005-01-13 20:32 ` pinskia at gcc dot gnu dot org
  2005-09-10  2:16 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-13 20:32 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor
          Component|c                           |middle-end
           Keywords|                            |diagnostic
           Priority|P2                          |P3
            Summary|Missing warning             |Missing uninitialized
                   |                            |warning


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


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

end of thread, other threads:[~2009-11-19 12:01 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-19430-9033@http.gcc.gnu.org/bugzilla/>
2006-03-10 15:25 ` [Bug middle-end/19430] Missing uninitialized warning ciaccio at disi dot unige dot it
2006-03-10 15:28 ` pinskia at gcc dot gnu dot org
2006-03-10 15:31 ` dnovillo at gcc dot gnu dot org
2006-03-10 15:37 ` mike at codeweavers dot com
2006-09-25 22:44 ` pinskia at gcc dot gnu dot org
2007-03-02 23:36 ` skunk at iskunk dot org
2007-03-20 17:43 ` pinskia at gcc dot gnu dot org
2007-08-15 15:36 ` [Bug middle-end/19430] V_MAY_DEF (taking address of var) causes missing " manu at gcc dot gnu dot org
2007-08-17  9:17 ` manu at gcc dot gnu dot org
2008-08-20 22:32 ` manu at gcc dot gnu dot org
2009-11-19 12:01 ` manu at gcc dot gnu dot org
2005-01-13 20:05 [Bug c/19430] New: Missing warning terra at gnome dot org
2005-01-13 20:32 ` [Bug middle-end/19430] Missing uninitialized warning pinskia at gcc dot gnu dot org
2005-09-10  2:16 ` pinskia at gcc dot gnu dot org
2005-09-10  2:17 ` pinskia at gcc dot gnu dot org
2005-09-10  2:19 ` pinskia at gcc dot gnu dot org
2005-09-10  8:07 ` mike at codeweavers dot com
2005-09-12 21:55 ` pinskia 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).