optimization/3387: GCC 3.0 optimisation -O2 -fPIC produces incorrect code

wbrack@mmm.com.hk wbrack@mmm.com.hk
Fri Jun 22 17:56:00 GMT 2001


>Number:         3387
>Category:       optimization
>Synopsis:       GCC 3.0 optimisation -O2 -fPIC produces incorrect code
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 22 17:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     wbrack@mmm.com.hk
>Release:        GCC-3.0
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
Under optimisation, one necessary assignment statement (judged by reading the assembler output) is deleted.  Further comment in attached file, checked with web interface to codesourcery as demonstrating the problem with (latest) compiler.
>How-To-Repeat:
compile the attached (small) routine
>Fix:

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



More information about the Gcc-bugs mailing list