[Bug rtl-optimization/58438] [4.9 Regression] ICE: in check_rtl, at lra.c:2036

2013-09-18 Thread markus at trippelsdorf dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58438

Markus Trippelsdorf  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #6 from Markus Trippelsdorf  ---
Fixed. Thanks.


[Bug rtl-optimization/58438] [4.9 Regression] ICE: in check_rtl, at lra.c:2036

2013-09-18 Thread vmakarov at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58438

--- Comment #5 from Vladimir Makarov  ---
Author: vmakarov
Date: Wed Sep 18 18:24:49 2013
New Revision: 202714

URL: http://gcc.gnu.org/viewcvs?rev=202714&root=gcc&view=rev
Log:
2013-09-18  Vladimir Makarov  

PR rtl-optimization/58438
* lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
* lra-constraints.c (undo_optional_reloads): Keep optional reloads
from previous subpasses.

2013-09-18  Vladimir Makarov  

PR rtl-optimization/58438
* g++.dg/pr58438.C: New test.


Modified:
trunk/gcc/ChangeLog
trunk/gcc/lra-constraints.c
trunk/gcc/lra.c
trunk/gcc/testsuite/ChangeLog


[Bug rtl-optimization/58438] [4.9 Regression] ICE: in check_rtl, at lra.c:2036

2013-09-16 Thread mpolacek at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58438

Marek Polacek  changed:

   What|Removed |Added

 CC||vmakarov at gcc dot gnu.org

--- Comment #4 from Marek Polacek  ---
Started with r202630.


[Bug rtl-optimization/58438] [4.9 Regression] ICE: in check_rtl, at lra.c:2036

2013-09-16 Thread mpolacek at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58438

Marek Polacek  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2013-09-17
 CC||mpolacek at gcc dot gnu.org
   Target Milestone|--- |4.9.0
 Ever confirmed|0   |1

--- Comment #3 from Marek Polacek  ---
Confirmed.


[Bug rtl-optimization/58438] [4.9 Regression] ICE: in check_rtl, at lra.c:2036

2013-09-16 Thread markus at trippelsdorf dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58438

--- Comment #1 from Markus Trippelsdorf  ---
During profiled bootstrap:
/var/tmp/gcc_build_dir/./prev-gcc/xg++ -B/var/tmp/gcc_build_dir/./prev-gcc/
-B/usr/x86_64-pc-linux-gnu/bin/ -nostdinc++
-B/var/tmp/gcc_build_dir/prev-x86_64-pc-linux-gnu/libs
tdc++-v3/src/.libs
-B/var/tmp/gcc_build_dir/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-I/var/tmp/gcc_build_dir/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_6
4-pc-linux-gnu
-I/var/tmp/gcc_build_dir/prev-x86_64-pc-linux-gnu/libstdc++-v3/include
-I/var/tmp/gcc/libstdc++-v3/libsupc++
-L/var/tmp/gcc_build_dir/prev-x86_64-pc-linux-gnu/
libstdc++-v3/src/.libs
-L/var/tmp/gcc_build_dir/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-c   -march=native -O3 -pipe -fuse-linker-plugin -flto=jobserver -fno-fa
t-lto-objects -frandom-seed=1 -fprofile-generate -fno-lto -DIN_GCC  
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qua
l -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc
-I../../gcc/gcc/. -I../../gcc/gcc
/../include -I../../gcc/gcc/../libcpp/include  -I../../gcc/gcc/../libdecnumber
-I../../gcc/gcc/../libdecnumber/bid -I../libdecnumber
-I../../gcc/gcc/../libbacktrace../../
gcc/gcc/tree-ssa-uninit.c -o tree-ssa-uninit.o
../../gcc/gcc/tree-ssa-uninit.c: In function ‘bool
is_use_properly_guarded(gimple, basic_block, gimple, unsigned int,
pointer_set_t*)’:
../../gcc/gcc/tree-ssa-uninit.c:1845:1: internal compiler error: in check_rtl,
at lra.c:2036

Reducing...

[Bug rtl-optimization/58438] [4.9 Regression] ICE: in check_rtl, at lra.c:2036

2013-09-16 Thread markus at trippelsdorf dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58438

--- Comment #2 from Markus Trippelsdorf  ---
markus@x4 gcc % cat test.ii
enum gimple_code {};
struct A {
  gimple_code code;
};
struct B {
  A gsbase;
};
int **a;
int b, d, e, f, g, h, i, j, k, l, m, n, o;
gimple_code c, p;
class C {
  virtual unsigned m_fn1();
};
B q;
static int fn1() {
  int r;
  if (k)
i = 0;
  for (; i; j++) {
b = c <= 0;
if (b)
  n = *a[0];
b = p && c;
if (b)
  r = *a[0];
b = q.gsbase.code && c;
if (b)
  o = *a[0];
m = o;
if (e || 1 & r || d || l)
  return 0;
  }
}

class D : C {
  unsigned m_fn1() {
fn1();
for (; h; g++)
  for (;; f++)
;
  }
};
void fn2() { new D; }

markus@x4 gcc % g++ -c -march=amdfam10 -O3 -fprofile-generate test.ii
test.ii: In member function ‘virtual unsigned int D::m_fn1()’:
test.ii:41:3: internal compiler error: in check_rtl, at lra.c:2036