This is the mail archive of the
mailing list for the GCC project.
Re: A patch to constify gcc.c (Really, summarizing remaining warnings)
- To: Zack Weinberg <zack at rabi dot columbia dot edu>
- Subject: Re: A patch to constify gcc.c (Really, summarizing remaining warnings)
- From: Jeffrey A Law <law at hurl dot cygnus dot com>
- Date: Fri, 19 Mar 1999 01:47:57 -0700
- cc: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>, egcs-patches at cygnus dot com
- Reply-To: law at cygnus dot com
In message <199903111725.MAA08997@blastula.phys.columbia.edu>you write:
> For the *_unlocked functions, what do you think of this patch (which I
> am testing as we speak)?
> 1999-03-11 12:23 -0500 Zack Weinberg <email@example.com>
> * system.h: Use putc_unlocked, fputc_unlocked, and
> fputs_unlocked only if putc_unlocked has a prototype already.
> Prototype fputs_unlocked if necessary.
> * configure.in: Check for prototypes of putc_unlocked and
> * acconfig.h: Updated.
> +# ifdef NEED_DECLARATION_FPUTS_UNLOCKED
> +extern int fputs_unlocked PROTO ((const char *, FILE *));
You're missing an #endif here.
The comment should more clearly indicate what NEED_DECLARATION_PUTC_UNLOCKED
actually means since it is non-obvious.
The patch fixed the problem on my linux box and hpux10.20 boxes.
Considering your system is dead, I went ahead and made those changes and
installed the patch.