public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/3408: spurious, misplaced warning: 'will never be executed'
@ 2001-06-25  8:16 h.b.furuseth
  0 siblings, 0 replies; only message in thread
From: h.b.furuseth @ 2001-06-25  8:16 UTC (permalink / raw)
  To: gcc-gnats; +Cc: h.b.furuseth

>Number:         3408
>Category:       c
>Synopsis:       spurious, misplaced warning: 'will never be executed'
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 25 08:16:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Hallvard B Furuseth
>Release:        3.0
>Organization:
>Environment:
System: SunOS bombur.uio.no 5.8 Generic_108528-03 sun4u sparc SUNW,Ultra-5_10
Architecture: sun4

	
host: sparc-sun-solaris2.8
build: sparc-sun-solaris2.8
target: sparc-sun-solaris2.8
configured with: ./configure --quiet --prefix=/usit/bombur/hbf --program-suffix=-3.0
>Description:
	`-O3 -Wunreachable-code' gives a spurious `will never be executed'
	warning.  It is misplaced as well; the warning it refers to
	function `c' - at line 6 which ends function `b'.

>How-To-Repeat:
	bash$ cat a.c
	void a(void);
	
	void b(void)
	{
	  a();
	}       /* line 6 */
	
	void c(int i)
	{
	  if (i)
	    b();
	}
	
	bash$ ./xgcc -B./ -O3 -Wunreachable-code -S a.c
	a.c: In function `c':
	a.c:6: warning: will never be executed
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-06-25  8:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-25  8:16 c/3408: spurious, misplaced warning: 'will never be executed' h.b.furuseth

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