public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/59020] New: [4.9 Regression] internal compiler error: in maybe_add_or_update_dep_1, at sched-deps.c:933
@ 2013-11-06 10:53 Joost.VandeVondele at mat dot ethz.ch
2013-11-06 10:54 ` [Bug rtl-optimization/59020] " Joost.VandeVondele at mat dot ethz.ch
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: Joost.VandeVondele at mat dot ethz.ch @ 2013-11-06 10:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59020
Bug ID: 59020
Summary: [4.9 Regression] internal compiler error: in
maybe_add_or_update_dep_1, at sched-deps.c:933
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: Joost.VandeVondele at mat dot ethz.ch
Created attachment 31172
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31172&action=edit
reduced testcase.
The attached testcase compiled with current trunk fails as
gfortran -c -O2 -march=native -fmodulo-sched -ffast-math -ffree-form
-fno-inline bug.f90
bug.f90:98:0: internal compiler error: in maybe_add_or_update_dep_1, at
sched-deps.c:933
END SUBROUTINE write_forces
^
0xf3e498 maybe_add_or_update_dep_1
../../gcc/gcc/sched-deps.c:933
0xf3e498 maybe_add_or_update_dep_1
../../gcc/gcc/sched-deps.c:928
0xf3e5fc haifa_note_dep
../../gcc/gcc/sched-deps.c:1866
0xf35e52 note_dep
../../gcc/gcc/sched-deps.c:1901
0xf35e52 add_dependence_1
../../gcc/gcc/sched-deps.c:4175
0xf389d1 add_dependence(rtx_def*, rtx_def*, reg_note)
../../gcc/gcc/sched-deps.c:1557
0xf3c0f5 chain_to_prev_insn
../../gcc/gcc/sched-deps.c:1693
0xf3c0f5 deps_analyze_insn(deps_desc*, rtx_def*)
../../gcc/gcc/sched-deps.c:3697
0xf3c6f2 sched_analyze(deps_desc*, rtx_def*, rtx_def*)
../../gcc/gcc/sched-deps.c:3739
0x9b1dd5 compute_block_dependences
../../gcc/gcc/sched-rgn.c:2721
0x9b1dd5 sched_rgn_compute_dependencies(int)
../../gcc/gcc/sched-rgn.c:3234
0x9b4621 schedule_region
This is a recent failure introduced between r204343 and r204377
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug rtl-optimization/59020] [4.9 Regression] internal compiler error: in maybe_add_or_update_dep_1, at sched-deps.c:933
2013-11-06 10:53 [Bug rtl-optimization/59020] New: [4.9 Regression] internal compiler error: in maybe_add_or_update_dep_1, at sched-deps.c:933 Joost.VandeVondele at mat dot ethz.ch
@ 2013-11-06 10:54 ` Joost.VandeVondele at mat dot ethz.ch
2013-11-06 11:38 ` rguenth at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Joost.VandeVondele at mat dot ethz.ch @ 2013-11-06 10:54 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59020
Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |Joost.VandeVondele at mat dot ethz
| |.ch
--- Comment #1 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> ---
output from -v
> gfortran -c -O2 -march=native -fmodulo-sched -ffast-math -ffree-form -fno-inline -v bug.f90
Using built-in specs.
COLLECT_GCC=gfortran
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc/configure --prefix=/data/vjoost/gnu/gcc_trunk/install
--enable-languages=c,c++,fortran --disable-multilib --enable-plugins
--enable-lto --disable-bootstrap
Thread model: posix
gcc version 4.9.0 20131106 (experimental) [trunk revision 204433] (GCC)
COLLECT_GCC_OPTIONS='-c' '-O2' '-march=native' '-fmodulo-sched' '-ffast-math'
'-ffree-form' '-fno-inline' '-v'
/data/vjoost/gnu/gcc_trunk/install/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/f951
bug.f90 -march=corei7 -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a
-mcx16 -msahf -mno-movbe -mno-aes -mno-pclmul -mpopcnt -mno-abm -mno-lwp
-mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx -mno-avx2
-msse4.2 -msse4.1 -mno-lzcnt -mno-rtm -mno-hle -mno-rdrnd -mno-f16c
-mno-fsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr -mno-xsave -mno-xsaveopt
-mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf --param l1-cache-size=32
--param l1-cache-line-size=64 --param l2-cache-size=24576 -mtune=corei7 -quiet
-dumpbase bug.f90 -auxbase bug -O2 -version -fmodulo-sched -ffast-math
-ffree-form -fno-inline -fintrinsic-modules-path
/data/vjoost/gnu/gcc_trunk/install/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/finclude
-o /tmp/ccJiZWVg.s
GNU Fortran (GCC) version 4.9.0 20131106 (experimental) [trunk revision 204433]
(x86_64-unknown-linux-gnu)
compiled by GNU C version 4.7.2 20120816 (prerelease) [gcc-4_7-branch
revision 190437], GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU Fortran (GCC) version 4.9.0 20131106 (experimental) [trunk revision 204433]
(x86_64-unknown-linux-gnu)
compiled by GNU C version 4.7.2 20120816 (prerelease) [gcc-4_7-branch
revision 190437], GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
bug.f90: In function ‘write_forces’:
bug.f90:98:0: internal compiler error: in maybe_add_or_update_dep_1, at
sched-deps.c:933
>From gcc-bugs-return-433708-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Nov 06 11:13:26 2013
Return-Path: <gcc-bugs-return-433708-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18448 invoked by alias); 6 Nov 2013 11:13:26 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 17570 invoked by uid 48); 6 Nov 2013 11:11:24 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/59014] [4.9 Regression] wrong code at -Os and above on x86_64-linux-gnu
Date: Wed, 06 Nov 2013 11:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-59014-4-rZUHjImt80@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59014-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59014-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-11/txt/msg00485.txt.bz2
Content-length: 192
http://gcc.gnu.org/bugzilla/show_bug.cgi?idY014
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
And, it's not related to -Os; the bug triggers exactly when VRP is run.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug rtl-optimization/59020] [4.9 Regression] internal compiler error: in maybe_add_or_update_dep_1, at sched-deps.c:933
2013-11-06 10:53 [Bug rtl-optimization/59020] New: [4.9 Regression] internal compiler error: in maybe_add_or_update_dep_1, at sched-deps.c:933 Joost.VandeVondele at mat dot ethz.ch
2013-11-06 10:54 ` [Bug rtl-optimization/59020] " Joost.VandeVondele at mat dot ethz.ch
@ 2013-11-06 11:38 ` rguenth at gcc dot gnu.org
2013-11-19 14:19 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-11-06 11:38 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59020
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |x86_64-*-*
Target Milestone|--- |4.9.0
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug rtl-optimization/59020] [4.9 Regression] internal compiler error: in maybe_add_or_update_dep_1, at sched-deps.c:933
2013-11-06 10:53 [Bug rtl-optimization/59020] New: [4.9 Regression] internal compiler error: in maybe_add_or_update_dep_1, at sched-deps.c:933 Joost.VandeVondele at mat dot ethz.ch
2013-11-06 10:54 ` [Bug rtl-optimization/59020] " Joost.VandeVondele at mat dot ethz.ch
2013-11-06 11:38 ` rguenth at gcc dot gnu.org
@ 2013-11-19 14:19 ` rguenth at gcc dot gnu.org
2013-11-23 20:24 ` antoine.balestrat at gmail dot com
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-11-19 14:19 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59020
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-11-19
Known to work| |4.8.2
Ever confirmed|0 |1
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed with -O2 -fmodulo-sched -fno-inline -march=corei7.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug rtl-optimization/59020] [4.9 Regression] internal compiler error: in maybe_add_or_update_dep_1, at sched-deps.c:933
2013-11-06 10:53 [Bug rtl-optimization/59020] New: [4.9 Regression] internal compiler error: in maybe_add_or_update_dep_1, at sched-deps.c:933 Joost.VandeVondele at mat dot ethz.ch
` (2 preceding siblings ...)
2013-11-19 14:19 ` rguenth at gcc dot gnu.org
@ 2013-11-23 20:24 ` antoine.balestrat at gmail dot com
2013-11-24 0:33 ` hjl.tools at gmail dot com
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: antoine.balestrat at gmail dot com @ 2013-11-23 20:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59020
Antoine Balestrat <antoine.balestrat at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |antoine.balestrat at gmail dot com
--- Comment #3 from Antoine Balestrat <antoine.balestrat at gmail dot com> ---
I've got a short C testcase if this is of any help.
$ cat fail.c
int a, b, d;
unsigned c;
void f()
{
unsigned q;
for(; a; a++)
if(((c %= d && 1) ? : 1) & 1)
for(; b; q++);
}
$ xgcc -w -march=native -O2 -fmodulo-sched fail.c
fail.c: In function 'f':
fail.c:10:1: internal compiler error: in maybe_add_or_update_dep_1, at
sched-deps.c:933
}
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Using gcc 4.9 as of 20131123.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug rtl-optimization/59020] [4.9 Regression] internal compiler error: in maybe_add_or_update_dep_1, at sched-deps.c:933
2013-11-06 10:53 [Bug rtl-optimization/59020] New: [4.9 Regression] internal compiler error: in maybe_add_or_update_dep_1, at sched-deps.c:933 Joost.VandeVondele at mat dot ethz.ch
` (3 preceding siblings ...)
2013-11-23 20:24 ` antoine.balestrat at gmail dot com
@ 2013-11-24 0:33 ` hjl.tools at gmail dot com
2013-12-03 18:35 ` wmi at gcc dot gnu.org
2013-12-04 10:09 ` Joost.VandeVondele at mat dot ethz.ch
6 siblings, 0 replies; 8+ messages in thread
From: hjl.tools at gmail dot com @ 2013-11-24 0:33 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59020
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |wmi at google dot com
--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> ---
It is caused by r204369.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug rtl-optimization/59020] [4.9 Regression] internal compiler error: in maybe_add_or_update_dep_1, at sched-deps.c:933
2013-11-06 10:53 [Bug rtl-optimization/59020] New: [4.9 Regression] internal compiler error: in maybe_add_or_update_dep_1, at sched-deps.c:933 Joost.VandeVondele at mat dot ethz.ch
` (4 preceding siblings ...)
2013-11-24 0:33 ` hjl.tools at gmail dot com
@ 2013-12-03 18:35 ` wmi at gcc dot gnu.org
2013-12-04 10:09 ` Joost.VandeVondele at mat dot ethz.ch
6 siblings, 0 replies; 8+ messages in thread
From: wmi at gcc dot gnu.org @ 2013-12-03 18:35 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59020
--- Comment #5 from wmi at gcc dot gnu.org ---
Author: wmi
Date: Tue Dec 3 18:35:24 2013
New Revision: 205644
URL: http://gcc.gnu.org/viewcvs?rev=205644&root=gcc&view=rev
Log:
2013-12-03 Wei Mi <wmi@google.com>
PR rtl-optimization/59020
* sched-deps.c (try_group_insn): Move it from haifa-sched.c to here.
(sched_analyze_insn): Call try_group_insn.
(sched_analyze): Cleanup SCHED_GROUP_P before start the analysis.
* haifa-sched.c (try_group_insn): Moved to sched-deps.c.
(group_insns_for_macro_fusion): Removed.
(sched_init): Remove calling group_insns_for_macro_fusion.
2013-12-03 Wei Mi <wmi@google.com>
PR rtl-optimization/59020
* testsuite/gcc.dg/pr59020.c: New.
* testsuite/gcc.dg/macro-fusion-1.c: New.
* testsuite/gcc.dg/macro-fusion-2.c: New.
Added:
trunk/gcc/testsuite/gcc.dg/macro-fusion-1.c
trunk/gcc/testsuite/gcc.dg/macro-fusion-2.c
trunk/gcc/testsuite/gcc.dg/pr59020.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/haifa-sched.c
trunk/gcc/sched-deps.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug rtl-optimization/59020] [4.9 Regression] internal compiler error: in maybe_add_or_update_dep_1, at sched-deps.c:933
2013-11-06 10:53 [Bug rtl-optimization/59020] New: [4.9 Regression] internal compiler error: in maybe_add_or_update_dep_1, at sched-deps.c:933 Joost.VandeVondele at mat dot ethz.ch
` (5 preceding siblings ...)
2013-12-03 18:35 ` wmi at gcc dot gnu.org
@ 2013-12-04 10:09 ` Joost.VandeVondele at mat dot ethz.ch
6 siblings, 0 replies; 8+ messages in thread
From: Joost.VandeVondele at mat dot ethz.ch @ 2013-12-04 10:09 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59020
Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #6 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> ---
The original testcase seems fixed indeed.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2013-12-04 10:09 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-06 10:53 [Bug rtl-optimization/59020] New: [4.9 Regression] internal compiler error: in maybe_add_or_update_dep_1, at sched-deps.c:933 Joost.VandeVondele at mat dot ethz.ch
2013-11-06 10:54 ` [Bug rtl-optimization/59020] " Joost.VandeVondele at mat dot ethz.ch
2013-11-06 11:38 ` rguenth at gcc dot gnu.org
2013-11-19 14:19 ` rguenth at gcc dot gnu.org
2013-11-23 20:24 ` antoine.balestrat at gmail dot com
2013-11-24 0:33 ` hjl.tools at gmail dot com
2013-12-03 18:35 ` wmi at gcc dot gnu.org
2013-12-04 10:09 ` Joost.VandeVondele at mat dot ethz.ch
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).