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

            Bug ID: 62177
           Summary: mips-rtems ICE at lra_assigns.c:1335 compiling
                    strtod.c in newlib
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: joel at gcc dot gnu.org
              Host: x86_64-unknown-linux-gnu
            Target: mips-rtems4.11

Created attachment 33358
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33358&action=edit
Preprocessed newlib strtod.c source to reproduce issue

Fails at -O2. Builds at -O1.

Works: /users/joel/test-gcc/b-mips-rtems4.11-gcc/./gcc/xgcc
-B/users/joel/test-gcc/b-mips-rtems4.11-gcc/./gcc/ -fno-builtin -mips3      -g
-O2 -c mips_bug.c 

Adding -EL results in a failure.


Full command:

/users/joel/test-gcc/b-mips-rtems4.11-gcc/./gcc/xgcc
-B/users/joel/test-gcc/b-mips-rtems4.11-gcc/./gcc/ -nostdinc
-B/users/joel/test-gcc/b-mips-rtems4.11-gcc/mips-rtems4.11/mips3/el/newlib/
-isystem
/users/joel/test-gcc/b-mips-rtems4.11-gcc/mips-rtems4.11/mips3/el/newlib/targ-include
-isystem /users/joel/test-gcc/gcc/newlib/libc/include
-B/users/joel/test-gcc/install-head/mips-rtems4.11/bin/
-B/users/joel/test-gcc/install-head/mips-rtems4.11/lib/ -isystem
/users/joel/test-gcc/install-head/mips-rtems4.11/include -isystem
/users/joel/test-gcc/install-head/mips-rtems4.11/sys-include  -mips3 -EL
-DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\"
-DPACKAGE_VERSION=\"2.1.0\" -DPACKAGE_STRING=\"newlib\ 2.1.0\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -I.
-I../../../../../../../gcc/newlib/libc/stdlib -D_COMPILING_NEWLIB
-DMALLOC_PROVIDED -DEXIT_PROVIDED -DSIGNAL_PROVIDED
-DREENTRANT_SYSCALLS_PROVIDED -DHAVE_NANOSLEEP -DHAVE_BLKSIZE -DHAVE_FCNTL
-DHAVE_ASSERT_FUNC -D_NO_GETLOGIN -D_NO_GETPWENT -D_NO_GETUT -D_NO_GETPASS
-D_NO_SIGSET -D_NO_WORDEXP -D_NO_POPEN -D_NO_POSIX_SPAWN -fno-builtin      -g
-O2  -mips3 -EL -c -o lib_a-strtod.o `test -f 'strtod.c' || echo
'../../../../../../../gcc/newlib/libc/stdlib/'`strtod.c
../../../../../../../gcc/newlib/libc/stdlib/strtod.c: In function '_strtod_r':
../../../../../../../gcc/newlib/libc/stdlib/strtod.c:1252:1: internal compiler
error: in assign_by_spills, at lra-assigns.c:1335
 }
 ^
0x7ac8f3 assign_by_spills
    ../../gcc/gcc/lra-assigns.c:1335
0x7ad296 lra_assign()
    ../../gcc/gcc/lra-assigns.c:1500
0x7a9022 lra(_IO_FILE*)
    ../../gcc/gcc/lra.c:2230
0x768946 do_reload
    ../../gcc/gcc/ira.c:5306
0x768946 execute
    ../../gcc/gcc/ira.c:5465

Reply via email to