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/70362] New: Segmentation fault compiling scalar-by-value-4_x.c for ARM arch < 4


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

            Bug ID: 70362
           Summary: Segmentation fault compiling scalar-by-value-4_x.c for
                    ARM arch < 4
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jmargetts at ocz dot com
  Target Milestone: ---

This testcase fails with a segmentation fault on ARM architectures less then v4
(I.e. where halfword load/store are synthesised from byte accesses)

/usr/julien/toolchain_build_rel/gcc-4.9.3/gcc/testsuite/gcc.dg/compat/scalar-by-value-4_x.c:74:1:
internal compiler error: Segmentation fault
 T(cs, _Complex short, CINT (1, 2))
 ^
0x83650f crash_signal
        ../../gcc-4.9.0/gcc/toplev.c:337
0xa4bf2c arm_reload_out_hi(rtx_def**)
        ../../gcc-4.9.0/gcc/config/arm/arm.c:15063
0xa8475f gen_reload_outhi(rtx_def*, rtx_def*, rtx_def*)
        ../../gcc-4.9.0/gcc/config/arm/arm.md:7035
0x751f5d check_and_process_move
        ../../gcc-4.9.0/gcc/recog.h:285
0x751f5d curr_insn_transform
        ../../gcc-4.9.0/gcc/lra-constraints.c:3282
0x752c68 lra_constraints(bool)
        ../../gcc-4.9.0/gcc/lra-constraints.c:4216
0x744566 lra(_IO_FILE*)
        ../../gcc-4.9.0/gcc/lra.c:2353
0x70e435 do_reload
        ../../gcc-4.9.0/gcc/ira.c:5457
0x70e435 rest_of_handle_reload
        ../../gcc-4.9.0/gcc/ira.c:5598
0x70e435 execute
        ../../gcc-4.9.0/gcc/ira.c:5627
Please submit a full bug report,
with preprocessed source if appropriate.


Configured with: ../gcc-4.9.0/configure --target=arm-none-eabi
--enable-languages=c,c++ --with-newlib --with-gnu-as --with-gnu-ld
--disable-nls --disable-shared --disable-multilib --disable-threads
--with-headers=newlib/libc/include --disable-libssp --disable-libstdcxx-pch
--disable-libmudflap --disable-libgomp --disable-libunwind --with-system-zlib
--disable-newlib-supplied-syscalls


arm-none-eabi-gcc -c -o c_compat_x_tst.o
gcc-4.9.3/gcc/testsuite/gcc.dg/compat/scalar-by-value-4_x.c -march=armv3m

This problem does not exist in 4.8.5, but does in 4.9.0

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