This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Can't preprocess .h file?
- To: zack at wolery dot cumb dot org (Zack Weinberg)
- Subject: Re: Can't preprocess .h file?
- From: Brad Lucier <lucier at math dot purdue dot edu>
- Date: Tue, 18 Jul 2000 13:30:24 -0500 (EST)
- Cc: lucier at math dot purdue dot edu (Brad Lucier), gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
OK, this bootstraps and passes make check on alphaev6-unknown-linux-gnu.
Brad
>
> 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:\
>