This is the mail archive of the gcc-bugs@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]

broken prototypes in gcc/toplev.c for HP


Hello there,

Two of the prototypes in gcc/toplev.c, around line 2000 or so, are
not quite correct for a K&R C compiler.

/* Routine to close a dump file.  */
static void
close_dump_file (func, insns)
     void (*func)PVPROTO(( FILE *, rtx));	/* CHANGE HERE */
     rtx    insns;
{

and

/* Routine to dump rtl into a file.  */
static void
dump_rtl (suffix, decl, func, insns)
     char *suffix;
     tree   decl;
     void (*func)PVPROTO((FILE *, rtx));	/* CHANGE HERE */
     rtx    insns;
{

HP 10.20 ships a standard with a K&R compiler which does not understand -g
or -O, much less ISO C prototypes.

Regards

David C Binderman MSc BSc (Hons)   +44 171 971 8765   davidb@msi-uk.com
contracting at Mobile Systems International in the Docklands, London, England



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