https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66920
Bug ID: 66920
Summary: ICE in expand_debug_locations, at cfgexpand.c:3826
Product: gcc
Version: 4.8.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: [email protected]
Target Milestone: ---
Compile with -xc++ -w -m32 -gdwarf-4 -mno-sse -O1 test.cpp
test.cpp: In function 'bool test_sp(Desc*, data*)':
test.cpp:29:1: internal compiler error: in expand_debug_locations, at
cfgexpand.c:3826
test_sp(Desc *pDesc, data *info) {
typedef long int64_t;
typedef int UINT32;
typedef short len;
struct header;
typedef UINT32 number;
struct Desc {
short length;
};
typedef int64_t v2di __attribute__((vector_size(16)));
int table;
struct data;
void __attribute__((__always_inline__))
counter_inc(struct counter *, long, long) {
v2di v2di{};
}
bool ing_build_qhdr_and_output(Desc *pDesc,
data *, header *,
number, number, bool,
len, len,
len) {
counter_inc((counter *)table, 1,
pDesc->length);
}
bool __attribute__((target("sse4.2")))
test_sp(Desc *pDesc, data *info) {
number dest, queue_stat_addr, plen_length;
UINT32 offset;
UINT32 extra_header_size;
header *sw_hdr;
return ing_build_qhdr_and_output(pDesc, info, sw_hdr, dest,
queue_stat_addr, 2, offset,
extra_header_size, plen_length);
}