public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/7827: incorrect warning "will never be executed" when optimizing
@ 2002-09-13  9:45 nathan
  0 siblings, 0 replies; 3+ messages in thread
From: nathan @ 2002-09-13  9:45 UTC (permalink / raw)
  To: duchier, gcc-bugs, gcc-prs, nobody

Synopsis: incorrect warning "will never be executed" when optimizing

State-Changed-From-To: open->analyzed
State-Changed-By: nathan
State-Changed-When: Fri Sep 13 09:45:01 2002
State-Changed-Why:
    confirmed

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7827


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

* Re: c++/7827: incorrect warning "will never be executed" when optimizing
@ 2003-05-09  1:12 bangerth
  0 siblings, 0 replies; 3+ messages in thread
From: bangerth @ 2003-05-09  1:12 UTC (permalink / raw)
  To: duchier, gcc-bugs, gcc-prs, nobody

Synopsis: incorrect warning "will never be executed" when optimizing

State-Changed-From-To: analyzed->closed
State-Changed-By: bangerth
State-Changed-When: Fri May  9 01:12:34 2003
State-Changed-Why:
    Fixed in 3.2.3, 3.3 and mainline

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7827


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

* c++/7827: incorrect warning "will never be executed" when optimizing
@ 2002-09-04  9:46 duchier
  0 siblings, 0 replies; 3+ messages in thread
From: duchier @ 2002-09-04  9:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         7827
>Category:       c++
>Synopsis:       incorrect warning "will never be executed" when optimizing
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 04 09:46:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     duchier@ps.uni-sb.de
>Release:        3.2.1 20020904 (prerelease)
>Organization:
>Environment:
System: Linux speedy 2.4.18-5 #1 Mon Jun 10 15:31:48 EDT 2002 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc-3_2-branch/configure --enable-languages=c,c++ --prefix=/home/denys/src/GNU/GCC/install-3_2
>Description:
compiler issues incorrect warning about unreachable code (when
-O is supplied).  I don't know if it actually incorrectly deletes
code that it thinks is unreachable.
>How-To-Repeat:
Executing:
   c++ -O -Wunreachable-code -c foo.cc 
Prints:
   foo.cc: In function `bool foo(Node*)':
   foo.cc:11: warning: will never be executed
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-c++src; name="foo.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="foo.cc"

Y2xhc3MgTm9kZSB7CnByaXZhdGU6CiAgYm9vbCBmbGFnOwpwdWJsaWM6CiAgTm9kZShib29sIGYp
OmZsYWcoZil7fQogIGJvb2wgaXNFbXB0eSgpIHsgcmV0dXJuIGZsYWc7fQp9OwoKYm9vbCBmb28o
Tm9kZSpwMSkgewogIHdoaWxlIChwMSkKICAgIGlmIChwMS0+aXNFbXB0eSgpKQogICAgICByZXR1
cm4gdHJ1ZTsKICByZXR1cm4gZmFsc2U7Cn0K


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

end of thread, other threads:[~2003-05-09  1:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-13  9:45 c++/7827: incorrect warning "will never be executed" when optimizing nathan
  -- strict thread matches above, loose matches on Subject: below --
2003-05-09  1:12 bangerth
2002-09-04  9:46 duchier

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