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: Patch to add __builtin_printf -> fputs transformations


"Joseph S. Myers" wrote:
> 
> On Tue, 19 Sep 2000, Bruce Korb wrote:
> 
> > In fact, it is probably necessary to verify
> > that  fixincludes cannot wrap the thing.  Yuck.
> 
> There are several glibc headers like this.
> 
> <errno.h> follows __need_Emath.
> <getopt.h> follows __need_getopt.
> <signal.h> follows __need_sig_atomic_t and __need_sigset_t.
> <stdio.h> follows __need_FILE and __need___FILE.
> <stdlib.h> follows __need_malloc_and_calloc.
> <time.h> follows __need_time_t, __need_clock_t, __need_timespec,
> __need_clockid_t and __need_timer_t.
> <wchar.h> follows __need_mbstate_t.
> <wctype.h> follows __need_iswxxx.

Would it be safe to assume that they all have a match for:

  "^#if.*__need_"

That would make the fixinc hackery a little more straight forward.

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