This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
optimization/10030: gcc 3.2(.1) produces broken code with -O2, but not -O
- From: dan dot naumov at ofw dot fi
- To: gcc-gnats at gcc dot gnu dot org
- Date: 11 Mar 2003 19:50:33 -0000
- Subject: optimization/10030: gcc 3.2(.1) produces broken code with -O2, but not -O
- Reply-to: dan dot naumov at ofw dot fi
>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: