optimization/10030: gcc 3.2(.1) produces broken code with -O2, but not -O

dan.naumov@ofw.fi dan.naumov@ofw.fi
Tue Mar 11 19:56:00 GMT 2003


>Number:         10030
>Category:       optimization
>Synopsis:       gcc 3.2(.1) produces broken code with -O2, but not -O
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 11 19:56:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Dan Naumov
>Release:        gcc version 3.2.1 [FreeBSD] 20021119 (release)
>Organization:
>Environment:
FreeBSD 5.0-p4
>Description:
When compiling AbiWord (http://www.abisource.com/) using CPUTYPE=athlon-tbird and CFLAGS= -O2 -pipe, the program compiles fine, but will always segfault upon exiting. Using -O instead solves the problem.
>How-To-Repeat:
1) obtain AbiWord 1.0.4
2) compile with -O2 and CPUTYPE=athlon-tbird
3) run and exit AbiWord
>Fix:

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



More information about the Gcc-prs mailing list