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

Roman Divacky rdivacky at freebsd.org
Tue Oct 28 06:57:33 PDT 2008

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:

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



More information about the cfe-dev mailing list