[Bug middle-end/65702] New: [5 Regression] ICE (tree check: expected ssa_name, have var_decl in expand_gimple_basic_block, at cfgexpand.c:5506) on arm-linux-gnueabihf
doko at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Apr 8 18:19:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65702
Bug ID: 65702
Summary: [5 Regression] ICE (tree check: expected ssa_name,
have var_decl in expand_gimple_basic_block, at
cfgexpand.c:5506) on arm-linux-gnueabihf
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: doko at gcc dot gnu.org
seen with r221867 on arm-linux-gbueabihf
$cat palette.ii
class A {
int m_fn1() const;
};
int a[1];
int b;
int A::m_fn1() const {
register int c asm("");
while (b)
if (a[5])
c = b;
return c;
}
$ g++ -c -g -O2 -std=gnu++11 palette.ii
palette.ii: In member function 'int A::m_fn1() const':
palette.ii:7:16: error: invalid register name for 'c'
register int c asm("");
^
palette.ii:6:5: internal compiler error: tree check: expected ssa_name, have
var_decl in expand_gimple_basic_block, at cfgexpand.c:5506
int A::m_fn1() const {
^
0x8243dd tree_check_failed(tree_node const*, char const*, int, char const*,
...)
../../src/gcc/tree.c:9297
0x39e455 tree_check(tree_node*, char const*, int, char const*, tree_code)
../../src/gcc/tree.h:2846
0x39e455 expand_gimple_basic_block
../../src/gcc/cfgexpand.c:5506
0x39ec81 execute
../../src/gcc/cfgexpand.c:6127
Please submit a full bug report,
with preprocessed source if appropriate.
$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/5/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
5-20150404-0ubuntu11' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs
--enable-languages=c,ada,c++,java,go,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-5 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=c++98 --enable-gnu-unique-object --disable-libitm
--disable-libquadmath --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-5-armhf/jre --enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-armhf
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-armhf
--with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--enable-objc-gc --enable-multiarch --enable-multilib --disable-sjlj-exceptions
--with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard --with-mode=thumb
--disable-werror --enable-multilib --enable-checking=yes
--build=arm-linux-gnueabihf --host=arm-linux-gnueabihf
--target=arm-linux-gnueabihf
Thread model: posix
gcc version 5.0.0 20150404 (experimental) [trunk revision 221867] (Ubuntu
5-20150404-0ubuntu11)
More information about the Gcc-bugs
mailing list