* [Bug c++/58006] ICE regression compiling VegaStrike on f19 with -ffast-math and -ftree-parallelize-loops=2
2013-07-27 20:51 [Bug c++/58006] New: ICE regression compiling VegaStrike on f19 with -ffast-math and -ftree-parallelize-loops=2 ermo.gcc.gnu.org at spammesenseless dot net
@ 2013-07-27 20:57 ` ermo.gcc.gnu.org at spammesenseless dot net
2013-07-27 20:57 ` paolo.carlini at oracle dot com
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: ermo.gcc.gnu.org at spammesenseless dot net @ 2013-07-27 20:57 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58006
--- Comment #2 from ermo.gcc.gnu.org at spammesenseless dot net ---
Created attachment 30564
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30564&action=edit
preprocessed source
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/58006] ICE regression compiling VegaStrike on f19 with -ffast-math and -ftree-parallelize-loops=2
2013-07-27 20:51 [Bug c++/58006] New: ICE regression compiling VegaStrike on f19 with -ffast-math and -ftree-parallelize-loops=2 ermo.gcc.gnu.org at spammesenseless dot net
2013-07-27 20:57 ` [Bug c++/58006] " ermo.gcc.gnu.org at spammesenseless dot net
@ 2013-07-27 20:57 ` paolo.carlini at oracle dot com
2013-07-27 21:06 ` [Bug tree-optimization/58006] " ermo.gcc.gnu.org at spammesenseless dot net
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-07-27 20:57 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58006
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2013-07-27
Ever confirmed|0 |1
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Per the bug reporting instructions, please attach a preprocessed reproducer. If
at all possible, please do your best to reduce it to a manageable size:
http://gcc.gnu.org/wiki/A_guide_to_testcase_reduction
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/58006] ICE regression compiling VegaStrike on f19 with -ffast-math and -ftree-parallelize-loops=2
2013-07-27 20:51 [Bug c++/58006] New: ICE regression compiling VegaStrike on f19 with -ffast-math and -ftree-parallelize-loops=2 ermo.gcc.gnu.org at spammesenseless dot net
2013-07-27 20:57 ` [Bug c++/58006] " ermo.gcc.gnu.org at spammesenseless dot net
2013-07-27 20:57 ` paolo.carlini at oracle dot com
@ 2013-07-27 21:06 ` ermo.gcc.gnu.org at spammesenseless dot net
2013-07-27 21:24 ` [Bug tree-optimization/58006] [4.8/4.9 Regression] ICE compiling VegaStrike with -ffast-math -ftree-parallelize-loops=2 glisse at gcc dot gnu.org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: ermo.gcc.gnu.org at spammesenseless dot net @ 2013-07-27 21:06 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58006
--- Comment #3 from ermo.gcc.gnu.org at spammesenseless dot net ---
@Paolo:
*sigh* -- I suspected that it wasn't ever going to be as simple as describing
what I did to trigger the ICE. Sorry for polluting bugzilla with an incomplete
bug-report.
I'll see what I can do about educating myself on the ways of proper gcc
bug-reporting -- you never know if it might come in handy one day. =)
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/58006] [4.8/4.9 Regression] ICE compiling VegaStrike with -ffast-math -ftree-parallelize-loops=2
2013-07-27 20:51 [Bug c++/58006] New: ICE regression compiling VegaStrike on f19 with -ffast-math and -ftree-parallelize-loops=2 ermo.gcc.gnu.org at spammesenseless dot net
` (2 preceding siblings ...)
2013-07-27 21:06 ` [Bug tree-optimization/58006] " ermo.gcc.gnu.org at spammesenseless dot net
@ 2013-07-27 21:24 ` glisse at gcc dot gnu.org
2013-07-28 11:45 ` glisse at gcc dot gnu.org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: glisse at gcc dot gnu.org @ 2013-07-27 21:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58006
Marc Glisse <glisse at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
Summary|ICE regression compiling |[4.8/4.9 Regression] ICE
|VegaStrike on f19 with |compiling VegaStrike with
|-ffast-math and |-ffast-math
|-ftree-parallelize-loops=2 |-ftree-parallelize-loops=2
--- Comment #4 from Marc Glisse <glisse at gcc dot gnu.org> ---
Confirmed with just -Ofast -ftree-parallelize-loops=2.
#0 __strlen_sse2_pminub () at
../sysdeps/x86_64/multiarch/strlen-sse2-pminub.S:38
#1 0x0000000000cf064b in get_identifier (text=0x0) at
/data/repos/gcc/trunk/gcc/stringpool.c:111
#2 0x0000000000d96f46 in make_temp_ssa_name (type=0x7ffff5fb12a0, stmt=0x0,
name=0x0)
at /data/repos/gcc/trunk/gcc/tree-flow-inline.h:1222
#3 0x0000000000d97ee1 in take_address_of (obj=0x7ffff1449f50,
type=0x7ffff5fb12a0, entry=0x7ffff0ddad58, decl_address=...,
gsi=0x7fffffffd4b0) at /data/repos/gcc/trunk/gcc/tree-parloops.c:499
#4 0x0000000000d9841e in eliminate_local_variables_1 (tp=0x7ffff1840450,
walk_subtrees=0x7fffffffd2b8, data=0x7fffffffd3e0)
at /data/repos/gcc/trunk/gcc/tree-parloops.c:613
#5 0x0000000000f6f75e in walk_tree_1 (tp=0x7ffff1840450, func=0xd982f3
<eliminate_local_variables_1(tree*, int*, void*)>,
data=0x7fffffffd3e0, pset=0x0, lh=0x0) at
/data/repos/gcc/trunk/gcc/tree.c:10916
#6 0x0000000000a9b35d in walk_gimple_op (stmt=0x7ffff1840410,
callback_op=0xd982f3 <eliminate_local_variables_1(tree*, int*, void*)>,
wi=0x7fffffffd3e0) at /data/repos/gcc/trunk/gcc/gimple.c:1428
#7 0x0000000000d98727 in eliminate_local_variables_stmt (entry=0x7ffff0ddad58,
gsi=0x7fffffffd4b0, decl_address=...)
at /data/repos/gcc/trunk/gcc/tree-parloops.c:700
#8 0x0000000000d98881 in eliminate_local_variables (entry=0x7ffff0ddad58,
exit=0x7ffff1b40a80)
at /data/repos/gcc/trunk/gcc/tree-parloops.c:743
#9 0x0000000000d9c358 in gen_parallel_loop (loop=0x7ffff0d4bea0,
reduction_list=..., n_threads=2, niter=0x7fffffffd5f0)
at /data/repos/gcc/trunk/gcc/tree-parloops.c:1864
#10 0x0000000000d9d393 in parallelize_loops () at
/data/repos/gcc/trunk/gcc/tree-parloops.c:2218
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/58006] [4.8/4.9 Regression] ICE compiling VegaStrike with -ffast-math -ftree-parallelize-loops=2
2013-07-27 20:51 [Bug c++/58006] New: ICE regression compiling VegaStrike on f19 with -ffast-math and -ftree-parallelize-loops=2 ermo.gcc.gnu.org at spammesenseless dot net
` (3 preceding siblings ...)
2013-07-27 21:24 ` [Bug tree-optimization/58006] [4.8/4.9 Regression] ICE compiling VegaStrike with -ffast-math -ftree-parallelize-loops=2 glisse at gcc dot gnu.org
@ 2013-07-28 11:45 ` glisse at gcc dot gnu.org
2013-07-28 17:10 ` paolo.carlini at oracle dot com
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: glisse at gcc dot gnu.org @ 2013-07-28 11:45 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58006
--- Comment #5 from Marc Glisse <glisse at gcc dot gnu.org> ---
extern "C" float sqrtf (float);
extern int a;
extern int b;
struct Vector {
float i;
float j;
float Magnitude() const {
return sqrtf( i*i+j*j );
}
};
void f(){
int i = a;
int end = b;
for (; i != end; ++i) {
float tmag = Vector().Magnitude();
}
}
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/58006] [4.8/4.9 Regression] ICE compiling VegaStrike with -ffast-math -ftree-parallelize-loops=2
2013-07-27 20:51 [Bug c++/58006] New: ICE regression compiling VegaStrike on f19 with -ffast-math and -ftree-parallelize-loops=2 ermo.gcc.gnu.org at spammesenseless dot net
` (4 preceding siblings ...)
2013-07-28 11:45 ` glisse at gcc dot gnu.org
@ 2013-07-28 17:10 ` paolo.carlini at oracle dot com
2013-08-12 9:23 ` vincent.legoll at gmail dot com
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-07-28 17:10 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58006
--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Thanks Marc.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/58006] [4.8/4.9 Regression] ICE compiling VegaStrike with -ffast-math -ftree-parallelize-loops=2
2013-07-27 20:51 [Bug c++/58006] New: ICE regression compiling VegaStrike on f19 with -ffast-math and -ftree-parallelize-loops=2 ermo.gcc.gnu.org at spammesenseless dot net
` (5 preceding siblings ...)
2013-07-28 17:10 ` paolo.carlini at oracle dot com
@ 2013-08-12 9:23 ` vincent.legoll at gmail dot com
2013-08-16 15:29 ` jakub at gcc dot gnu.org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: vincent.legoll at gmail dot com @ 2013-08-12 9:23 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58006
vincent.legoll at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |vincent.legoll at gmail dot com
--- Comment #7 from vincent.legoll at gmail dot com ---
Hello, I got the same under Debian Jessie
$ gcc-4.8 -v
Using built-in specs.
COLLECT_GCC=gcc-4.8
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.8.1-2'
--with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs
--enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.8 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls
--with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug
--enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin
--with-system-zlib --disable-browser-plugin --enable-java-awt=gtk
--enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre
--enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64
--with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--enable-objc-gc --enable-multiarch --with-arch-32=i586 --with-abi=m64
--with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release
--build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.1 (Debian 4.8.1-2)
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/58006] [4.8/4.9 Regression] ICE compiling VegaStrike with -ffast-math -ftree-parallelize-loops=2
2013-07-27 20:51 [Bug c++/58006] New: ICE regression compiling VegaStrike on f19 with -ffast-math and -ftree-parallelize-loops=2 ermo.gcc.gnu.org at spammesenseless dot net
` (6 preceding siblings ...)
2013-08-12 9:23 ` vincent.legoll at gmail dot com
@ 2013-08-16 15:29 ` jakub at gcc dot gnu.org
2013-08-16 15:30 ` jakub at gcc dot gnu.org
2013-08-18 18:43 ` jakub at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-08-16 15:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58006
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
Target Milestone|--- |4.8.2
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/58006] [4.8/4.9 Regression] ICE compiling VegaStrike with -ffast-math -ftree-parallelize-loops=2
2013-07-27 20:51 [Bug c++/58006] New: ICE regression compiling VegaStrike on f19 with -ffast-math and -ftree-parallelize-loops=2 ermo.gcc.gnu.org at spammesenseless dot net
` (7 preceding siblings ...)
2013-08-16 15:29 ` jakub at gcc dot gnu.org
@ 2013-08-16 15:30 ` jakub at gcc dot gnu.org
2013-08-18 18:43 ` jakub at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-08-16 15:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58006
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 30666
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30666&action=edit
gcc49-pr58006.patch
Untested fix.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/58006] [4.8/4.9 Regression] ICE compiling VegaStrike with -ffast-math -ftree-parallelize-loops=2
2013-07-27 20:51 [Bug c++/58006] New: ICE regression compiling VegaStrike on f19 with -ffast-math and -ftree-parallelize-loops=2 ermo.gcc.gnu.org at spammesenseless dot net
` (8 preceding siblings ...)
2013-08-16 15:30 ` jakub at gcc dot gnu.org
@ 2013-08-18 18:43 ` jakub at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-08-18 18:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58006
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Sun Aug 18 15:23:24 2013
New Revision: 201827
URL: http://gcc.gnu.org/viewcvs?rev=201827&root=gcc&view=rev
Log:
PR tree-optimization/58006
* tree-parloops.c (take_address_of): Don't ICE if get_name
returns NULL.
(eliminate_local_variables_stmt): Remove clobber stmts.
* g++.dg/opt/pr58006.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/opt/pr58006.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-parloops.c
Author: jakub
Date: Sun Aug 18 15:24:12 2013
New Revision: 201828
URL: http://gcc.gnu.org/viewcvs?rev=201828&root=gcc&view=rev
Log:
PR tree-optimization/58006
* tree-parloops.c (take_address_of): Don't ICE if get_name
returns NULL.
(eliminate_local_variables_stmt): Remove clobber stmts.
* g++.dg/opt/pr58006.C: New test.
Added:
branches/gcc-4_8-branch/gcc/testsuite/g++.dg/opt/pr58006.C
Modified:
branches/gcc-4_8-branch/gcc/ChangeLog
branches/gcc-4_8-branch/gcc/testsuite/ChangeLog
branches/gcc-4_8-branch/gcc/tree-parloops.c
^ permalink raw reply [flat|nested] 11+ messages in thread