This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Can't preprocess .h file?
- To: Brad Lucier <lucier at math dot purdue dot edu>
- Subject: Re: Can't preprocess .h file?
- From: Zack Weinberg <zack at wolery dot cumb dot org>
- Date: Mon, 17 Jul 2000 20:23:59 -0700
- Cc: gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- References: <200007180246.VAA21020@polya.math.purdue.edu>
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:\