[PATCH] [inline-asm] Fix scope of assembly macros

Eric Christopher echristo at gmail.com
Wed Dec 3 10:47:57 PST 2014


>>! In D6383#15, @sdmitrouk wrote:
>> I guess we need this if we want gcc compatibility.
> 
> Not sure if it's just about "gcc compatibility". C standard says:
> ```
> The asm keyword may be used to insert assembly language directly into the translator output.
> ```
> Assuming that there is one "translator output" per translation unit, the statement above
> makes me think that there must be one common scope for all such directives.
> 

This is interesting, how does it work in the presence of LTO? One translator per previous translation unit? One per now linked set of modules?

Anyhow, going to look a bit more.

http://reviews.llvm.org/D6383






More information about the llvm-commits mailing list