[cfe-dev] [PATCH]: adding of -x assembler-with-cpp

Chris Lattner clattner at apple.com
Wed Oct 22 10:31:22 PDT 2008


On Oct 22, 2008, at 3:38 AM, Roman Divacky wrote:

> hi
>
> I need ccc -x assembler-with-cpp so I got to implement it. I am
> not sure if this is correct but it seems to work... what do you
> think about it?

Looks like a great first step, applied, thanks!:
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20081020/008416.html

Please note that the preprocessor in .S mode is supposed to behave  
slightly differently than it does on .c files.  There are some fixme's  
in the preprocessor that mention some cases where this is, but they  
obviously haven't been implemented.  If you're interested in tackling  
these, the right place to start is to add a bit to LangOptions to  
indicate that the preprocessor should be have in assembler mode, then  
update the PP to check this where needed.

-Chris



More information about the cfe-dev mailing list