This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
A prototype patch for dwarfout.c
- To: egcs-patches at cygnus dot com
- Subject: A prototype patch for dwarfout.c
- From: hjl at lucon dot org (H.J. Lu)
- Date: Fri, 19 Jun 1998 19:29:36 -0700 (PDT)
Here is a prototype patch for dwarfout.c.
--
H.J. Lu (hjl@gnu.org)
---
Fri Jun 19 18:42:05 1998 H.J. Lu (hjl@gnu.org)
* dwarfout.c (getpwd): Add prototype.
(is_pseudo_reg, type_main_variant, is_tagged_type,
is_redundant_typedef): New declaration.
(output_decl): Add prototype for FUNC.
(type_main_variant): Make it static.
(is_tagged_type): Likewise.
(is_redundant_typedef): Likewise.
Index: dwarfout.c
===================================================================
RCS file: /home/work/cvs/gnu/egcs/gcc/dwarfout.c,v
retrieving revision 1.1.1.16
diff -u -p -r1.1.1.16 dwarfout.c
--- dwarfout.c 1998/05/25 00:16:19 1.1.1.16
+++ dwarfout.c 1998/05/25 00:21:09
@@ -50,7 +50,7 @@ extern time_t time PROTO ((time_t *)); /
# define assert(e) do { if (! (e)) abort (); } while (0)
#endif
-extern char *getpwd ();
+extern char *getpwd PROTO((void));
/* IMPORTANT NOTE: Please see the file README.DWARF for important details
regarding the GNU implementation of Dwarf. */
@@ -433,6 +433,10 @@ static void generate_new_sfname_entry PR
static unsigned lookup_filename PROTO((char *));
static void generate_srcinfo_entry PROTO((unsigned, unsigned));
static void generate_macinfo_entry PROTO((char *, char *));
+static int is_pseudo_reg PROTO((rtx));
+static tree type_main_variant PROTO((tree));
+static int is_tagged_type PROTO((tree));
+static int is_redundant_typedef PROTO((tree));
/* Definitions of defaults for assembler-dependent names of various
pseudo-ops and section names.
@@ -860,7 +864,7 @@ static void generate_macinfo_entry PROTO
/************************ general utility functions **************************/
-inline int
+inline static int
is_pseudo_reg (rtl)
register rtx rtl;
{
@@ -869,7 +873,7 @@ is_pseudo_reg (rtl)
&& (REGNO (XEXP (rtl, 0)) >= FIRST_PSEUDO_REGISTER)));
}
-inline tree
+inline static tree
type_main_variant (type)
register tree type;
{
@@ -891,7 +895,7 @@ type_main_variant (type)
/* Return non-zero if the given type node represents a tagged type. */
-inline int
+inline static int
is_tagged_type (type)
register tree type;
{
@@ -4656,7 +4660,7 @@ output_decls_for_scope (stmt, depth)
/* Is this a typedef we can avoid emitting? */
-inline int
+inline static int
is_redundant_typedef (decl)
register tree decl;
{
@@ -4997,7 +5001,7 @@ output_decl (decl, containing_scope)
function. */
{
- register void (*func) ();
+ register void (*func) PROTO((void *));
register tree origin = decl_ultimate_origin (decl);
if (origin != NULL && TREE_CODE (origin) == PARM_DECL)