[llvm-bugs] [Bug 42242] New: optimization complains invalid symbol redefinition
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jun 11 19:05:28 PDT 2019
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: unassignedclangbugs at nondot.org
Reporter: zhonghao at pku.org.cn
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190612/98a4088f/attachment-0001.html>
More information about the llvm-bugs
mailing list