https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92368
Bug ID: 92368
Summary: internal compiler error: Segmentation fault in
gcc-7.4.1
Product: gcc
Version: 7.4.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: inline-asm
Assignee: unassigned at gcc dot gnu.org
Reporter: anbu1024.me at gmail dot com
Target Milestone: ---
$ cat test.c
void foo ( )
{
float x ;
asm ( "" : : "pir" ( x ) ) ;
}
My gcc snapshot version
$ gcc-snapshot7 -v
Using built-in specs.
COLLECT_GCC=/home/tom/Documents/gcc/7-20191031/install/bin/gcc
COLLECT_LTO_WRAPPER=/home/tom/Documents/gcc/7-20191031/install/libexec/gcc/x86_64-pc-linux-gnu/7.4.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-7-20191031/configure
--prefix=/home/tom/Documents/gcc/7-20191031/install --enable-languages=c,c++
--disable-multilib
Thread model: posix
gcc version 7.4.1 20191031 (GCC)
$ gcc-snapshot7 test.c
test.c: In function ‘foo’:
test.c:5:1: internal compiler error: Segmentation fault
}
^
0xa13c6f crash_signal
../../gcc-7-20191031/gcc/toplev.c:337
0x8da92b base_plus_disp_to_reg
../../gcc-7-20191031/gcc/lra-constraints.c:3057
0x8dec43 process_address_1
../../gcc-7-20191031/gcc/lra-constraints.c:3404
0x8df48c process_address
../../gcc-7-20191031/gcc/lra-constraints.c:3514
0x8df48c curr_insn_transform
../../gcc-7-20191031/gcc/lra-constraints.c:3830
0x8e488e lra_constraints(bool)
../../gcc-7-20191031/gcc/lra-constraints.c:4869
0x8d3ee4 lra(_IO_FILE*)
../../gcc-7-20191031/gcc/lra.c:2394
0x892521 do_reload
../../gcc-7-20191031/gcc/ira.c:5485
0x892521 execute
../../gcc-7-20191031/gcc/ira.c:5669
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
gcc-7.4.0 is affected.
$ gcc-7.4.0 -v
Using built-in specs.
COLLECT_GCC=/home/tom/Documents/gcc/7.4.0/install/bin/gcc
COLLECT_LTO_WRAPPER=/home/tom/Documents/gcc/7.4.0/install/libexec/gcc/x86_64-pc-linux-gnu/7.4.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-7.4.0/configure
--prefix=/home/tom/Documents/gcc/7.4.0/install --enable-languages=c,c++
--disable-multilib
Thread model: posix
gcc version 7.4.0 (GCC)
$ gcc-7.4.0 test.c
test.c: In function ‘foo’:
test.c:5:1: internal compiler error: Segmentation fault
}
^
0x9d957f crash_signal
../../gcc-7.4.0/gcc/toplev.c:337
0x8a037b base_plus_disp_to_reg
../../gcc-7.4.0/gcc/lra-constraints.c:3057
0x8a4653 process_address_1
../../gcc-7.4.0/gcc/lra-constraints.c:3404
0x8a4e9c process_address
../../gcc-7.4.0/gcc/lra-constraints.c:3514
0x8a4e9c curr_insn_transform
../../gcc-7.4.0/gcc/lra-constraints.c:3830
0x8aa26e lra_constraints(bool)
../../gcc-7.4.0/gcc/lra-constraints.c:4869
0x899934 lra(_IO_FILE*)
../../gcc-7.4.0/gcc/lra.c:2392
0x857fb1 do_reload
../../gcc-7.4.0/gcc/ira.c:5478
0x857fb1 execute
../../gcc-7.4.0/gcc/ira.c:5662
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
gcc-8 gcc-9 are unaffected.