A patch to constify gcc.c (Really, summarizing remaining warnings)
Jeffrey A Law
law@hurl.cygnus.com
Fri Mar 19 00:48:00 GMT 1999
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 <zack@rabi.phys.columbia.edu>
>
> * 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
> fputs_unlocked.
> * acconfig.h: Updated.
>
> +# ifdef NEED_DECLARATION_FPUTS_UNLOCKED
> +extern int fputs_unlocked PROTO ((const char *, FILE *));
> #endif
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.
jeff
More information about the Gcc-patches
mailing list