public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/21733] filecmp.c:252: warning: #n1# may be used uninitialized in this function
       [not found] <bug-21733-1216@http.gcc.gnu.org/bugzilla/>
@ 2005-11-26  7:39 ` gdr at gcc dot gnu dot org
  2005-11-26 16:53 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: gdr at gcc dot gnu dot org @ 2005-11-26  7:39 UTC (permalink / raw)
  To: gcc-bugs



-- 

gdr at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-11-26 07:39:55
               date|                            |


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


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

* [Bug middle-end/21733] filecmp.c:252: warning: #n1# may be used uninitialized in this function
       [not found] <bug-21733-1216@http.gcc.gnu.org/bugzilla/>
  2005-11-26  7:39 ` [Bug middle-end/21733] filecmp.c:252: warning: #n1# may be used uninitialized in this function gdr at gcc dot gnu dot org
@ 2005-11-26 16:53 ` pinskia at gcc dot gnu dot org
  2006-08-26  3:52 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-26 16:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2005-11-26 16:52 -------
k1=k2=0;
e1=e2=0;
for(;;)
{
  if (!e1)  if(k1<1111)
  {
    set n1
    if (n1 <0)
     {
        ....
        break;
     }
  }
  if (!e2)  if(k2<1111)
  {
    set n2
    if (n2 <0)
     {
        ....
        break;
     }
  }
}
...
if (n1 < 0 || n2 < 0)
  return 1;
L1:
return 2;

------
The problem is that "n1 < 0 || n2 < 0" is being executed in one bb and not
conditionaly


-- 


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


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

* [Bug middle-end/21733] filecmp.c:252: warning: #n1# may be used uninitialized in this function
       [not found] <bug-21733-1216@http.gcc.gnu.org/bugzilla/>
  2005-11-26  7:39 ` [Bug middle-end/21733] filecmp.c:252: warning: #n1# may be used uninitialized in this function gdr at gcc dot gnu dot org
  2005-11-26 16:53 ` pinskia at gcc dot gnu dot org
@ 2006-08-26  3:52 ` pinskia at gcc dot gnu dot org
  2008-08-20 11:33 ` manu at gcc dot gnu dot org
  2009-02-09 15:56 ` [Bug middle-end/21733] bogus uninitialized warning (huge testcase) manu at gcc dot gnu dot org
  4 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-26  3:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2006-08-26 03:52 -------
This is not a target specific bug either.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  GCC build triplet|powerpc-linux               |
   GCC host triplet|powerpc-linux               |
 GCC target triplet|powerpc-linux               |


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


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

* [Bug middle-end/21733] filecmp.c:252: warning: #n1# may be used uninitialized in this function
       [not found] <bug-21733-1216@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2006-08-26  3:52 ` pinskia at gcc dot gnu dot org
@ 2008-08-20 11:33 ` manu at gcc dot gnu dot org
  2009-02-09 15:56 ` [Bug middle-end/21733] bogus uninitialized warning (huge testcase) manu at gcc dot gnu dot org
  4 siblings, 0 replies; 7+ messages in thread
From: manu at gcc dot gnu dot org @ 2008-08-20 11:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from manu at gcc dot gnu dot org  2008-08-20 11:32 -------
There is some connection with PR 36296 but perhaps they are not exactly the
same issue.


-- 

manu at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu dot org
  BugsThisDependsOn|                            |36296


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


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

* [Bug middle-end/21733] bogus uninitialized warning (huge testcase)
       [not found] <bug-21733-1216@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2008-08-20 11:33 ` manu at gcc dot gnu dot org
@ 2009-02-09 15:56 ` manu at gcc dot gnu dot org
  4 siblings, 0 replies; 7+ messages in thread
From: manu at gcc dot gnu dot org @ 2009-02-09 15:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from manu at gcc dot gnu dot org  2009-02-09 15:56 -------
This testcase is too big to see clearly what is going on. A reduced testcase
would be appreciated (preferably with just 1 function).


-- 

manu at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2005-11-26 07:39:55         |2009-02-09 15:56:21
               date|                            |
            Summary|filecmp.c:252: warning: #n1#|bogus uninitialized warning
                   |may be used uninitialized in|(huge testcase)
                   |this function               |


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


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

* [Bug middle-end/21733] bogus uninitialized warning (huge testcase)
       [not found] <bug-21733-4@http.gcc.gnu.org/bugzilla/>
  2013-11-20  0:49 ` law at redhat dot com
@ 2013-11-20  0:55 ` law at redhat dot com
  1 sibling, 0 replies; 7+ messages in thread
From: law at redhat dot com @ 2013-11-20  0:55 UTC (permalink / raw)
  To: gcc-bugs

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

Bug 21733 depends on bug 36296, which changed state.

Bug 36296 Summary: bogus uninitialized warning (loop representation, VRP missed-optimization)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36296

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WORKSFORME


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

* [Bug middle-end/21733] bogus uninitialized warning (huge testcase)
       [not found] <bug-21733-4@http.gcc.gnu.org/bugzilla/>
@ 2013-11-20  0:49 ` law at redhat dot com
  2013-11-20  0:55 ` law at redhat dot com
  1 sibling, 0 replies; 7+ messages in thread
From: law at redhat dot com @ 2013-11-20  0:49 UTC (permalink / raw)
  To: gcc-bugs

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

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |law at redhat dot com
         Resolution|---                         |WORKSFORME
      Known to fail|                            |

--- Comment #7 from Jeffrey A. Law <law at redhat dot com> ---
Trunk seems to handle this just fine now.


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

end of thread, other threads:[~2013-11-20  0:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-21733-1216@http.gcc.gnu.org/bugzilla/>
2005-11-26  7:39 ` [Bug middle-end/21733] filecmp.c:252: warning: #n1# may be used uninitialized in this function gdr at gcc dot gnu dot org
2005-11-26 16:53 ` pinskia at gcc dot gnu dot org
2006-08-26  3:52 ` pinskia at gcc dot gnu dot org
2008-08-20 11:33 ` manu at gcc dot gnu dot org
2009-02-09 15:56 ` [Bug middle-end/21733] bogus uninitialized warning (huge testcase) manu at gcc dot gnu dot org
     [not found] <bug-21733-4@http.gcc.gnu.org/bugzilla/>
2013-11-20  0:49 ` law at redhat dot com
2013-11-20  0:55 ` law at redhat dot com

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