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

Chris Lattner clattner at apple.com
Tue Oct 28 13:33:51 PDT 2008


On Oct 28, 2008, at 6:57 AM, Roman Divacky wrote:

> On Wed, Oct 22, 2008 at 12:38:04PM +0200, 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?
>
> I got confused by freebsd strange nomenclature and I made a mistake,
> please commit this:

Yep, you're right, applied!

-chris

>
>
> Index: Driver/clang.cpp
> ===================================================================
> --- Driver/clang.cpp	(revision 58321)
> +++ Driver/clang.cpp	(working copy)
> @@ -300,7 +300,7 @@
>   // assembler: .S
>   if (Ext == "c")
>     return langkind_c;
> -  else if (Ext == "S" || Ext == "s")
> +  else if (Ext == "S")
>     return langkind_asm_cpp;
>   else if (Ext == "i")
>     return langkind_c_cpp;
>
> the asm_cpp is only applied to .S files not .s
>
> thnx
>
> roman
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list