[klibc] [PATCH]: klcc typo recognizing .S files

Milton Miller miltonm at bga.com
Mon Jul 3 04:58:09 PDT 2006


Trying to use klcc to compile an application I was getting
gcc: no input files.  Tracked it down to filename2lang having
and extra space, causing .S files to be labeled "obj".

Signed-off-by: Milton Miller <miltonm at bga.com>
---

There is probably another bug that we called gcc without any
files when we were called with what we parsed as an obj file.

--- klibc-1.4.orig/klcc/klcc.in	2006-07-03 07:40:43.000000000 -0400
+++ klibc-1.4/klcc/klcc.in	2006-07-03 07:41:16.000000000 -0400
@@ -40,7 +40,7 @@ sub filename2lang($) {
      return 'ada' if ( $file =~ /\.(ads|adb)$/ );

      return 'assembler' if ( $file =~ /\.s$/ );
-    return 'assembler-with-cpp' if ( $file =~/ \.S$/ );
+    return 'assembler-with-cpp' if ( $file =~/\.S$/ );

      # Linker file; there is no option to gcc to assume something
      # is a linker file, so we make up our own...



More information about the klibc mailing list