Summary: | [3.3/3.4 Regression] [g77] ICE in fixup_var_refs_1, at function.c:1947 on correct code with "-O2 -fno-force-mem" | ||
---|---|---|---|
Product: | gcc | Reporter: | Kirill Smelkov <smelkov> |
Component: | rtl-optimization | Assignee: | Eric Botcazou <ebotcazou> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gcc-bugs |
Priority: | P2 | Keywords: | ice-on-valid-code, patch |
Version: | 3.3.2 | ||
Target Milestone: | 3.3.3 | ||
Host: | i686-pc-linux-gnu | Target: | i686-pc-linux-gnu |
Build: | i686-pc-linux-gnu | Known to work: | |
Known to fail: | Last reconfirmed: | 2003-12-02 15:57:12 |
Description
Kirill Smelkov
2003-11-15 12:26:34 UTC
Probably target specific, as I cannot reproduce it on powerpc-unknown-linux-gnu. I can confirm this with the mainline and it is a regression from 2.95.3. Confirmed with gcc version 3.3.3 20031129 (prerelease) at -O -fno-force-mem. Investigating. -O alone is sufficient to trigger the ICE since -fforce-mem is not enabled at -O. Patch here: <http://gcc.gnu.org/ml/gcc-patches/2003-12/msg00628.html>. Subject: Bug 13060 CVSROOT: /cvs/gcc Module name: gcc Changes by: ebotcazou@gcc.gnu.org 2003-12-07 12:51:58 Modified files: gcc : ChangeLog function.c gcc/testsuite : ChangeLog Added files: gcc/testsuite/g77.f-torture/compile: 13060.f Log message: PR optimization/13060 * function.c (fixup_var_refs_1) [SUBREG]: Recognize even if a replacement already exists. Fix again the whole insn if that fails. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.1943&r2=2.1944 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/function.c.diff?cvsroot=gcc&r1=1.473&r2=1.474 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3235&r2=1.3236 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g77.f-torture/compile/13060.f.diff?cvsroot=gcc&r1=NONE&r2=1.1 Subject: Bug 13060 CVSROOT: /cvs/gcc Module name: gcc Branch: gcc-3_3-branch Changes by: ebotcazou@gcc.gnu.org 2003-12-11 07:58:00 Modified files: gcc : ChangeLog function.c gcc/testsuite : ChangeLog Added files: gcc/testsuite/g77.f-torture/compile: 13060.f Log message: Backport from mainline: 2003-12-07 Eric Botcazou <ebotcazou@libertysurf.fr> PR optimization/13060 * function.c (fixup_var_refs_1) [SUBREG]: Recognize even if a replacement already exists. Fix again the whole insn if that fails. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.16114.2.837&r2=1.16114.2.838 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/function.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.389.2.12&r2=1.389.2.13 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.2261.2.329&r2=1.2261.2.330 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g77.f-torture/compile/13060.f.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=NONE&r2=1.1.2.1 See the aforementioned link. |