diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-09-11 17:39:30 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-09-11 17:39:30 -0400 |
commit | e02791a61919e7ce9592b5a45a845892a0ba8913 (patch) | |
tree | 375428dbc07f868075cd89d4da2bba079dc57151 /gcc | |
parent | 31b23f2253bac5776f01e4d6eed8adbde831d9fa (diff) | |
download | gcc-e02791a61919e7ce9592b5a45a845892a0ba8913.tar.gz |
(xcoff_inlining): New variable...
(xcoff_inlining): New variable, used in place of
xcoff_current_include_file when determining whether to use absolute
line numbers.
(xcoffout_source_file): Switched to using xcoff_inlining to determine
when to emit .bi/.ei directives.
From-SVN: r10308
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/xcoffout.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/xcoffout.c b/gcc/xcoffout.c index 84ccd558cbd..bf8775b762a 100644 --- a/gcc/xcoffout.c +++ b/gcc/xcoffout.c @@ -54,6 +54,7 @@ Boston, MA 02111-1307, USA. */ Negative means not in a function or not using xcoff. */ int xcoff_begin_function_line = -1; +int xcoff_inlining = 0; /* Name of the current include file. */ @@ -80,7 +81,7 @@ char *xcoff_lastfile; /* Macro definitions used below. */ #define ABS_OR_RELATIVE_LINENO(LINENO) \ - (xcoff_current_include_file ? (LINENO) : (LINENO) - xcoff_begin_function_line) +((xcoff_inlining) ? (LINENO) : (LINENO) - xcoff_begin_function_line) /* Output source line numbers via ".line" rather than ".stabd". */ #define ASM_OUTPUT_SOURCE_LINE(FILE,LINENUM) \ @@ -327,8 +328,8 @@ xcoffout_source_file (file, filename, inline_p) { if (filename && (xcoff_lastfile == 0 || strcmp (filename, xcoff_lastfile) - || (inline_p && ! xcoff_current_include_file) - || (! inline_p && xcoff_current_include_file))) + || (inline_p && ! xcoff_inlining) + || (! inline_p && xcoff_inlining))) { if (xcoff_current_include_file) { @@ -337,6 +338,7 @@ xcoffout_source_file (file, filename, inline_p) fprintf (file, "\n"); xcoff_current_include_file = NULL; } + xcoff_inlining=inline_p; if (strcmp (main_input_filename, filename) || inline_p) { fprintf (file, "\t.bi\t"); |