This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: egcs, PATCH to fix warnings in gperf generated files ...
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: egcs, PATCH to fix warnings in gperf generated files ...
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Fri, 02 Oct 1998 00:55:22 -0600
- cc: egcs-patches at cygnus dot com
- Reply-To: law at cygnus dot com
In message <199810020330.XAA07911@caip.rutgers.edu>you write:
> Here is my stab at cleaning up warnings in the gperf generated
> files in gcc/, gcc/cp, and gcc/ch. There are mainly two types of
> warnings coming from these headers:
>
> > c-gperf.h:43: warning: array subscript has type `char'
>
> and:
>
> > c-gperf.h:54: warning: missing initializer for `wordlist[0].token'
>
>
> Since these are generated files, I decided to fix these during
> generation in the Makefiles by passing the output from gperf through sed
> to add the appropriate anti-warning fixes.
>
> (Jeff, I recall you don't like different directory ChangeLogs merged
> like this. But each was a two-liner so I thought it would be okay to
> include them all in this one message.)
>
> The end result is 268 less warnings. :-) Okay to install?
Wouldn't it make more sense to fix the parser input and possibly gperf itself?
jeff