PARAMS into gcc/frame.h for HP-UX bundled compiler

Brown, Rodney rodneybrown@pmsc.com
Fri Jan 7 14:14:00 GMT 2000


Title: PARAMS into gcc/frame.h for HP-UX bundled compiler





The bundled compiler on HP-UX 10.20, 11 or the unbundled ANSI compiler with -Ac
give "error 1705: Function prototypes are an ANSI feature." when ANSI
prototypes are found.
gcc/dwarf2out.c includes gcc/frame.h which has unwrapped prototypes.


--- gcc/frame.h.orig    Tue Jan  4 08:43:53 2000
+++ gcc/frame.h Fri Jan  7 11:06:18 2000
@@ -63,27 +63,27 @@
    references to these functions may be made weak in files where they
    are referenced.  */
 
-extern void __register_frame (void * );
-extern void __register_frame_table (void *);
-extern void __deregister_frame (void *);
+extern void __register_frame PARAMS ((void * ));
+extern void __register_frame_table PARAMS ((void *));
+extern void __deregister_frame PARAMS ((void *));
 
 /* Called either from crtbegin.o or a static constructor to register the
    unwind info for an object or translation unit, respectively.  */
 
-extern void __register_frame_info (void *, struct object *);
+extern void __register_frame_info PARAMS ((void *, struct object *));
 
 /* Similar, but BEGIN is actually a pointer to a table of unwind entries
    for different translation units.  Called from the file generated by
    collect2.  */
-extern void __register_frame_info_table (void *, struct object *);
+extern void __register_frame_info_table PARAMS ((void *, struct object *));
 
 /* Called from crtend.o to deregister the unwind info for an object.  */
 
-extern void *__deregister_frame_info (void *);
+extern void *__deregister_frame_info PARAMS ((void *));
 
 /* Called from __throw to find the registers to restore for a given
    PC_TARGET.  The caller should allocate a local variable of `struct
    frame_state' (declared in frame.h) and pass its address to STATE_IN.
    Returns NULL on failure, otherwise returns STATE_IN.  */
 
-extern struct frame_state *__frame_state_for (void *, struct frame_state *);
+extern struct frame_state *__frame_state_for PARAMS ((void *, struct frame_state *));






More information about the Gcc-patches mailing list