aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJeff Law <law@gcc.gnu.org>1998-06-19 16:35:25 -0600
committerJeff Law <law@gcc.gnu.org>1998-06-19 16:35:25 -0600
commit24e75411051c3f388638d4cedf5b53ae36b5020e (patch)
tree4e45be3fa78a5d0c7c7c2356e6166e009ecf635a /gcc
parent90bf9bc4b9df1478c97124cf1505cbe8c02815f0 (diff)
downloadgcc-24e75411051c3f388638d4cedf5b53ae36b5020e.zip
gcc-24e75411051c3f388638d4cedf5b53ae36b5020e.tar.gz
gcc-24e75411051c3f388638d4cedf5b53ae36b5020e.tar.bz2
dwarfout.c (getpwd): Add prototype.
d * 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. From-SVN: r20618
Diffstat (limited to 'gcc')
-rw-r--r--gcc/dwarfout.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/gcc/dwarfout.c b/gcc/dwarfout.c
index c4bfc63..80475c6 100644
--- a/gcc/dwarfout.c
+++ b/gcc/dwarfout.c
@@ -50,7 +50,7 @@ extern time_t time PROTO ((time_t *)); /* FIXME: use NEED_DECLARATION_TIME */
# 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 PROTO((void));
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((char *, char *));
/************************ 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)