[LLVMdev] funny llvm bug
reed kotler
rkotler at mips.com
Thu Apr 18 18:57:29 PDT 2013
I'm going to file this bug but it's kind of a blocker for me so maybe
someone has time
to look at it. Should be nearly trivial to fix.
It's a bug in the way the "section" attribute of functions is processed.
Consider the following code:
void x(int i) __attribute((section(".mySection,\"aw\", at progbits#")));
void x(int i) {
}
If you compile this with gcc you get:
.file "sectbug.c"
.section .mySection,"aw", at progbits#,"ax", at progbits
.globl x
With Clang you get
.file "sectbug.c"
.section ".mySection,\"aw\", at progbits#","ax", at progbits
.globl x
It needs to unquote the string.
More information about the llvm-dev
mailing list