From 1d7a9c94f2c102ad4da9cafaf440a9b7ee071cf4 Mon Sep 17 00:00:00 2001 From: Tom Wood Date: Tue, 8 Dec 1992 13:34:34 +0000 Subject: [PATCH] (expand_inline_function): Don't output line notes for implicit formals. From-SVN: r2848 --- gcc/integrate.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/gcc/integrate.c b/gcc/integrate.c index 14ce7275323..f4f5cccd19b 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); -- 2.30.2