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

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Created attachment 59060
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59060&action=edit
reduced testcase

That's what reduction ended up with.  Clean with -Wall, it no longer requires
-p to trigger (but still -g).

> ./cc1 -fpreprocessed ipmr.i -quiet -mno-fdpic -mabi=aapcs-linux -mfpu=vfp 
> -marm -mtune=arm1136j-s -mfloat-abi=soft -mlibarch=armv6k -march=armv6k -g 
> -O2 -std=gnu11 -version   -fno-strict-aliasing
ipmr2.i:185:1: internal compiler error: Segmentation fault
  185 | }
      | ^
0xa1ecff crash_signal
        /home/rguenther/src/gcc-14-branch/gcc/toplev.cc:319
0x5c7b54 canonical_cselib_val(cselib_val*)
        /home/rguenther/src/gcc-14-branch/gcc/cselib.h:121
0x5c7b54 rtx_equal_for_cselib_1(rtx_def*, rtx_def*, machine_mode, int)
        /home/rguenther/src/gcc-14-branch/gcc/cselib.cc:963
0x5c7fa9 rtx_equal_for_cselib_1(rtx_def*, rtx_def*, machine_mode, int)
        /home/rguenther/src/gcc-14-branch/gcc/cselib.cc:1146
0x5c7d9e rtx_equal_for_cselib_1(rtx_def*, rtx_def*, machine_mode, int)
        /home/rguenther/src/gcc-14-branch/gcc/cselib.cc:1021
0x5cb628 cselib_hasher::equal(cselib_val const*, cselib_hasher::key const*)
        /home/rguenther/src/gcc-14-branch/gcc/cselib.cc:167
0x5cb628 hash_table<cselib_hasher, false,
xcallocator>::find_slot_with_hash(cselib_hasher::key* const&, unsigned int,
insert_option)
        /home/rguenther/src/gcc-14-branch/gcc/hash-table.h:1077
0x5c5712 cselib_find_slot
        /home/rguenther/src/gcc-14-branch/gcc/cselib.cc:627
0x5c6479 cselib_lookup_1
        /home/rguenther/src/gcc-14-branch/gcc/cselib.cc:2382
0x5c6479 cselib_lookup(rtx_def*, machine_mode, int, machine_mode)
        /home/rguenther/src/gcc-14-branch/gcc/cselib.cc:2446
0x5c9c60 cselib_record_sets
        /home/rguenther/src/gcc-14-branch/gcc/cselib.cc:2947
0x5cad75 cselib_process_insn(rtx_insn*)
        /home/rguenther/src/gcc-14-branch/gcc/cselib.cc:3174
0xd22573 vt_initialize
        /home/rguenther/src/gcc-14-branch/gcc/var-tracking.cc:10290
0xd2804a variable_tracking_main_1
        /home/rguenther/src/gcc-14-branch/gcc/var-tracking.cc:10518
0xd2804a variable_tracking_main()
        /home/rguenther/src/gcc-14-branch/gcc/var-tracking.cc:10571
0xd2804a execute
        /home/rguenther/src/gcc-14-branch/gcc/var-tracking.cc:10608
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.opensuse.org/> for instructions.

Reply via email to