Commit c3fb23f4 by Kaveh R. Ghazi Committed by Kaveh Ghazi

Makefile.in (dbxout.o): Depend on function.h.

	* 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
parent 55710451
2001-11-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 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 * convex.c (convex_output_function_prologue): Fix format specifier
warning. warning.
(asm_declare_function_name): Fix signed/unsigned warning. (asm_declare_function_name): Fix signed/unsigned warning.
......
...@@ -1418,7 +1418,7 @@ optabs.o : optabs.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h \ ...@@ -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 \ insn-config.h $(EXPR_H) $(OPTABS_H) libfuncs.h $(RECOG_H) reload.h \
toplev.h $(GGC_H) real.h $(TM_P_H) except.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 \ 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 insn-config.h reload.h gstab.h xcoffout.h output.h dbxout.h toplev.h
debug.o : debug.c $(CONFIG_H) $(SYSTEM_H) debug.o : debug.c $(CONFIG_H) $(SYSTEM_H)
sdbout.o : sdbout.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(RTL_H) flags.h \ sdbout.o : sdbout.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(RTL_H) flags.h \
......
...@@ -300,7 +300,9 @@ static void scan_libraries PARAMS ((const char *)); ...@@ -300,7 +300,9 @@ static void scan_libraries PARAMS ((const char *));
static int is_in_args PARAMS ((const char *, const char **, const char **)); static int is_in_args PARAMS ((const char *, const char **, const char **));
#endif #endif
#ifdef COLLECT_EXPORT_LIST #ifdef COLLECT_EXPORT_LIST
#if 0
static int is_in_list PARAMS ((const char *, struct id *)); static int is_in_list PARAMS ((const char *, struct id *));
#endif
static void write_aix_file PARAMS ((FILE *, struct id *)); static void write_aix_file PARAMS ((FILE *, struct id *));
static char *resolve_lib_name PARAMS ((const char *)); static char *resolve_lib_name PARAMS ((const char *));
static int ignore_library PARAMS ((const char *)); static int ignore_library PARAMS ((const char *));
...@@ -1754,6 +1756,7 @@ is_in_args (string, args_begin, args_end) ...@@ -1754,6 +1756,7 @@ is_in_args (string, args_begin, args_end)
#ifdef COLLECT_EXPORT_LIST #ifdef COLLECT_EXPORT_LIST
/* This function is really used only on AIX, but may be useful. */ /* This function is really used only on AIX, but may be useful. */
#if 0
static int static int
is_in_list (prefix, list) is_in_list (prefix, list)
const char *prefix; const char *prefix;
...@@ -1767,6 +1770,7 @@ is_in_list (prefix, list) ...@@ -1767,6 +1770,7 @@ is_in_list (prefix, list)
return 0; return 0;
} }
#endif #endif
#endif /* COLLECT_EXPORT_LIST */
/* Added for debugging purpose. */ /* Added for debugging purpose. */
#ifdef COLLECT_EXPORT_LIST #ifdef COLLECT_EXPORT_LIST
......
...@@ -83,6 +83,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA ...@@ -83,6 +83,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "tm_p.h" #include "tm_p.h"
#include "ggc.h" #include "ggc.h"
#include "debug.h" #include "debug.h"
#include "function.h"
#include "target.h" #include "target.h"
#ifdef XCOFF_DEBUGGING_INFO #ifdef XCOFF_DEBUGGING_INFO
...@@ -148,7 +149,9 @@ static int have_used_extensions = 0; ...@@ -148,7 +149,9 @@ static int have_used_extensions = 0;
/* Number for the next N_SOL filename stabs label. The number 0 is reserved /* Number for the next N_SOL filename stabs label. The number 0 is reserved
for the N_SO filename stabs label. */ for the N_SO filename stabs label. */
#if defined (DBX_DEBUGGING_INFO) && !defined (DBX_OUTPUT_SOURCE_FILENAME)
static int source_label_number = 1; static int source_label_number = 1;
#endif
#ifdef DEBUG_SYMS_TEXT #ifdef DEBUG_SYMS_TEXT
#define FORCE_TEXT text_section (); #define FORCE_TEXT text_section ();
...@@ -289,9 +292,6 @@ static void dbxout_init PARAMS ((const char *)); ...@@ -289,9 +292,6 @@ static void dbxout_init PARAMS ((const char *));
static void dbxout_finish PARAMS ((const char *)); static void dbxout_finish PARAMS ((const char *));
static void dbxout_start_source_file PARAMS ((unsigned, const char *)); static void dbxout_start_source_file PARAMS ((unsigned, const char *));
static void dbxout_end_source_file PARAMS ((unsigned)); 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_typedefs PARAMS ((tree));
static void dbxout_type_index PARAMS ((tree)); static void dbxout_type_index PARAMS ((tree));
#if DBX_CONTIN_LENGTH > 0 #if DBX_CONTIN_LENGTH > 0
...@@ -312,12 +312,15 @@ static void dbxout_symbol_name PARAMS ((tree, const char *, int)); ...@@ -312,12 +312,15 @@ static void dbxout_symbol_name PARAMS ((tree, const char *, int));
static void dbxout_prepare_symbol PARAMS ((tree)); static void dbxout_prepare_symbol PARAMS ((tree));
static void dbxout_finish_symbol PARAMS ((tree)); static void dbxout_finish_symbol PARAMS ((tree));
static void dbxout_block PARAMS ((tree, int, tree)); static void dbxout_block PARAMS ((tree, int, tree));
static void dbxout_begin_function PARAMS ((tree));
static void dbxout_global_decl PARAMS ((tree)); static void dbxout_global_decl PARAMS ((tree));
/* The debug hooks structure. */ /* The debug hooks structure. */
#if defined (DBX_DEBUGGING_INFO) #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_begin_block PARAMS ((unsigned, unsigned));
static void dbxout_end_block PARAMS ((unsigned, unsigned)); static void dbxout_end_block PARAMS ((unsigned, unsigned));
static void dbxout_function_decl PARAMS ((tree)); static void dbxout_function_decl PARAMS ((tree));
...@@ -377,6 +380,7 @@ struct gcc_debug_hooks xcoff_debug_hooks = ...@@ -377,6 +380,7 @@ struct gcc_debug_hooks xcoff_debug_hooks =
}; };
#endif /* XCOFF_DEBUGGING_INFO */ #endif /* XCOFF_DEBUGGING_INFO */
#if defined (DBX_DEBUGGING_INFO)
static void static void
dbxout_function_end () dbxout_function_end ()
{ {
...@@ -397,6 +401,7 @@ dbxout_function_end () ...@@ -397,6 +401,7 @@ dbxout_function_end ()
assemble_name (asmfile, XSTR (XEXP (DECL_RTL (current_function_decl), 0), 0)); assemble_name (asmfile, XSTR (XEXP (DECL_RTL (current_function_decl), 0), 0));
fprintf (asmfile, "\n"); fprintf (asmfile, "\n");
} }
#endif /* DBX_DEBUGGING_INFO */
/* At the beginning of compilation, start writing the symbol table. /* At the beginning of compilation, start writing the symbol table.
Initialize `typevec' and output the standard data types of C. */ Initialize `typevec' and output the standard data types of C. */
...@@ -552,6 +557,7 @@ dbxout_end_source_file (line) ...@@ -552,6 +557,7 @@ dbxout_end_source_file (line)
#endif #endif
} }
#if defined (DBX_DEBUGGING_INFO)
/* Output debugging info to FILE to switch to sourcefile FILENAME. */ /* Output debugging info to FILE to switch to sourcefile FILENAME. */
static void static void
...@@ -600,8 +606,6 @@ dbxout_source_line (lineno, filename) ...@@ -600,8 +606,6 @@ dbxout_source_line (lineno, filename)
#endif #endif
} }
#if defined (DBX_DEBUGGING_INFO)
/* Describe the beginning of an internal block within a function. */ /* Describe the beginning of an internal block within a function. */
static void static void
...@@ -2824,6 +2828,7 @@ dbxout_block (block, depth, args) ...@@ -2824,6 +2828,7 @@ dbxout_block (block, depth, args)
Usually this follows the function's code, Usually this follows the function's code,
but on some systems, it comes before. */ but on some systems, it comes before. */
#if defined (DBX_DEBUGGING_INFO)
static void static void
dbxout_begin_function (decl) dbxout_begin_function (decl)
tree decl; tree decl;
...@@ -2833,5 +2838,6 @@ dbxout_begin_function (decl) ...@@ -2833,5 +2838,6 @@ dbxout_begin_function (decl)
if (DECL_NAME (DECL_RESULT (decl)) != 0) if (DECL_NAME (DECL_RESULT (decl)) != 0)
dbxout_symbol (DECL_RESULT (decl), 1); dbxout_symbol (DECL_RESULT (decl), 1);
} }
#endif /* DBX_DEBUGGING_INFO */
#endif /* DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO */ #endif /* DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO */
...@@ -97,6 +97,7 @@ extern int getrusage PARAMS ((int, struct rusage *)); ...@@ -97,6 +97,7 @@ extern int getrusage PARAMS ((int, struct rusage *));
#if defined(TARGET_EXECUTABLE_SUFFIX) && defined(HOST_EXECUTABLE_SUFFIX) #if defined(TARGET_EXECUTABLE_SUFFIX) && defined(HOST_EXECUTABLE_SUFFIX)
#define HAVE_TARGET_EXECUTABLE_SUFFIX #define HAVE_TARGET_EXECUTABLE_SUFFIX
#else #else
#undef TARGET_EXECUTABLE_SUFFIX
#define TARGET_EXECUTABLE_SUFFIX "" #define TARGET_EXECUTABLE_SUFFIX ""
#endif #endif
......
...@@ -190,6 +190,10 @@ extern void init_section PARAMS ((void)); ...@@ -190,6 +190,10 @@ extern void init_section PARAMS ((void));
extern void fini_section PARAMS ((void)); extern void fini_section PARAMS ((void));
#endif #endif
#ifdef EXPORTS_SECTION_ASM_OP
extern void exports_section PARAMS ((void));
#endif
#ifdef TDESC_SECTION_ASM_OP #ifdef TDESC_SECTION_ASM_OP
extern void tdesc_section PARAMS ((void)); extern void tdesc_section PARAMS ((void));
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment