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

            Bug ID: 123519
           Summary: a681: internal compiler error: Segmentation fault
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: algol68
          Assignee: algol68 at gcc dot gnu.org
          Reporter: mnabipoor at gnu dot org
  Target Milestone: ---

Hi.

I was working on my patch which adds `--disable-algol68-posix-prelude' option
to make it possible to build for baremetal systems. I rebased it recently on
master (1f7e64d56bce2c51bbc093a3dfb1778eaddf12ee) and tried to build it with
the following options:

$GCC/configure --disable-algol68-posix-prelude --target=arm-none-eabi
--prefix=$PREFIX --disable-shared --disable-threads --disable-tls --disable-nls
--with-system-zlib --with-newlib --enable-multilib
--with-multilib-list=rmprofile --disable-libmudflap --disable-libssp
--disable-libquadmath --disable-libgomp --disable-werror CFLAGS_FOR_TARGET=-Os
CXXFLAGS_FOR_TARGET=-Os --enable-languages=c,algol68,c++,lto


It's a multilib build for R/M profiles (--with-multilib-list=rmprofile).

It managed to successfully build the libga68 in the following directories:

  - arm-none-eabi/arm/v5te/softfp/libga68
  - arm-none-eabi/arm/v5te/hard/libga68

And failed in `arm-none-eabi/thumb/nofp/libga68' with an ICE:
(I changed the output to remove names of actual prefix directory and replaced
them with $PREFIX)


libtool: compile:  /gcc-builds/arm-none-eabi/./gcc/xgcc
-B/gcc-builds/arm-none-eabi/./gcc/ -B$PREFIX/arm-none-eabi/bin/
-B$PREFIX/arm-none-eabi/lib/thumb/nofp -B$PREFIX/arm-none-eabi/lib/ -isystem
$PREFIX/arm-none-eabi/include -isystem $PREFIX/arm-none-eabi/sys-include
-mthumb -mfloat-abi=soft -DHAVE_CONFIG_H -I.
-I/gcc-branches/disable-posix-prelude/libga68 -Os -mthumb -mfloat-abi=soft -MT
libga68_la-ga68-error.lo -MD -MP -MF .deps/libga68_la-ga68-error.Tpo -c
/gcc-branches/disable-posix-prelude/libga68/ga68-error.c -o
libga68_la-ga68-error.o
mv -f .deps/libga68_la-libga68.Tpo .deps/libga68_la-libga68.Plo
mv -f .deps/libga68_la-ga68-standenv.Tpo .deps/libga68_la-ga68-standenv.Plo
mv -f .deps/libga68_la-ga68-alloc.Tpo .deps/libga68_la-ga68-alloc.Plo
mv -f .deps/libga68_la-ga68-error.Tpo .deps/libga68_la-ga68-error.Plo
mv -f .deps/libga68_la-ga68-unistr.Tpo .deps/libga68_la-ga68-unistr.Plo
during RTL pass: expand
In function 'TRANSPUT_subwhole':
a681: internal compiler error: Segmentation fault
0x20377f7 internal_error(char const*, ...)
       
/gcc-branches/disable-posix-prelude/gcc/diagnostic-global-context.cc:787
0xf957af crash_signal
        /gcc-branches/disable-posix-prelude/gcc/toplev.cc:325
0xb58b9e aggregate_value_p(tree_node const*, tree_node const*)
        /gcc-branches/disable-posix-prelude/gcc/function.cc:2055
0x98e78d emit_library_call_value_1(int, rtx_def*, rtx_def*, libcall_type,
machine_mode, int, std::pair<rtx_def*, machine_mode>*)
        /gcc-branches/disable-posix-prelude/gcc/calls.cc:4283
0x13ef965 emit_library_call_value(rtx_def*, rtx_def*, libcall_type,
machine_mode, rtx_def*, machine_mode, rtx_def*, machine_mode)
        /gcc-branches/disable-posix-prelude/gcc/rtl.h:4490
0x13ef965 arm_expand_divmod_libfunc
        /gcc-branches/disable-posix-prelude/gcc/config/arm/arm.cc:34120
0xc6be58 expand_DIVMOD
        /gcc-branches/disable-posix-prelude/gcc/internal-fn.cc:3963
0x9ab44f expand_call_stmt
        /gcc-branches/disable-posix-prelude/gcc/cfgexpand.cc:3110
0x9ab44f expand_gimple_stmt_1
        /gcc-branches/disable-posix-prelude/gcc/cfgexpand.cc:4236
0x9ab44f expand_gimple_stmt
        /gcc-branches/disable-posix-prelude/gcc/cfgexpand.cc:4383
0x9acb27 expand_gimple_basic_block
        /gcc-branches/disable-posix-prelude/gcc/cfgexpand.cc:6502
0x9aed57 execute
        /gcc-branches/disable-posix-prelude/gcc/cfgexpand.cc:7249
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
make[6]: *** [Makefile:899: transput.lo] Error 1

Reply via email to