[Bug target/65803] New: blackfin: internal compiler error: segment fault linux kernel
gang.chen.5i5j at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sat Apr 18 23:04:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65803
Bug ID: 65803
Summary: blackfin: internal compiler error: segment fault linux
kernel
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: gang.chen.5i5j at gmail dot com
The code:
[root@localhost gcc]# cat lbalance.i
struct a {
short count;
};
struct reiserfs_de_head {
unsigned short deh_location;
} __attribute__ ((__packed__));
void leaf_cut_from_buffer(struct a *ih, int from)
{
struct reiserfs_de_head *deh = (struct reiserfs_de_head *)ih;
int i;
for (i = ih->count - 1; i > from; i--)
deh[i].deh_location--;
for (i = 0; i < from; i++)
deh[i].deh_location--;
}
The error:
[root@localhost gcc]# /upstream/build-gcc-blackfin/gcc/cc1 lbalance.i -Os
-fno-strict-overflow
lbalance.i: In function 'leaf_cut_from_buffer':
lbalance.i:19:1: internal compiler error: Segmentation fault
}
^
0xa54a9f crash_signal
../../gcc-blackfin/gcc/toplev.c:383
0x77af8b INSN_UID
../../gcc-blackfin/gcc/rtl.h:1329
0x77af8b insn_current_reference_address(rtx_insn*)
../../gcc-blackfin/gcc/final.c:686 0xd39604
insn_current_length(rtx_insn*)
/upstream/build-gcc-blackfin/gcc/insn-attrtab.c:84
0x77c12e shorten_branches(rtx_insn*)
../../gcc-blackfin/gcc/final.c:1478
0x77c51f rest_of_handle_shorten_branches
../../gcc-blackfin/gcc/final.c:4580
0x77c51f execute
../../gcc-blackfin/gcc/final.c:4609
Please submit a full bug report,
The version:
[root@localhost gcc]# /upstream/release-blackfin/bin/bfin-gchen-elf-gcc -v
Using built-in specs.
COLLECT_GCC=/upstream/release-blackfin/bin/bfin-gchen-elf-gcc
COLLECT_LTO_WRAPPER=/upstream/release-blackfin/libexec/gcc/bfin-gchen-elf/5.0.0/lto-wrapper
Target: bfin-gchen-elf
Configured with: ../gcc-blackfin/configure --target=bfin-gchen-elf
--disable-nls --disable-threads --disable-shared --disable-libssp
--disable-libquadmath --disable-libgomp --disable-libatomic
--prefix=/upstream/release-blackfin --without-headers
target_alias=bfin-gchen-elf --enable-languages=c,lto
Thread model: single
gcc version 5.0.0 20150401 (experimental) (GCC)
More information about the Gcc-bugs
mailing list