aboutsummaryrefslogtreecommitdiff
path: root/gcc/integrate.c
diff options
context:
space:
mode:
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);