This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Can't preprocess .h file?


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:\
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]