Makefile.in (dbxout.o): Depend on function.h.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sun, 4 Nov 2001 02:47:36 +0000 (02:47 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sun, 4 Nov 2001 02:47:36 +0000 (02:47 +0000)
* 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.

From-SVN: r46759

gcc/ChangeLog
gcc/Makefile.in
gcc/collect2.c
gcc/dbxout.c
gcc/gcc.c
gcc/output.h

index f1bd7474fc42ebe0ef235ff647cec54e1b97c371..33dc5abeaea532f858451e48088270260b65ac64 100644 (file)
@@ -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.
index e03803e0d1978c93c5802e95f606d7388dbdb973..34433f1501c90bdc169a3a27cfad34f6f7e677f2 100644 (file)
@@ -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 \
index 1bd8a45811bdc1e29c18d76640c1a9f96e6d8033..5821dd13f6aa0a2a77178bcac1918acec573bd27 100644 (file)
@@ -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
index f280bc834970e7a2dbf1c47eda9ecb88bc69b64a..0a1ced61e0584c9f448cd6c8bf2190953c70e300 100644 (file)
@@ -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));
 \f
 /* 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  */
 \f
+#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 */
index c6bd8ed56a9afacfde72ceb3ddaafafc994baa2f..2ae9706eaf257c402c06b9ef0d0f193f3c73a0bd 100644 (file)
--- 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
 
index 3923325fa4e04520b6e425cee34a752ad3261c1d..dc2a6983d35e0d9cdbf36b7b276e6429cb40fa1b 100644 (file)
@@ -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