[LLVMdev] funny llvm bug

Reed Kotler rkotler at mips.com
Fri Apr 19 14:42:07 PDT 2013


On 04/19/2013 02:34 PM, Rafael EspĂ­ndola wrote:
>> The idea would be to create additional function attributes.
>> I have not spent time thinking this through yet.
>>
>> section_flags("flags")
>> section_type("type")
>> others....
>
> What would the semantic be of having section_flags but no section name?
>
>> so then
>>
>> void x(int i) __attributes__((section("mysection"), section_flags("aw"),
>> section_type("@progbits")) ;
>>
>> or maybe extend the syntax of section
>>
>> section(<name> [<section_flags>] [,<type>])
>
> This avoids the above mentioned problem, so it is probably better.
>
> Cheers,
> Rafael
>
would if be acceptable if this was in quotes:
"<name> [<section_flags>] [,<type>]"

???

So basically parsing this gas code.




More information about the llvm-dev mailing list