[Bug middle-end/54041] New: -mshort ICE in convert_memory_address_addr_space, at explow.c:327
ksop at hot dot ee
gcc-bugzilla@gcc.gnu.org
Fri Jul 20 01:57:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54041
Bug #: 54041
Summary: -mshort ICE in convert_memory_address_addr_space, at
explow.c:327
Classification: Unclassified
Product: gcc
Version: 4.7.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: ksop@hot.ee
Appears when pointer+index is evaluated, with sizetype being short.
Also tried with one convert_memory_address_addr_space() call commented out, in
which case no ICE is produced. 4.6.3, 4.5.4 affected as well. An -mshort target
makes an interesting testing tool.
$ m68k-linux-gnu-gcc-4.7.1 -v
Using built-in specs.
COLLECT_GCC=m68k-linux-gnu-gcc-4.7.1
COLLECT_LTO_WRAPPER=/opt/gnu/libexec/gcc/m68k-linux-gnu/4.7.1/lto-wrapper
Target: m68k-linux-gnu
Configured with: ./configure --target=m68k-linux-gnu --build=x86_64-linux-gnu
--enable-languages=c --prefix=/opt/gnu
Thread model: posix
gcc version 4.7.1 (GCC)
$ m68k-linux-gnu-gcc-4.7.1 -mshort -O -S test.i
test.i: In function 'fn':
test.i:5:2: internal compiler error: in convert_memory_address_addr_space, at
explow.c:327
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
More information about the Gcc-bugs
mailing list