aboutsummaryrefslogtreecommitdiff
path: root/gcc/integrate.c
diff options
context:
space:
mode:
authorTom Wood <wood@gnu.org>1992-12-08 13:34:34 +0000
committerTom Wood <wood@gnu.org>1992-12-08 13:34:34 +0000
commit1d7a9c94f2c102ad4da9cafaf440a9b7ee071cf4 (patch)
tree778ee947e5d902f2d1335cefaf837adc949a9444 /gcc/integrate.c
parentfb2660307dc8c9417390e2c6810cf2ed3a13635c (diff)
downloadgcc-1d7a9c94f2c102ad4da9cafaf440a9b7ee071cf4.zip
gcc-1d7a9c94f2c102ad4da9cafaf440a9b7ee071cf4.tar.gz
gcc-1d7a9c94f2c102ad4da9cafaf440a9b7ee071cf4.tar.bz2
(expand_inline_function): Don't output line notes
for implicit formals. From-SVN: r2848
Diffstat (limited to 'gcc/integrate.c')
-rw-r--r--gcc/integrate.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/gcc/integrate.c b/gcc/integrate.c
index 14ce727..f4f5ccc 100644
--- a/gcc/integrate.c
+++ b/gcc/integrate.c
@@ -1217,10 +1217,15 @@ expand_inline_function (fndecl, parms, target, ignore, type, structure_value_add
/* Where parameter is located in the function. */
rtx copy;
- rtx note = emit_note (DECL_SOURCE_FILE (formal),
- DECL_SOURCE_LINE (formal));
- if (note)
- RTX_INTEGRATED_P (note) = 1;
+ /* Make sure this formal has some correspondence in the users code
+ * before emitting any line notes for it. */
+ if (DECL_SOURCE_LINE (formal))
+ {
+ rtx note = emit_note (DECL_SOURCE_FILE (formal),
+ DECL_SOURCE_LINE (formal));
+ if (note)
+ RTX_INTEGRATED_P (note) = 1;
+ }
arg_trees[i] = arg;
loc = RTVEC_ELT (arg_vector, i);