https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90853
Bug ID: 90853
Summary: -O3 complains already defined symbol
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: zhonghao at pku dot org.cn
Target Milestone: ---
My gcc is 10.0.0, and the code is:
void x();
void rgb2yuv16bit_mmx422_row();
void x()
{
rgb2yuv16bit_mmx422_row();
}
void rgb2yuv16bit_mmx422_row()
{
__asm__ __volatile__ (
"rgb2yuv16_422:\n"
);
}
gcc accepts the code, but with -O3, it rejects it:
x.cpp: Assembler messages:
x.cpp:13: Error: symbol `rgb2yuv16_422' is already defined