public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/2699: gcc does not warn of dead code
@ 2003-05-08  8:36 Dara Hazeghi
  0 siblings, 0 replies; 3+ messages in thread
From: Dara Hazeghi @ 2003-05-08  8:36 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c/2699; it has been noted by GNATS.

From: Dara Hazeghi <dhazeghi@yahoo.com>
To: gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: c/2699: gcc does not warn of dead code
Date: Thu, 8 May 2003 01:28:26 -0700

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit- 
 trail&database=gcc&pr=2699
 
 Confirmed with mainline 20030507
 
 Dara
 


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

* Re: c/2699: gcc does not warn of dead code
@ 2002-11-05  7:45 bangerth
  0 siblings, 0 replies; 3+ messages in thread
From: bangerth @ 2002-11-05  7:45 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, gpoul, nobody

Synopsis: gcc does not warn of dead code

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Tue Nov  5 07:45:16 2002
State-Changed-Why:
    Confirmed.

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


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

* c/2699: gcc does not warn of dead code
@ 2001-04-30 11:56 gpoul
  0 siblings, 0 replies; 3+ messages in thread
From: gpoul @ 2001-04-30 11:56 UTC (permalink / raw)
  To: gcc-gnats; +Cc: gpoul

>Number:         2699
>Category:       c
>Synopsis:       gcc does not warn of dead code
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 30 11:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     root
>Release:        3.1 20010430 (experimental)
>Organization:
>Environment:
System: Linux ddc 2.2.17 #1 Sun Jun 25 09:24:41 EST 2000 i686 unknown
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc/configure 
>Description:
	I'm currently reading the book "High Performance Computing" by ora
	and it has some interesting content about compiler optimization.

	In an exercise on p99 it asks the question "Does your compile
	give you a warning"?  Then below this is a demo program with some
	code that can't be reached and I tried this with gcc and I wanted
	to notify you that gcc does not warn (at least not with -Wall)
	about dead code written by the user.

	As I already stated about I built it with gcc -Wall.  I have also
	included the source of the program I used to test this.

	I think this might be a helpful feature but I don't really know if
	it's not already in there or if it isn't even possible.  Therefore
	I chose to file this report as support instead of change-request.
>How-To-Repeat:
	just compile the following source with gcc and it will not give
	you a compiler warning. - there is nothing more to repeat this :)

#include <stdio.h>

int main ()
{
  int k=1;
  int v=0;
  if (k == 0)
    printf("This statement is never executed.\n");

  return 0;
}

>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2003-05-08  8:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-08  8:36 c/2699: gcc does not warn of dead code Dara Hazeghi
  -- strict thread matches above, loose matches on Subject: below --
2002-11-05  7:45 bangerth
2001-04-30 11:56 gpoul

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