public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: optimization/5230: Spurious warning compiling duffs device with optimization
@ 2002-12-06 15:49 bangerth
  0 siblings, 0 replies; 6+ messages in thread
From: bangerth @ 2002-12-06 15:49 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, thorpej

Synopsis: Spurious warning compiling duffs device with optimization

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Fri Dec  6 15:49:32 2002
State-Changed-Why:
    Confirmed. Still happens.

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


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

* Re: optimization/5230: Spurious warning compiling duffs device with optimization
@ 2002-12-06 16:06 Jason R Thorpe
  0 siblings, 0 replies; 6+ messages in thread
From: Jason R Thorpe @ 2002-12-06 16:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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

From: Jason R Thorpe <thorpej@wasabisystems.com>
To: bangerth@dealii.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org,
	gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: optimization/5230: Spurious warning compiling duffs device with optimization
Date: Fri, 6 Dec 2002 15:56:17 -0800

 On Fri, Dec 06, 2002 at 11:49:33PM -0000, bangerth@dealii.org wrote:
 
  > Synopsis: Spurious warning compiling duffs device with optimization
  > 
  > State-Changed-From-To: open->analyzed
  > State-Changed-By: bangerth
  > State-Changed-When: Fri Dec  6 15:49:32 2002
  > State-Changed-Why:
  >     Confirmed. Still happens.
  > 
  > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5230
  > 
 
 BTW, a test case for this has actually been checked into the GCC testsuite
 already ("duff-2").
 
 -- 
         -- Jason R. Thorpe <thorpej@wasabisystems.com>


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

* Re: optimization/5230: Spurious warning compiling duffs device with optimization
@ 2002-12-06 15:56 Wolfgang Bangerth
  0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Bangerth @ 2002-12-06 15:56 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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

From: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
To: gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: optimization/5230: Spurious warning compiling duffs device with
 optimization
Date: Fri, 6 Dec 2002 17:49:08 -0600 (CST)

 Just for reference, I think this is actually a duplicate of PR 8828.
 
 -------------------------------------------------------------------------
 Wolfgang Bangerth              email:           bangerth@ticam.utexas.edu
                                www: http://www.ticam.utexas.edu/~bangerth
 
 


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

* Re: optimization/5230: Spurious warning compiling duffs device with optimization
@ 2002-11-07  9:30 thorpej
  0 siblings, 0 replies; 6+ messages in thread
From: thorpej @ 2002-11-07  9:30 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, thorpej

Synopsis: Spurious warning compiling duffs device with optimization

State-Changed-From-To: closed->open
State-Changed-By: thorpej
State-Changed-When: Thu Nov  7 09:30:54 2002
State-Changed-Why:
    Not actually a duplicate.

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


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

* Re: optimization/5230: Spurious warning compiling duffs device with optimization
@ 2002-04-03  1:50 rth
  0 siblings, 0 replies; 6+ messages in thread
From: rth @ 2002-04-03  1:50 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, thorpej

Synopsis: Spurious warning compiling duffs device with optimization

State-Changed-From-To: open->closed
State-Changed-By: rth
State-Changed-When: Wed Apr  3 01:50:07 2002
State-Changed-Why:
    Duplicate of PR 3846.

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


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

* optimization/5230: Spurious warning compiling duffs device with optimization
@ 2001-12-31 10:16 thorpej
  0 siblings, 0 replies; 6+ messages in thread
From: thorpej @ 2001-12-31 10:16 UTC (permalink / raw)
  To: gcc-gnats


>Number:         5230
>Category:       optimization
>Synopsis:       Spurious warning compiling duffs device with optimization
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 31 10:16:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Jason R. Thorpe
>Release:        3.1 20011230 (experimental)
>Organization:
Wasabi Systems, Inc.
>Environment:
System: NetBSD dr-evil 1.5Z NetBSD 1.5Z (DR-EVIL) #252: Sun Dec 9 17:39:53 PST 2001 thorpej@dr-evil:/u1/netbsd/src/sys/arch/i386/compile/DR-EVIL i386


	
host: i386-unknown-netbsdelf
build: i386-unknown-netbsdelf
target: i386-unknown-netbsdelf
configured with: ../../gcc/configure --disable-shared --prefix=/usr/local/gnu --host=i386-unknown-netbsdelf --target=i386-unknown-netbsdelf : (reconfigured)  : (reconfigured) 
>Description:
	GCC produces a spurious warning when compiling a duffs device
	with optimization:

dr-evil:thorpej 41$ i386-unknown-netbsdelf-gcc -S -O1 foo.c 
foo.c: In function `cksum':
foo.c:13: warning: unreachable code at beginning of switch statement
dr-evil:thorpej 42$ 

	The resulting assembly code appears correct, and produces the
	expected result when given a test input.  The warning does not
	appear if no optimization is used.

>How-To-Repeat:
	The following C program will produce the warning when compiled
	with -O1.  It will not produce a warning when compiled with
	-O0.  In both cases, the generated assembly code is correct,
	and correct results are produced by the test inputs.

begin 644 foo.c.gz
M'XL("(6I,#P"`V9O;RYC`'70T6K",!3&\>N<I_CHF"1,H4E$Q.*>Q)L2,PVU
M4=JH@^&[+U'!(NG=:?/[EYPZ'ZBMG>>"_HC8J7,^_/#"_IZL"78+.<7N&/"Y
MW?AB"M/TYY9+(:H,U1FJ\G21H3I/99FQ\[Q5.;M,]D84+3W>Q`D^[<O29!JL
M459Q^?[J@MF#>TR@!;'KWAUL>OQ&*1"YJ7N+<D6,U7V+R_%0ARAX\8''29%N
MQ>('O]:8IW$V\]4STZ.9'F;Z+5.CF1IFZBV3HYD<9O*5W8AU-IP[#VZ:^Q_[
)!]824U<;`@``
`
end

>Fix:
	The warning can be avoided by not using optimization.
>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2002-12-07  0:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-06 15:49 optimization/5230: Spurious warning compiling duffs device with optimization bangerth
  -- strict thread matches above, loose matches on Subject: below --
2002-12-06 16:06 Jason R Thorpe
2002-12-06 15:56 Wolfgang Bangerth
2002-11-07  9:30 thorpej
2002-04-03  1:50 rth
2001-12-31 10:16 thorpej

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