public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/65337] New: 5.0 bootstrap-lto gnat1 linktime ICE: gcc/ada/exp_aggr.adb:6570:0: internal compiler error: in forward_edge_to_pdom, at tree-ssa-dce.c:1086
@ 2015-03-06 18:53 nheghathivhistha at gmail dot com
2015-03-09 12:09 ` [Bug tree-optimization/65337] [5 Regression] " rguenth at gcc dot gnu.org
` (12 more replies)
0 siblings, 13 replies; 14+ messages in thread
From: nheghathivhistha at gmail dot com @ 2015-03-06 18:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65337
Bug ID: 65337
Summary: 5.0 bootstrap-lto gnat1 linktime ICE:
gcc/ada/exp_aggr.adb:6570:0: internal compiler error:
in forward_edge_to_pdom, at tree-ssa-dce.c:1086
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: nheghathivhistha at gmail dot com
/var/tmp/portage/sys-devel/gcc-4.10.0_pre20150305/work/build/./prev-gcc/xg++
-B/var/tmp/portage/sys-devel/gcc-4.10.0_pre20150305/work/build/./prev-gcc/
-B/usr/x86_64-pc-linux-gnu/bin/ -nostdinc++
-B/var/tmp/portage/sys-devel/gcc-4.10.0_pre20150305/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-B/var/tmp/portage/sys-devel/gcc-4.10.0_pre20150305/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-isystem
/var/tmp/portage/sys-devel/gcc-4.10.0_pre20150305/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu
-isystem
/var/tmp/portage/sys-devel/gcc-4.10.0_pre20150305/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/include
-isystem
/var/tmp/portage/sys-devel/gcc-4.10.0_pre20150305/work/gcc-4.10.0-20150305/libstdc++-v3/libsupc++
-L/var/tmp/portage/sys-devel/gcc-4.10.0_pre20150305/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/var/tmp/portage/sys-devel/gcc-4.10.0_pre20150305/work/build/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-m64 -O2 -g -pipe -march=nocona -mtune=nocona -flto=jobserver -frandom-seed=1
-DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall
-Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc -o
gnat1 ada/adadecode.o ada/adaint.o ada/argv.o ada/cio.o ada/cstreams.o
ada/env.o ada/init.o ada/initialize.o ada/raise.o ada/seh_init.o ada/targext.o
ada/cuintp.o ada/decl.o ada/rtfinal.o ada/rtinit.o ada/misc.o ada/utils.o
ada/utils2.o ada/trans.o ada/targtyps.o ada/a-charac.o ada/a-chlat1.o
ada/a-elchha.o ada/a-except.o ada/a-ioexce.o ada/ada.o ada/spark_xrefs.o
ada/ali.o ada/alloc.o ada/aspects.o ada/atree.o ada/butil.o ada/casing.o
ada/checks.o ada/comperr.o ada/csets.o ada/cstand.o ada/debug.o ada/debug_a.o
ada/einfo.o ada/elists.o ada/err_vars.o ada/errout.o ada/erroutc.o
ada/eval_fat.o ada/exp_aggr.o ada/exp_spark.o ada/exp_atag.o ada/exp_attr.o
ada/exp_cg.o ada/exp_ch11.o ada/exp_ch12.o ada/exp_ch13.o ada/exp_ch2.o
ada/exp_ch3.o ada/exp_ch4.o ada/exp_ch5.o ada/exp_ch6.o ada/exp_ch7.o
ada/exp_ch8.o ada/exp_ch9.o ada/exp_code.o ada/exp_dbug.o ada/exp_disp.o
ada/exp_dist.o ada/exp_fixd.o ada/exp_imgv.o ada/exp_intr.o ada/exp_pakd.o
ada/exp_prag.o ada/exp_sel.o ada/exp_smem.o ada/exp_strm.o ada/exp_tss.o
ada/exp_unst.o ada/exp_util.o ada/expander.o ada/fmap.o ada/fname-uf.o
ada/fname.o ada/freeze.o ada/frontend.o ada/g-byorma.o ada/g-hesora.o
ada/g-htable.o ada/g-spchge.o ada/g-speche.o ada/g-u3spch.o
ada/get_spark_xrefs.o ada/get_targ.o ada/ghost.o ada/gnat.o ada/gnatvsn.o
ada/hostparm.o ada/impunit.o ada/inline.o ada/interfac.o ada/itypes.o
ada/krunch.o ada/layout.o ada/lib-load.o ada/lib-util.o ada/lib-writ.o
ada/lib-xref.o ada/lib.o ada/live.o ada/namet-sp.o ada/namet.o ada/nlists.o
ada/nmake.o ada/opt.o ada/osint-c.o ada/osint.o ada/output.o ada/par.o
ada/par_sco.o ada/prep.o ada/prepcomp.o ada/put_spark_xrefs.o ada/put_scos.o
ada/repinfo.o ada/restrict.o ada/rident.o ada/rtsfind.o ada/s-addope.o
ada/s-assert.o ada/s-bitops.o ada/s-carun8.o ada/s-casuti.o ada/s-conca2.o
ada/s-conca3.o ada/s-conca4.o ada/s-conca5.o ada/s-conca6.o ada/s-conca7.o
ada/s-conca8.o ada/s-conca9.o ada/s-crc32.o ada/s-crtl.o ada/s-excdeb.o
ada/s-except.o ada/s-exctab.o ada/s-htable.o ada/s-imenne.o ada/s-imgenu.o
ada/s-mastop.o ada/s-memory.o ada/s-os_lib.o ada/s-parame.o ada/s-purexc.o
ada/s-restri.o ada/s-secsta.o ada/s-soflin.o ada/s-sopco3.o ada/s-sopco4.o
ada/s-sopco5.o ada/s-stache.o ada/s-stalib.o ada/s-stoele.o ada/s-strcom.o
ada/s-strhas.o ada/s-string.o ada/s-strops.o ada/s-traent.o ada/s-unstyp.o
ada/s-utf_32.o ada/s-valint.o ada/s-valuns.o ada/s-valuti.o ada/s-wchcnv.o
ada/s-wchcon.o ada/s-wchjis.o ada/scans.o ada/scil_ll.o ada/scn.o ada/scng.o
ada/scos.o ada/sdefault.o ada/sem.o ada/sem_aggr.o ada/sem_attr.o ada/sem_aux.o
ada/sem_case.o ada/sem_cat.o ada/sem_ch10.o ada/sem_ch11.o ada/sem_ch12.o
ada/sem_ch13.o ada/sem_ch2.o ada/sem_ch3.o ada/sem_ch4.o ada/sem_ch5.o
ada/sem_ch6.o ada/sem_ch7.o ada/sem_ch8.o ada/sem_ch9.o ada/sem_dim.o
ada/sem_disp.o ada/sem_dist.o ada/sem_elab.o ada/sem_elim.o ada/sem_eval.o
ada/sem_intr.o ada/sem_mech.o ada/sem_prag.o ada/sem_res.o ada/sem_scil.o
ada/sem_smem.o ada/sem_type.o ada/sem_util.o ada/sem_warn.o ada/set_targ.o
ada/sinfo-cn.o ada/sinfo.o ada/sinput-d.o ada/sinput-l.o ada/sinput.o
ada/snames.o ada/sprint.o ada/stand.o ada/stringt.o ada/style.o ada/styleg.o
ada/stylesw.o ada/switch-c.o ada/switch.o ada/system.o ada/table.o
ada/targparm.o ada/tbuild.o ada/tree_gen.o ada/tree_in.o ada/tree_io.o
ada/treepr.o ada/treeprs.o ada/ttypes.o ada/types.o ada/uintp.o ada/uname.o
ada/urealp.o ada/usage.o ada/validsw.o ada/warnsw.o ada/widechar.o
ada/back_end.o ada/gnat1drv.o ada/b_gnat1.o libbackend.a main.o
libcommon-target.a libcommon.a ../libcpp/libcpp.a
../libdecnumber/libdecnumber.a attribs.o \
libcommon-target.a libcommon.a ../libcpp/libcpp.a
../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a -lisl -lmpc -lmpfr -lgmp -rdynamic -ldl -lz
-m64 -O2 -g -pipe -march=nocona -mtune=nocona -flto=jobserver -frandom-seed=1
ends up with
/var/tmp/portage/sys-devel/gcc-4.10.0_pre20150305/work/gcc-4.10.0-20150305/gcc/ada/exp_aggr.adb:6570:0:
internal compiler error: in forward_edge_to_pdom, at tree-ssa-dce.c:1086
Gcc is vanilla trunk revision 221246.
/var/tmp/portage/sys-devel/gcc-4.10.0_pre20150305/work/build/./prev-gcc/xg++ -v
Using built-in specs.
COLLECT_GCC=/var/tmp/portage/sys-devel/gcc-4.10.0_pre20150305/work/build/./prev-gcc/xg++
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-4.10.0_pre20150305/work/gcc-4.10.0-20150305/configure
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.10.0-pre20150305
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.10.0-pre20150305/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.10.0-pre20150305
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.10.0-pre20150305/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.10.0-pre20150305/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.10.0-pre20150305/include/g++-v4
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.10.0-pre20150305/python
--enable-languages=c,c++,fortran,ada --enable-obsolete --enable-secureplt
--disable-werror --with-system-zlib --enable-nls --without-included-gettext
--enable-checking=release --with-bugurl=https://bugs.gentoo.org/
--with-pkgversion='Gentoo 4.10.0_pre20150305' --enable-libstdcxx-time
--enable-shared --enable-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64
--disable-altivec --disable-fixed-point --enable-targets=all --disable-libgcj
--enable-libgomp --disable-libmudflap --disable-libssp --enable-lto
--with-cloog --disable-isl-version-check --enable-libsanitizer
--with-build-config=bootstrap-lto
Thread model: posix
gcc version 4.10.0-pre20150305 20150306 (experimental) [trunk revision 221246]
(Gentoo 4.10.0_pre20150305)
Binutils are vanilla version 2.25.51.20150305 from git.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/65337] [5 Regression] bootstrap-lto gnat1 linktime ICE: gcc/ada/exp_aggr.adb:6570:0: internal compiler error: in forward_edge_to_pdom, at tree-ssa-dce.c:1086
2015-03-06 18:53 [Bug bootstrap/65337] New: 5.0 bootstrap-lto gnat1 linktime ICE: gcc/ada/exp_aggr.adb:6570:0: internal compiler error: in forward_edge_to_pdom, at tree-ssa-dce.c:1086 nheghathivhistha at gmail dot com
@ 2015-03-09 12:09 ` rguenth at gcc dot gnu.org
2015-03-12 17:02 ` jakub at gcc dot gnu.org
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-03-09 12:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65337
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |build
Target| |x86_64-*-*
Component|bootstrap |tree-optimization
Target Milestone|--- |5.0
Summary|5.0 bootstrap-lto gnat1 |[5 Regression]
|linktime ICE: |bootstrap-lto gnat1
|gcc/ada/exp_aggr.adb:6570:0 |linktime ICE:
|: internal compiler error: |gcc/ada/exp_aggr.adb:6570:0
|in forward_edge_to_pdom, at |: internal compiler error:
|tree-ssa-dce.c:1086 |in forward_edge_to_pdom, at
| |tree-ssa-dce.c:1086
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/65337] [5 Regression] bootstrap-lto gnat1 linktime ICE: gcc/ada/exp_aggr.adb:6570:0: internal compiler error: in forward_edge_to_pdom, at tree-ssa-dce.c:1086
2015-03-06 18:53 [Bug bootstrap/65337] New: 5.0 bootstrap-lto gnat1 linktime ICE: gcc/ada/exp_aggr.adb:6570:0: internal compiler error: in forward_edge_to_pdom, at tree-ssa-dce.c:1086 nheghathivhistha at gmail dot com
2015-03-09 12:09 ` [Bug tree-optimization/65337] [5 Regression] " rguenth at gcc dot gnu.org
@ 2015-03-12 17:02 ` jakub at gcc dot gnu.org
2015-03-13 9:30 ` rguenth at gcc dot gnu.org
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-03-12 17:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65337
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu.org,
| |jakub at gcc dot gnu.org
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I can reproduce this, but wonder if the bug isn't just earlier in CD-DCE where
the GIMPLE_COND should have been marked necessary. The immediate
post-dominator is very far from the bb and has tons of incoming edges, some
PHIs are not marked as unnecessary and certainly aren't degenerate:
<bb 171>:
# _17 = PHI <0(15), 0(19), 0(21), 1(34), 0(115), 0(121), 0(129), 0(132),
0(137), 0(140), _112(143), 1(170), 0(31), 1(113), 0(50), 0(42), 0(37), 0(52),
0(46), 0(48)>
# JMPBUF_SAVE_926(ab) = PHI <JMPBUF_SAVE_6(ab)(15), JMPBUF_SAVE_590(ab)(19),
JMPBUF_SAVE_590(ab)(21), JMPBUF_SAVE_590(ab)(34), JMPBUF_SAVE_590(ab)(115),
JMPBUF_SAVE_590(ab)(121), JMPBUF_SAVE_590(ab)(129), JMPBUF_SAVE_590(ab)(132),
JMPBUF_SAVE_590(ab)(137), JMPBUF_SAVE_590(ab)(140), JMPBUF_SAVE_590(ab)(143),
JMPBUF_SAVE_590(ab)(170), JMPBUF_SAVE_590(ab)(31), JMPBUF_SAVE_590(ab)(113),
JMPBUF_SAVE_590(ab)(50), JMPBUF_SAVE_590(ab)(42), JMPBUF_SAVE_590(ab)(37),
JMPBUF_SAVE_590(ab)(52), JMPBUF_SAVE_590(ab)(46), JMPBUF_SAVE_590(ab)(48)>
# prephitmp_56 = PHI <addr_195(15), pretmp_285(19), pretmp_414(21),
pretmp_413(34), pretmp_418(115), pretmp_412(121), pretmp_286(129),
pretmp_419(132), pretmp_735(137), pretmp_713(140), pretmp_703(143),
pretmp_714(170), pretmp_801(31), pretmp_814(113), pretmp_352(50),
pretmp_353(42), pretmp_355(37), pretmp_189(52), pretmp_267(46), pretmp_261(48)>
# DEBUG addr => (const system__address) JMPBUF_SAVE_926(ab)
_796 = system__soft_links__set_jmpbuf_address;
_796 (prephitmp_56);
is the post_dom_bb, and
<bb 117>:
# DEBUG n => _201
_10 = _264;
_601 = _264 * 32;
_233 = _262 + _601;
_724 = MEM[(struct atree__atree_private_part__node_record[2147483648] *)_233 +
104B];
# DEBUG D#7737 => (types__node_id___XDLU_0__99999999) _724
# DEBUG id => D#7737
# DEBUG e => D#7737
_732 = (sizetype) _724;
_733 = _732 + 1;
_734 = *_262[_733].nkind;
_727 = _734 + 243;
if (_727 > 11)
goto <bb 118>;
else
goto <bb 122>;
is e->src. Honza, this is your code, can you please have a look?
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/65337] [5 Regression] bootstrap-lto gnat1 linktime ICE: gcc/ada/exp_aggr.adb:6570:0: internal compiler error: in forward_edge_to_pdom, at tree-ssa-dce.c:1086
2015-03-06 18:53 [Bug bootstrap/65337] New: 5.0 bootstrap-lto gnat1 linktime ICE: gcc/ada/exp_aggr.adb:6570:0: internal compiler error: in forward_edge_to_pdom, at tree-ssa-dce.c:1086 nheghathivhistha at gmail dot com
2015-03-09 12:09 ` [Bug tree-optimization/65337] [5 Regression] " rguenth at gcc dot gnu.org
2015-03-12 17:02 ` jakub at gcc dot gnu.org
@ 2015-03-13 9:30 ` rguenth at gcc dot gnu.org
2015-03-15 19:59 ` hubicka at gcc dot gnu.org
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-03-13 9:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65337
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-03-13
Ever confirmed|0 |1
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Thus confirmed at least. IIRC this is a tricky area ;) (but the issue is
surely latent since quite some time)
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/65337] [5 Regression] bootstrap-lto gnat1 linktime ICE: gcc/ada/exp_aggr.adb:6570:0: internal compiler error: in forward_edge_to_pdom, at tree-ssa-dce.c:1086
2015-03-06 18:53 [Bug bootstrap/65337] New: 5.0 bootstrap-lto gnat1 linktime ICE: gcc/ada/exp_aggr.adb:6570:0: internal compiler error: in forward_edge_to_pdom, at tree-ssa-dce.c:1086 nheghathivhistha at gmail dot com
` (2 preceding siblings ...)
2015-03-13 9:30 ` rguenth at gcc dot gnu.org
@ 2015-03-15 19:59 ` hubicka at gcc dot gnu.org
2015-03-18 13:27 ` rguenth at gcc dot gnu.org
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: hubicka at gcc dot gnu.org @ 2015-03-15 19:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65337
--- Comment #3 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Indeed, the cd-dce is one the worst documented of the tradition SSA
optimizations. I commented on this to Jakum on IRC. The mechanizm that should
prevent conditional from being removed is the control dependency. For every PHI
argument, the control dependent conditional is marked live.
So it is a question why the control dependent conditional is not live here -
one of problems I remember was that control dependency is defined for basic
blocks, while PHI handling needs it for edges. This mostly does not matter
because critical edges are split, but with abnormal edges perhaps we manage to
get things wrong.
I am finishing paper today and fly to Vancouver at Tuesday, but will try to
look into this as time allows.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/65337] [5 Regression] bootstrap-lto gnat1 linktime ICE: gcc/ada/exp_aggr.adb:6570:0: internal compiler error: in forward_edge_to_pdom, at tree-ssa-dce.c:1086
2015-03-06 18:53 [Bug bootstrap/65337] New: 5.0 bootstrap-lto gnat1 linktime ICE: gcc/ada/exp_aggr.adb:6570:0: internal compiler error: in forward_edge_to_pdom, at tree-ssa-dce.c:1086 nheghathivhistha at gmail dot com
` (3 preceding siblings ...)
2015-03-15 19:59 ` hubicka at gcc dot gnu.org
@ 2015-03-18 13:27 ` rguenth at gcc dot gnu.org
2015-04-22 12:01 ` [Bug tree-optimization/65337] [5/6 " jakub at gcc dot gnu.org
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-03-18 13:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65337
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/65337] [5/6 Regression] bootstrap-lto gnat1 linktime ICE: gcc/ada/exp_aggr.adb:6570:0: internal compiler error: in forward_edge_to_pdom, at tree-ssa-dce.c:1086
2015-03-06 18:53 [Bug bootstrap/65337] New: 5.0 bootstrap-lto gnat1 linktime ICE: gcc/ada/exp_aggr.adb:6570:0: internal compiler error: in forward_edge_to_pdom, at tree-ssa-dce.c:1086 nheghathivhistha at gmail dot com
` (4 preceding siblings ...)
2015-03-18 13:27 ` rguenth at gcc dot gnu.org
@ 2015-04-22 12:01 ` jakub at gcc dot gnu.org
2015-04-30 4:29 ` hubicka at gcc dot gnu.org
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-04-22 12:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65337
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|5.0 |5.2
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 5.1 has been released.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/65337] [5/6 Regression] bootstrap-lto gnat1 linktime ICE: gcc/ada/exp_aggr.adb:6570:0: internal compiler error: in forward_edge_to_pdom, at tree-ssa-dce.c:1086
2015-03-06 18:53 [Bug bootstrap/65337] New: 5.0 bootstrap-lto gnat1 linktime ICE: gcc/ada/exp_aggr.adb:6570:0: internal compiler error: in forward_edge_to_pdom, at tree-ssa-dce.c:1086 nheghathivhistha at gmail dot com
` (5 preceding siblings ...)
2015-04-22 12:01 ` [Bug tree-optimization/65337] [5/6 " jakub at gcc dot gnu.org
@ 2015-04-30 4:29 ` hubicka at gcc dot gnu.org
2015-06-03 0:25 ` hubicka at gcc dot gnu.org
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: hubicka at gcc dot gnu.org @ 2015-04-30 4:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65337
Jan Hubicka <hubicka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2015-03-13 00:00:00 |2015-4-30
--- Comment #5 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Still ICE during LTObootstrap on PPC64 (gcc110). I will try to at least figure
out what goes wrong with the PHI (if it is wrong control dependency due to
critical edge or something else)
I suppose we can relax the check to:
degenerate_phi_p (phi) || SSA_NAME_OCCURS_IN_ABNORMAL_PHI (gimple_phi_result
(phi)
but we may need to trigger SSA rewrite on resulting code as cddce will break
dominance conditions on the PHI.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/65337] [5/6 Regression] bootstrap-lto gnat1 linktime ICE: gcc/ada/exp_aggr.adb:6570:0: internal compiler error: in forward_edge_to_pdom, at tree-ssa-dce.c:1086
2015-03-06 18:53 [Bug bootstrap/65337] New: 5.0 bootstrap-lto gnat1 linktime ICE: gcc/ada/exp_aggr.adb:6570:0: internal compiler error: in forward_edge_to_pdom, at tree-ssa-dce.c:1086 nheghathivhistha at gmail dot com
` (6 preceding siblings ...)
2015-04-30 4:29 ` hubicka at gcc dot gnu.org
@ 2015-06-03 0:25 ` hubicka at gcc dot gnu.org
2015-06-03 1:24 ` steven at uplinklabs dot net
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: hubicka at gcc dot gnu.org @ 2015-06-03 0:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65337
--- Comment #6 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Patch posted to https://gcc.gnu.org/ml/gcc-patches/2015-05/msg02876.html
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/65337] [5/6 Regression] bootstrap-lto gnat1 linktime ICE: gcc/ada/exp_aggr.adb:6570:0: internal compiler error: in forward_edge_to_pdom, at tree-ssa-dce.c:1086
2015-03-06 18:53 [Bug bootstrap/65337] New: 5.0 bootstrap-lto gnat1 linktime ICE: gcc/ada/exp_aggr.adb:6570:0: internal compiler error: in forward_edge_to_pdom, at tree-ssa-dce.c:1086 nheghathivhistha at gmail dot com
` (7 preceding siblings ...)
2015-06-03 0:25 ` hubicka at gcc dot gnu.org
@ 2015-06-03 1:24 ` steven at uplinklabs dot net
2015-06-03 22:05 ` hubicka at ucw dot cz
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: steven at uplinklabs dot net @ 2015-06-03 1:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65337
--- Comment #7 from Steven Noonan <steven at uplinklabs dot net> ---
Tried applying the patch mentioned in comment 6 and doing a build using
--with-build-config=bootstrap-lto. Ended with:
[...]
/build/gcc-multilib/src/gcc-build/./prev-gcc/xgcc
-B/build/gcc-multilib/src/gcc-build/./prev-gcc/
-B/usr/x86_64-unknown-linux-gnu/bin
/ -B/usr/x86_64-unknown-linux-gnu/bin/ -B/usr/x86_64-unknown-linux-gnu/lib/
-isystem /usr/x86_64-unknown-linux-gnu/include -isystem /
usr/x86_64-unknown-linux-gnu/sys-include -c -g -O2 -flto=jobserver
-frandom-seed=1 -gnatpg -W -Wall -nostdinc -I- -I. -Iada/gene
rated -Iada -I/build/gcc-multilib/src/gcc-5-20150602/gcc/ada
-I/build/gcc-multilib/src/gcc-5-20150602/gcc/ada/gcc-interface /build/gc
c-multilib/src/gcc-5-20150602/gcc/ada/comperr.adb -o ada/comperr.o
[...]
raised STORAGE_ERROR : stack overflow or erroneous memory access
/build/gcc-multilib/src/gcc-5-20150602/gcc/ada/gcc-interface/Make-lang.in:119:
recipe for target 'ada/comperr.o' failed
Ideas?
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/65337] [5/6 Regression] bootstrap-lto gnat1 linktime ICE: gcc/ada/exp_aggr.adb:6570:0: internal compiler error: in forward_edge_to_pdom, at tree-ssa-dce.c:1086
2015-03-06 18:53 [Bug bootstrap/65337] New: 5.0 bootstrap-lto gnat1 linktime ICE: gcc/ada/exp_aggr.adb:6570:0: internal compiler error: in forward_edge_to_pdom, at tree-ssa-dce.c:1086 nheghathivhistha at gmail dot com
` (8 preceding siblings ...)
2015-06-03 1:24 ` steven at uplinklabs dot net
@ 2015-06-03 22:05 ` hubicka at ucw dot cz
2015-06-03 22:31 ` steven at uplinklabs dot net
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: hubicka at ucw dot cz @ 2015-06-03 22:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65337
--- Comment #8 from Jan Hubicka <hubicka at ucw dot cz> ---
[...]
> raised STORAGE_ERROR : stack overflow or erroneous memory access
> /build/gcc-multilib/src/gcc-5-20150602/gcc/ada/gcc-interface/Make-lang.in:119:
> recipe for target 'ada/comperr.o' failed
>
> Ideas?
This is most likely an independent issue. Can you, please, attach a backtrace?
Honza
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/65337] [5/6 Regression] bootstrap-lto gnat1 linktime ICE: gcc/ada/exp_aggr.adb:6570:0: internal compiler error: in forward_edge_to_pdom, at tree-ssa-dce.c:1086
2015-03-06 18:53 [Bug bootstrap/65337] New: 5.0 bootstrap-lto gnat1 linktime ICE: gcc/ada/exp_aggr.adb:6570:0: internal compiler error: in forward_edge_to_pdom, at tree-ssa-dce.c:1086 nheghathivhistha at gmail dot com
` (9 preceding siblings ...)
2015-06-03 22:05 ` hubicka at ucw dot cz
@ 2015-06-03 22:31 ` steven at uplinklabs dot net
2015-06-03 23:51 ` hubicka at ucw dot cz
2015-07-16 9:13 ` rguenth at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: steven at uplinklabs dot net @ 2015-06-03 22:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65337
--- Comment #9 from Steven Noonan <steven at uplinklabs dot net> ---
Sure.
$ gdb --args
/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-build/./prev-gcc/xgcc
-B/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-build/./prev-gcc/
-B/usr/x86_64-unknown-linux-gnu/bin/ -B/usr/x86_64-unknown-linux-gnu/bin/
-B/usr/x86_64-unknown-linux-gnu/lib/ -isystem
/usr/x86_64-unknown-linux-gnu/include -isystem
/usr/x86_64-unknown-linux-gnu/sys-include -c -g -O2 -flto=jobserver
-frandom-seed=1 -gnatpg -W -Wall -nostdinc -I- -I. -Iada/generated -Iada
-I/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-5-20150602/gcc/ada
-I/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-5-20150602/gcc/ada/gcc-interface
/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-5-20150602/gcc/ada/comperr.adb
-o ada/comperr.o
GNU gdb (GDB) 7.9.1
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from
/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-build/./prev-gcc/xgcc...done.
warning: File
"/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-build/gcc/.gdbinit"
auto-loading has been declined by your `auto-load safe-path' set to
"$debugdir:$datadir/auto-load".
To enable execution of this file add
add-auto-load-safe-path
/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-build/gcc/.gdbinit
line to your configuration file "/home/snoonan/.gdbinit".
To completely disable this security protection add
set auto-load safe-path /
line to your configuration file "/home/snoonan/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual. E.g., run from the shell:
info "(gdb)Auto-loading safe path"
(gdb) set follow-fork-mode child
(gdb) run
Starting program:
/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-build/prev-gcc/xgcc
-B/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-build/./prev-gcc/
-B/usr/x86_64-unknown-linux-gnu/bin/ -B/usr/x86_64-unknown-linux-gnu/bin/
-B/usr/x86_64-unknown-linux-gnu/lib/ -isystem
/usr/x86_64-unknown-linux-gnu/include -isystem
/usr/x86_64-unknown-linux-gnu/sys-include -c -g -O2 -flto=jobserver
-frandom-seed=1 -gnatpg -W -Wall -nostdinc -I- -I. -Iada/generated -Iada
-I/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-5-20150602/gcc/ada
-I/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-5-20150602/gcc/ada/gcc-interface
/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-5-20150602/gcc/ada/comperr.adb
-o ada/comperr.o
[New process 16017]
process 16017 is executing new program:
/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-build/prev-gcc/gnat1
Program received signal SIGSEGV, Segmentation fault.
[Switching to process 16017]
0x0000000000c354ed in ei_edge (i=...) at
/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-5-20150602/gcc/basic-block.h:460
460 return EDGE_I (ei_container (i), i.index);
(gdb) thread apply all bt full
Thread 2 (process 16017):
#0 0x0000000000c354ed in ei_edge (i=...) at
/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-5-20150602/gcc/basic-block.h:460
No locals.
#1 0x0000000000c376cf in inverted_post_order_compute (post_order=0x2e3d9a0,
start_points=0x2bb0858 <bb_contains_live_stmts>) at
/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-5-20150602/gcc/cfganal.c:837
ei = {
index = 0,
container = 0x7ffff68543a8
}
pred = 0x7ffff6c8b8be <malloc+110>
has_unvisited_bb = false
bb = 0x0
stack = 0x2e1e740
sp = 171
post_order_num = 0
visited = 0x2decb40
__FUNCTION__ = "inverted_post_order_compute"
#2 0x00000000011ddcdc in remove_dead_stmt (i=0x7fffffffc950,
bb=0x7ffff5ad07b8) at
/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-5-20150602/gcc/tree-ssa-dce.c:1076
postorder = 0x2e3d9a0
postorder_num = 0
ei = {
index = 4121675328,
container = 0x7fffffffc860
}
e = 0x0
e2 = 0xdc9474 <gimple_call_flags(gimple_statement_base const*)+47>
stmt = 0x7ffff5abc640
__FUNCTION__ = "remove_dead_stmt"
#3 0x00000000011de918 in eliminate_unnecessary_stmts () at
/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-5-20150602/gcc/tree-ssa-dce.c:1360
something_changed = true
bb = 0x7ffff5ad07b8
gsi = {
ptr = 0x7ffff5abc640,
seq = 0x7ffff5ad07f8,
bb = 0x7ffff5ad07b8
}
psi = {
ptr = 0x0,
seq = 0x7ffff5ad07f8,
bb = 0x7ffff5ad07b8
}
stmt = 0x7ffff5abc640
call = 0x0
h = {
m_vec = 0x2e407b0
}
__FUNCTION__ = "eliminate_unnecessary_stmts"
#4 0x00000000011df279 in perform_tree_ssa_dce (aggressive=true) at
/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-5-20150602/gcc/tree-ssa-dce.c:1629
something_changed = false
#5 0x00000000011df35a in tree_ssa_cd_dce () at
/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-5-20150602/gcc/tree-ssa-dce.c:1670
No locals.
#6 0x00000000011df4c7 in (anonymous namespace)::pass_cd_dce::execute
(this=0x2c14da0) at
/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-5-20150602/gcc/tree-ssa-dce.c:1735
No locals.
#7 0x0000000000fdf3b5 in execute_one_pass (pass=0x2c14da0) at
/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-5-20150602/gcc/passes.c:2330
todo_after = 0
gate_status = true
__FUNCTION__ = "execute_one_pass"
#8 0x0000000000fdf5ef in execute_pass_list_1 (pass=0x2c14da0) at
/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-5-20150602/gcc/passes.c:2382
__FUNCTION__ = "execute_pass_list_1"
#9 0x0000000000fdf620 in execute_pass_list_1 (pass=0x2c149e0) at
/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-5-20150602/gcc/passes.c:2383
__FUNCTION__ = "execute_pass_list_1"
#10 0x0000000000fdf660 in execute_pass_list (fn=0x7ffff59fc7e0, pass=0x2c14860)
at
/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-5-20150602/gcc/passes.c:2393
No locals.
#11 0x0000000000fddfe3 in do_per_function_toporder (callback=0xfdf638
<execute_pass_list(function*, opt_pass*)>, data=0x2c14860) at
/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-5-20150602/gcc/passes.c:1728
node = 0x7ffff685ac40
hook = 0x2c04f40
order_idx = 0x7fffffffcb00
i = 0
__FUNCTION__ = "do_per_function_toporder"
#12 0x0000000000fe0200 in execute_ipa_pass_list (pass=0x2c14800) at
/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-5-20150602/gcc/passes.c:2736
__FUNCTION__ = "execute_ipa_pass_list"
#13 0x0000000000c87712 in ipa_passes () at
/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-5-20150602/gcc/cgraphunit.c:2171
passes = 0x2c13500
#14 0x0000000000c87b0e in symbol_table::compile (this=0x7ffff684f000) at
/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-5-20150602/gcc/cgraphunit.c:2312
No locals.
#15 0x0000000000c87d86 in symbol_table::finalize_compilation_unit
(this=0x7ffff684f000) at
/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-5-20150602/gcc/cgraphunit.c:2461
No locals.
#16 0x00000000007f007e in gnat_write_global_declarations () at
/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-5-20150602/gcc/ada/gcc-interface/utils.c:5217
i = 339
iter = 0x0
#17 0x00000000010ca5da in compile_file () at
/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-5-20150602/gcc/toplev.c:608
No locals.
#18 0x00000000010cc9a3 in do_compile () at
/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-5-20150602/gcc/toplev.c:2076
i = 1
#19 0x00000000010ccbd3 in toplev::main (this=0x7fffffffcdb0, argc=34,
argv=0x7fffffffceb8) at
/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-5-20150602/gcc/toplev.c:2174
No locals.
#20 0x000000000199b8f4 in main (argc=34, argv=0x7fffffffceb8) at
/home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-5-20150602/gcc/main.c:39
toplev = {
m_use_TV_TOTAL = true,
m_init_signals = true
}
(gdb)
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/65337] [5/6 Regression] bootstrap-lto gnat1 linktime ICE: gcc/ada/exp_aggr.adb:6570:0: internal compiler error: in forward_edge_to_pdom, at tree-ssa-dce.c:1086
2015-03-06 18:53 [Bug bootstrap/65337] New: 5.0 bootstrap-lto gnat1 linktime ICE: gcc/ada/exp_aggr.adb:6570:0: internal compiler error: in forward_edge_to_pdom, at tree-ssa-dce.c:1086 nheghathivhistha at gmail dot com
` (10 preceding siblings ...)
2015-06-03 22:31 ` steven at uplinklabs dot net
@ 2015-06-03 23:51 ` hubicka at ucw dot cz
2015-07-16 9:13 ` rguenth at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: hubicka at ucw dot cz @ 2015-06-03 23:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65337
--- Comment #10 from Jan Hubicka <hubicka at ucw dot cz> ---
> /home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-build/prev-gcc/gnat1
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to process 16017]
> 0x0000000000c354ed in ei_edge (i=...) at
> /home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-5-20150602/gcc/basic-block.h:460
> 460 return EDGE_I (ei_container (i), i.index);
> (gdb) thread apply all bt full
>
> Thread 2 (process 16017):
> #0 0x0000000000c354ed in ei_edge (i=...) at
> /home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-5-20150602/gcc/basic-block.h:460
> No locals.
> #1 0x0000000000c376cf in inverted_post_order_compute (post_order=0x2e3d9a0,
> start_points=0x2bb0858 <bb_contains_live_stmts>) at
> /home/snoonan/Development/ec2-packages/gcc-multilib/src/gcc-5-20150602/gcc/cfganal.c:837
I see, it looks like a bug in inverted_post_order_compute that is different ICE
I saw at
ppc64. I will take a look.
Honza
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug tree-optimization/65337] [5/6 Regression] bootstrap-lto gnat1 linktime ICE: gcc/ada/exp_aggr.adb:6570:0: internal compiler error: in forward_edge_to_pdom, at tree-ssa-dce.c:1086
2015-03-06 18:53 [Bug bootstrap/65337] New: 5.0 bootstrap-lto gnat1 linktime ICE: gcc/ada/exp_aggr.adb:6570:0: internal compiler error: in forward_edge_to_pdom, at tree-ssa-dce.c:1086 nheghathivhistha at gmail dot com
` (11 preceding siblings ...)
2015-06-03 23:51 ` hubicka at ucw dot cz
@ 2015-07-16 9:13 ` rguenth at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-07-16 9:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65337
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|5.2 |5.3
--- Comment #11 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 5.2 is being released, adjusting target milestone to 5.3.
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2015-07-16 9:13 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-06 18:53 [Bug bootstrap/65337] New: 5.0 bootstrap-lto gnat1 linktime ICE: gcc/ada/exp_aggr.adb:6570:0: internal compiler error: in forward_edge_to_pdom, at tree-ssa-dce.c:1086 nheghathivhistha at gmail dot com
2015-03-09 12:09 ` [Bug tree-optimization/65337] [5 Regression] " rguenth at gcc dot gnu.org
2015-03-12 17:02 ` jakub at gcc dot gnu.org
2015-03-13 9:30 ` rguenth at gcc dot gnu.org
2015-03-15 19:59 ` hubicka at gcc dot gnu.org
2015-03-18 13:27 ` rguenth at gcc dot gnu.org
2015-04-22 12:01 ` [Bug tree-optimization/65337] [5/6 " jakub at gcc dot gnu.org
2015-04-30 4:29 ` hubicka at gcc dot gnu.org
2015-06-03 0:25 ` hubicka at gcc dot gnu.org
2015-06-03 1:24 ` steven at uplinklabs dot net
2015-06-03 22:05 ` hubicka at ucw dot cz
2015-06-03 22:31 ` steven at uplinklabs dot net
2015-06-03 23:51 ` hubicka at ucw dot cz
2015-07-16 9:13 ` rguenth at gcc dot gnu.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).