https://bugs.llvm.org/show_bug.cgi?id=42242
Bug ID: 42242
Summary: optimization complains invalid symbol redefinition
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangb...@nondot.org
Reporter: zhong...@pku.org.cn
CC: blitzrak...@gmail.com, dgre...@apple.com,
erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
richard-l...@metafoo.co.uk
My clang is 9.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"
);
}
clang accepts the code, but with following parameters:
clang -Os | clang -O3 | clang -O2 | clang++ -Os | clang++ -O3 | clang++ -O2 |
, it rejects the code:
error: invalid symbol redefinition
"rgb2yuv16_422:\n"
^
<inline asm>:1:2: note: instantiated into assembly here
rgb2yuv16_422:
^
1 error generated.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs