Can't preprocess .h file?
Zack Weinberg
zack@wolery.cumb.org
Mon Jul 17 20:24:00 GMT 2000
On Mon, Jul 17, 2000 at 09:46:06PM -0500, Brad Lucier wrote:
> With this version of the compiler:
>
> then 'gcc -E test.c' works fine, but renaming the file to test.h
> and trying 'gcc -E test.h' causes gcc to hang. Is this intended?
No, that's your classic catastrophic typo. Please try this patch. It
Works For Me and I'll be committing it once it passes a bootstrap.
zw
* gcc.c (.h spec): Fix typo.
===================================================================
Index: gcc.c
--- gcc.c 2000/07/13 07:14:11 1.153
+++ gcc.c 2000/07/18 03:22:45
@@ -705,7 +705,7 @@ static struct compiler default_compilers
{".h", "@c-header"},
{"@c-header",
"%{!E:%eCompilation of header file requested} \
- %(trad_capable_cpp) -lang-c %{ansi:-std=c89} %(cpp-options)"},
+ %(trad_capable_cpp) -lang-c %{ansi:-std=c89} %(cpp_options)"},
{".i", "@cpp-output"},
{"@cpp-output",
"%{!M:%{!MM:%{!E:\
More information about the Gcc-bugs
mailing list