This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
optimization/4023: Gcc-3.0 can not optimize some code for -m68020 flag
- To: gcc-gnats at gcc dot gnu dot org
- Subject: optimization/4023: Gcc-3.0 can not optimize some code for -m68020 flag
- From: pmandin at caramail dot com
- Date: 14 Aug 2001 19:48:21 -0000
- Reply-To: pmandin at caramail dot com
>Number: 4023
>Category: optimization
>Synopsis: Gcc-3.0 can not optimize some code for -m68020 flag
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Aug 14 12:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: pmandin@caramail.com
>Release: unknown-1.0
>Organization:
>Environment:
m68k-atari-mint (target) cross-compiler on i586-pc-linux-gnu (host)
>Description:
Hello, I have this error when compiling this code with gcc-3.0,
with options: -m68020 -O1. It does not happen with -m68000 -O1 or
-m68020 -O0. Only when enabling optimizations with 68020+ processors.
Internal compiler error in update_equiv_regs, at local-alloc.c:1097
This code comes from Doom sources, I cut it to a bare minimum
to show the bug.
--- 8< --- 8< ---
#define BACKUPTICS 12
int ticdup;
int maxsend;
void D_CheckNetGame (void)
{
maxsend = BACKUPTICS;
maxsend /= 2*ticdup;
maxsend -= 1;
}
--- 8< --- 8< ---
The gcc-3.0 I use is patched to build programs for m68k-atari-mint,
using the following archives:
m68k-atari-mint gcc-3.0 patch:
http://www.multimania.com/pmandin/download/gcc-3.0-mint-4.tar.gz
m68k-atari-mint include and lib, to build the cross-compiler:
http://wh58-508.st.uni-magdeburg.de/sparemint/RPMS/m68kmint/mintlib-devel-0.56.1-1.m68kmint.rpm
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: