aboutsummaryrefslogtreecommitdiff
path: root/contrib/gcc/xcoffout.h
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>1999-08-26 09:30:50 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>1999-08-26 09:30:50 +0000
commit2a266d02ba4304af542da2cc521ecc0edc1c9706 (patch)
tree68d8110b41afd0ebbf39167b1a4918eea667a7c5 /contrib/gcc/xcoffout.h
parent3b82b5b7f77cb6aa00fbc3f7e544459b1213e88b (diff)
downloadsrc-2a266d02ba4304af542da2cc521ecc0edc1c9706.tar.gz
src-2a266d02ba4304af542da2cc521ecc0edc1c9706.zip
Virgin import of gcc from EGCS 1.1.2
Notes
Notes: svn path=/vendor/gcc/dist/; revision=50397
Diffstat (limited to 'contrib/gcc/xcoffout.h')
-rw-r--r--contrib/gcc/xcoffout.h48
1 files changed, 30 insertions, 18 deletions
diff --git a/contrib/gcc/xcoffout.h b/contrib/gcc/xcoffout.h
index 432a5de9f748..2781a7903249 100644
--- a/contrib/gcc/xcoffout.h
+++ b/contrib/gcc/xcoffout.h
@@ -58,8 +58,8 @@
#define DBX_STATIC_BLOCK_END(ASMFILE,CODE) \
{ \
- if (current_sym_code == N_STSYM || current_sym_code == N_LCSYM) \
- fprintf (asmfile, "\t.es\n"); \
+ if ((CODE) == N_STSYM || (CODE) == N_LCSYM) \
+ fputs ("\t.es\n", (ASMFILE)); \
}
/* We must use N_RPYSM instead of N_RSYM for register parameters. */
@@ -115,22 +115,10 @@
#define N_RPSYM 0x8e
#endif
-/* The line number of the beginning of the current function.
- xcoffout.c needs this so that it can output relative linenumbers. */
-
-extern int xcoff_begin_function_line;
-
/* Name of the current include file. */
extern char *xcoff_current_include_file;
-/* Name of the current function file. This is the file the `.bf' is
- emitted from. In case a line is emitted from a different file,
- (by including that file of course), then the line number will be
- absolute. */
-
-extern char *xcoff_current_function_file;
-
/* Names of bss and data sections. These should be unique names for each
compilation unit. */
@@ -151,16 +139,16 @@ extern char *xcoff_lastfile;
is already emitting a .file directory, so we don't output one here also.
Initialize xcoff_lastfile. */
#define DBX_OUTPUT_MAIN_SOURCE_FILENAME(FILE,FILENAME) \
- xcoff_lastfile = input_file_name
+ xcoff_lastfile = (FILENAME)
/* If we are still in an include file, its end must be marked. */
#define DBX_OUTPUT_MAIN_SOURCE_FILE_END(FILE, FILENAME) \
{ \
if (xcoff_current_include_file) \
{ \
- fprintf (FILE, "\t.ei\t"); \
- output_quoted_string (FILE, xcoff_current_include_file); \
- fprintf (FILE, "\n"); \
+ fputs ("\t.ei\t", (FILE)); \
+ output_quoted_string ((FILE), xcoff_current_include_file); \
+ putc ('\n', (FILE)); \
xcoff_current_include_file = NULL; \
} \
}
@@ -178,3 +166,27 @@ extern char *xcoff_lastfile;
can't find them. */
#define DEBUG_SYMS_TEXT
+
+/* Prototype functions in xcoffout.c. */
+
+extern int stab_to_sclass PROTO ((int));
+#ifdef BUFSIZ
+extern void xcoffout_begin_function PROTO ((FILE *, int));
+extern void xcoffout_begin_block PROTO ((FILE *, int, int));
+extern void xcoffout_end_epilogue PROTO ((FILE *));
+extern void xcoffout_end_function PROTO ((FILE *, int));
+extern void xcoffout_end_block PROTO ((FILE *, int, int));
+#endif /* BUFSIZ */
+
+#ifdef TREE_CODE
+extern void xcoff_output_standard_types PROTO ((tree));
+#ifdef BUFSIZ
+extern void xcoffout_declare_function PROTO ((FILE *, tree, char *));
+#endif /* BUFSIZ */
+#endif /* TREE_CODE */
+
+#ifdef RTX_CODE
+#ifdef BUFSIZ
+extern void xcoffout_source_line PROTO ((FILE *, char *, rtx));
+#endif /* BUFSIZ */
+#endif /* RTX_CODE */