This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/79242] ICE in simplify_subreg, at simplify-rtx.c:6029


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79242

Orlando Arias <oarias at knights dot ucf.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |oarias at knights dot ucf.edu

--- Comment #3 from Orlando Arias <oarias at knights dot ucf.edu> ---
Greetings,

I also ran into this problem when compiling newlib [snapshot 2.5.0.20170421]
with a bootstrapping gcc using version 7.1.0 for the msp430-elf target.

$ msp430-elf-gcc -v
Using built-in specs.
COLLECT_GCC=msp430-elf-gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/msp430-elf/7.1.0/lto-wrapper
Target: msp430-elf
Configured with: ../configure --prefix=/usr --program-prefix=msp430-elf-
--target=msp430-elf --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu
--disable-shared --disable-nls --disable-threads --enable-languages=c
--enable-multilib --without-headers --with-newlib
--with-local-prefix=/usr/msp430-elf --with-sysroot=/usr/msp430-elf
--with-as=/usr/bin/msp430-elf-as --with-ld=/usr/bin/msp430-elf-ld
--disable-libgomp
Thread model: single
gcc version 7.1.0 (GCC) 

The particular line that fails is (expanded):

 if ((nmemb >= ((size_t)1 << (sizeof(size_t) * 4)) || size >= ((size_t)1 <<
(sizeof(size_t) * 4))) &&
     nmemb > 0 && 
                 (0xfffffUL) 
                          / nmemb < size) {


Failure occurs at the comparison:

../../../../../../newlib/libc/stdlib/reallocarray.c:37:36: internal compiler
error: in simplify_subreg, at simplify-rtx.c:6034
      nmemb > 0 && SIZE_MAX / nmemb < size) {

Is there any way to disable/bypass this particular behavior? Thank you.

Cheers,
Orlando.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]