summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog9
-rw-r--r--gcc/Makefile.in2
-rw-r--r--gcc/collect2.c4
-rw-r--r--gcc/dbxout.c18
-rw-r--r--gcc/gcc.c1
-rw-r--r--gcc/output.h4
6 files changed, 31 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f1bd7474fc4..33dc5abeaea 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,14 @@
2001-11-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+ * Makefile.in (dbxout.o): Depend on function.h.
+ * collect2.c (is_in_list): Hide unused function.
+ * dbxout.c: Include function.h.
+ (source_label_number, dbxout_source_line, dbxout_source_file,
+ dbxout_function_end, dbxout_begin_function): Wrap/move inside
+ macros controlling usage.
+ * gcc.c (TARGET_EXECUTABLE_SUFFIX): Undef before defining.
+ * output.h (exports_section): Prototype.
+
* convex.c (convex_output_function_prologue): Fix format specifier
warning.
(asm_declare_function_name): Fix signed/unsigned warning.
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index e03803e0d19..34433f1501c 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -1418,7 +1418,7 @@ optabs.o : optabs.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h \
insn-config.h $(EXPR_H) $(OPTABS_H) libfuncs.h $(RECOG_H) reload.h \
toplev.h $(GGC_H) real.h $(TM_P_H) except.h
dbxout.o : dbxout.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(RTL_H) flags.h \
- $(REGS_H) debug.h $(TM_P_H) $(TARGET_H) \
+ $(REGS_H) debug.h $(TM_P_H) $(TARGET_H) function.h \
insn-config.h reload.h gstab.h xcoffout.h output.h dbxout.h toplev.h
debug.o : debug.c $(CONFIG_H) $(SYSTEM_H)
sdbout.o : sdbout.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(RTL_H) flags.h \
diff --git a/gcc/collect2.c b/gcc/collect2.c
index 1bd8a45811b..5821dd13f6a 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -300,7 +300,9 @@ static void scan_libraries PARAMS ((const char *));
static int is_in_args PARAMS ((const char *, const char **, const char **));
#endif
#ifdef COLLECT_EXPORT_LIST
+#if 0
static int is_in_list PARAMS ((const char *, struct id *));
+#endif
static void write_aix_file PARAMS ((FILE *, struct id *));
static char *resolve_lib_name PARAMS ((const char *));
static int ignore_library PARAMS ((const char *));
@@ -1754,6 +1756,7 @@ is_in_args (string, args_begin, args_end)
#ifdef COLLECT_EXPORT_LIST
/* This function is really used only on AIX, but may be useful. */
+#if 0
static int
is_in_list (prefix, list)
const char *prefix;
@@ -1767,6 +1770,7 @@ is_in_list (prefix, list)
return 0;
}
#endif
+#endif /* COLLECT_EXPORT_LIST */
/* Added for debugging purpose. */
#ifdef COLLECT_EXPORT_LIST
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index f280bc83497..0a1ced61e05 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -83,6 +83,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "tm_p.h"
#include "ggc.h"
#include "debug.h"
+#include "function.h"
#include "target.h"
#ifdef XCOFF_DEBUGGING_INFO
@@ -148,7 +149,9 @@ static int have_used_extensions = 0;
/* Number for the next N_SOL filename stabs label. The number 0 is reserved
for the N_SO filename stabs label. */
+#if defined (DBX_DEBUGGING_INFO) && !defined (DBX_OUTPUT_SOURCE_FILENAME)
static int source_label_number = 1;
+#endif
#ifdef DEBUG_SYMS_TEXT
#define FORCE_TEXT text_section ();
@@ -289,9 +292,6 @@ static void dbxout_init PARAMS ((const char *));
static void dbxout_finish PARAMS ((const char *));
static void dbxout_start_source_file PARAMS ((unsigned, const char *));
static void dbxout_end_source_file PARAMS ((unsigned));
-static void dbxout_source_line PARAMS ((unsigned int, const char *));
-static void dbxout_source_file PARAMS ((FILE *, const char *));
-static void dbxout_function_end PARAMS ((void));
static void dbxout_typedefs PARAMS ((tree));
static void dbxout_type_index PARAMS ((tree));
#if DBX_CONTIN_LENGTH > 0
@@ -312,12 +312,15 @@ static void dbxout_symbol_name PARAMS ((tree, const char *, int));
static void dbxout_prepare_symbol PARAMS ((tree));
static void dbxout_finish_symbol PARAMS ((tree));
static void dbxout_block PARAMS ((tree, int, tree));
-static void dbxout_begin_function PARAMS ((tree));
static void dbxout_global_decl PARAMS ((tree));
/* The debug hooks structure. */
#if defined (DBX_DEBUGGING_INFO)
+static void dbxout_source_line PARAMS ((unsigned int, const char *));
+static void dbxout_source_file PARAMS ((FILE *, const char *));
+static void dbxout_function_end PARAMS ((void));
+static void dbxout_begin_function PARAMS ((tree));
static void dbxout_begin_block PARAMS ((unsigned, unsigned));
static void dbxout_end_block PARAMS ((unsigned, unsigned));
static void dbxout_function_decl PARAMS ((tree));
@@ -377,6 +380,7 @@ struct gcc_debug_hooks xcoff_debug_hooks =
};
#endif /* XCOFF_DEBUGGING_INFO */
+#if defined (DBX_DEBUGGING_INFO)
static void
dbxout_function_end ()
{
@@ -397,6 +401,7 @@ dbxout_function_end ()
assemble_name (asmfile, XSTR (XEXP (DECL_RTL (current_function_decl), 0), 0));
fprintf (asmfile, "\n");
}
+#endif /* DBX_DEBUGGING_INFO */
/* At the beginning of compilation, start writing the symbol table.
Initialize `typevec' and output the standard data types of C. */
@@ -552,6 +557,7 @@ dbxout_end_source_file (line)
#endif
}
+#if defined (DBX_DEBUGGING_INFO)
/* Output debugging info to FILE to switch to sourcefile FILENAME. */
static void
@@ -600,8 +606,6 @@ dbxout_source_line (lineno, filename)
#endif
}
-#if defined (DBX_DEBUGGING_INFO)
-
/* Describe the beginning of an internal block within a function. */
static void
@@ -2824,6 +2828,7 @@ dbxout_block (block, depth, args)
Usually this follows the function's code,
but on some systems, it comes before. */
+#if defined (DBX_DEBUGGING_INFO)
static void
dbxout_begin_function (decl)
tree decl;
@@ -2833,5 +2838,6 @@ dbxout_begin_function (decl)
if (DECL_NAME (DECL_RESULT (decl)) != 0)
dbxout_symbol (DECL_RESULT (decl), 1);
}
+#endif /* DBX_DEBUGGING_INFO */
#endif /* DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO */
diff --git a/gcc/gcc.c b/gcc/gcc.c
index c6bd8ed56a9..2ae9706eaf2 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -97,6 +97,7 @@ extern int getrusage PARAMS ((int, struct rusage *));
#if defined(TARGET_EXECUTABLE_SUFFIX) && defined(HOST_EXECUTABLE_SUFFIX)
#define HAVE_TARGET_EXECUTABLE_SUFFIX
#else
+#undef TARGET_EXECUTABLE_SUFFIX
#define TARGET_EXECUTABLE_SUFFIX ""
#endif
diff --git a/gcc/output.h b/gcc/output.h
index 3923325fa4e..dc2a6983d35 100644
--- a/gcc/output.h
+++ b/gcc/output.h
@@ -190,6 +190,10 @@ extern void init_section PARAMS ((void));
extern void fini_section PARAMS ((void));
#endif
+#ifdef EXPORTS_SECTION_ASM_OP
+extern void exports_section PARAMS ((void));
+#endif
+
#ifdef TDESC_SECTION_ASM_OP
extern void tdesc_section PARAMS ((void));
#endif
OpenPOWER on IntegriCloud