public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/13060] New: ICE in fixup_var_refs_1, at function.c:1947 on correct code with "-O2 -fno-force-mem"
@ 2003-11-15 12:26 smelkov at mph1 dot phys dot spbu dot ru
2003-11-15 12:55 ` [Bug fortran/13060] [g77] " toon at moene dot indiv dot nluug dot nl
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: smelkov at mph1 dot phys dot spbu dot ru @ 2003-11-15 12:26 UTC (permalink / raw)
To: gcc-bugs
--- geo2.f ---
c g77 -c -O2 -fno-force-mem geo2.f
c geo2.f: In subroutine `geo2': geo2.f:13: internal compiler error: in fixup_var_refs_1, at
function.c:1947
c Please submit a full bug report,
c with preprocessed source if appropriate.
c See <URL:http://gcc.gnu.org/bugs.html> for instructions.
subroutine geo2()
implicit none
integer ms,n,ne(2)
ne(1) = 1
ne(2) = 2
ms = 1
call call_me(ne(1)*ne(1))
n = ne(ms)
end
--- geo2.f end---
[kirr@roro psi]$ g77 -v
Reading specs from /mnt/tmini/kirr/local/gcc-3.3.2/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/specs
Configured with: ../gcc-3.3.2/configure --prefix=/mnt/tmini/kirr/local/gcc-3.3.2 --with-gnu-as
--with-gnu-ld --enable-threads=posix --enable-languages=c,c++,f77 --enable-checking
--disable-nls
Thread model: posix
gcc version 3.3.2
--
Summary: ICE in fixup_var_refs_1, at function.c:1947 on correct
code with "-O2 -fno-force-mem"
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: smelkov at mph1 dot phys dot spbu dot ru
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13060
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/13060] [g77] ICE in fixup_var_refs_1, at function.c:1947 on correct code with "-O2 -fno-force-mem"
2003-11-15 12:26 [Bug fortran/13060] New: ICE in fixup_var_refs_1, at function.c:1947 on correct code with "-O2 -fno-force-mem" smelkov at mph1 dot phys dot spbu dot ru
@ 2003-11-15 12:55 ` toon at moene dot indiv dot nluug dot nl
2003-11-15 19:35 ` [Bug optimization/13060] [3.3/3.4 Regression] " pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: toon at moene dot indiv dot nluug dot nl @ 2003-11-15 12:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From toon at moene dot indiv dot nluug dot nl 2003-11-15 12:55 -------
Probably target specific, as I cannot reproduce it on powerpc-unknown-linux-gnu.
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|ICE in fixup_var_refs_1, at |[g77] ICE in
|function.c:1947 on correct |fixup_var_refs_1, at
|code with "-O2 -fno-force- |function.c:1947 on correct
|mem" |code with "-O2 -fno-force-
| |mem"
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13060
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug optimization/13060] [3.3/3.4 Regression] [g77] ICE in fixup_var_refs_1, at function.c:1947 on correct code with "-O2 -fno-force-mem"
2003-11-15 12:26 [Bug fortran/13060] New: ICE in fixup_var_refs_1, at function.c:1947 on correct code with "-O2 -fno-force-mem" smelkov at mph1 dot phys dot spbu dot ru
2003-11-15 12:55 ` [Bug fortran/13060] [g77] " toon at moene dot indiv dot nluug dot nl
@ 2003-11-15 19:35 ` pinskia at gcc dot gnu dot org
2003-12-02 15:57 ` ebotcazou at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-15 19:35 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-15 19:35 -------
I can confirm this with the mainline and it is a regression from 2.95.3.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Component|fortran |optimization
Ever Confirmed| |1
Keywords| |ice-on-valid-code
Last reconfirmed|0000-00-00 00:00:00 |2003-11-15 19:35:42
date| |
Summary|[g77] ICE in |[3.3/3.4 Regression] [g77]
|fixup_var_refs_1, at |ICE in fixup_var_refs_1, at
|function.c:1947 on correct |function.c:1947 on correct
|code with "-O2 -fno-force- |code with "-O2 -fno-force-
|mem" |mem"
Target Milestone|--- |3.3.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13060
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug optimization/13060] [3.3/3.4 Regression] [g77] ICE in fixup_var_refs_1, at function.c:1947 on correct code with "-O2 -fno-force-mem"
2003-11-15 12:26 [Bug fortran/13060] New: ICE in fixup_var_refs_1, at function.c:1947 on correct code with "-O2 -fno-force-mem" smelkov at mph1 dot phys dot spbu dot ru
2003-11-15 12:55 ` [Bug fortran/13060] [g77] " toon at moene dot indiv dot nluug dot nl
2003-11-15 19:35 ` [Bug optimization/13060] [3.3/3.4 Regression] " pinskia at gcc dot gnu dot org
@ 2003-12-02 15:57 ` ebotcazou at gcc dot gnu dot org
2003-12-03 9:17 ` ebotcazou at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2003-12-02 15:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ebotcazou at gcc dot gnu dot org 2003-12-02 15:57 -------
Confirmed with gcc version 3.3.3 20031129 (prerelease) at -O -fno-force-mem.
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2003-11-15 19:35:42 |2003-12-02 15:57:12
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13060
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug optimization/13060] [3.3/3.4 Regression] [g77] ICE in fixup_var_refs_1, at function.c:1947 on correct code with "-O2 -fno-force-mem"
2003-11-15 12:26 [Bug fortran/13060] New: ICE in fixup_var_refs_1, at function.c:1947 on correct code with "-O2 -fno-force-mem" smelkov at mph1 dot phys dot spbu dot ru
` (2 preceding siblings ...)
2003-12-02 15:57 ` ebotcazou at gcc dot gnu dot org
@ 2003-12-03 9:17 ` ebotcazou at gcc dot gnu dot org
2003-12-04 11:58 ` ebotcazou at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2003-12-03 9:17 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ebotcazou at gcc dot gnu dot org 2003-12-03 09:17 -------
Investigating.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |ebotcazou at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13060
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug optimization/13060] [3.3/3.4 Regression] [g77] ICE in fixup_var_refs_1, at function.c:1947 on correct code with "-O2 -fno-force-mem"
2003-11-15 12:26 [Bug fortran/13060] New: ICE in fixup_var_refs_1, at function.c:1947 on correct code with "-O2 -fno-force-mem" smelkov at mph1 dot phys dot spbu dot ru
` (3 preceding siblings ...)
2003-12-03 9:17 ` ebotcazou at gcc dot gnu dot org
@ 2003-12-04 11:58 ` ebotcazou at gcc dot gnu dot org
2003-12-06 11:56 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2003-12-04 11:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ebotcazou at gcc dot gnu dot org 2003-12-04 11:58 -------
-O alone is sufficient to trigger the ICE since -fforce-mem is not enabled at -O.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13060
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug optimization/13060] [3.3/3.4 Regression] [g77] ICE in fixup_var_refs_1, at function.c:1947 on correct code with "-O2 -fno-force-mem"
2003-11-15 12:26 [Bug fortran/13060] New: ICE in fixup_var_refs_1, at function.c:1947 on correct code with "-O2 -fno-force-mem" smelkov at mph1 dot phys dot spbu dot ru
` (4 preceding siblings ...)
2003-12-04 11:58 ` ebotcazou at gcc dot gnu dot org
@ 2003-12-06 11:56 ` pinskia at gcc dot gnu dot org
2003-12-07 12:52 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-06 11:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-06 11:56 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2003-12/msg00628.html>.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13060
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug optimization/13060] [3.3/3.4 Regression] [g77] ICE in fixup_var_refs_1, at function.c:1947 on correct code with "-O2 -fno-force-mem"
2003-11-15 12:26 [Bug fortran/13060] New: ICE in fixup_var_refs_1, at function.c:1947 on correct code with "-O2 -fno-force-mem" smelkov at mph1 dot phys dot spbu dot ru
` (5 preceding siblings ...)
2003-12-06 11:56 ` pinskia at gcc dot gnu dot org
@ 2003-12-07 12:52 ` cvs-commit at gcc dot gnu dot org
2003-12-11 7:58 ` cvs-commit at gcc dot gnu dot org
2003-12-11 7:59 ` ebotcazou at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-12-07 12:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-12-07 12:52 -------
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
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13060
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug optimization/13060] [3.3/3.4 Regression] [g77] ICE in fixup_var_refs_1, at function.c:1947 on correct code with "-O2 -fno-force-mem"
2003-11-15 12:26 [Bug fortran/13060] New: ICE in fixup_var_refs_1, at function.c:1947 on correct code with "-O2 -fno-force-mem" smelkov at mph1 dot phys dot spbu dot ru
` (6 preceding siblings ...)
2003-12-07 12:52 ` cvs-commit at gcc dot gnu dot org
@ 2003-12-11 7:58 ` cvs-commit at gcc dot gnu dot org
2003-12-11 7:59 ` ebotcazou at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-12-11 7:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-12-11 07:58 -------
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
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13060
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug optimization/13060] [3.3/3.4 Regression] [g77] ICE in fixup_var_refs_1, at function.c:1947 on correct code with "-O2 -fno-force-mem"
2003-11-15 12:26 [Bug fortran/13060] New: ICE in fixup_var_refs_1, at function.c:1947 on correct code with "-O2 -fno-force-mem" smelkov at mph1 dot phys dot spbu dot ru
` (7 preceding siblings ...)
2003-12-11 7:58 ` cvs-commit at gcc dot gnu dot org
@ 2003-12-11 7:59 ` ebotcazou at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2003-12-11 7:59 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ebotcazou at gcc dot gnu dot org 2003-12-11 07:59 -------
See the aforementioned link.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13060
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2003-12-11 7:59 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-15 12:26 [Bug fortran/13060] New: ICE in fixup_var_refs_1, at function.c:1947 on correct code with "-O2 -fno-force-mem" smelkov at mph1 dot phys dot spbu dot ru
2003-11-15 12:55 ` [Bug fortran/13060] [g77] " toon at moene dot indiv dot nluug dot nl
2003-11-15 19:35 ` [Bug optimization/13060] [3.3/3.4 Regression] " pinskia at gcc dot gnu dot org
2003-12-02 15:57 ` ebotcazou at gcc dot gnu dot org
2003-12-03 9:17 ` ebotcazou at gcc dot gnu dot org
2003-12-04 11:58 ` ebotcazou at gcc dot gnu dot org
2003-12-06 11:56 ` pinskia at gcc dot gnu dot org
2003-12-07 12:52 ` cvs-commit at gcc dot gnu dot org
2003-12-11 7:58 ` cvs-commit at gcc dot gnu dot org
2003-12-11 7:59 ` ebotcazou at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).