]> gcc.gnu.org Git - gcc.git/commitdiff
(expand_inline_function): Don't output line notes
authorTom Wood <wood@gnu.org>
Tue, 8 Dec 1992 13:34:34 +0000 (13:34 +0000)
committerTom Wood <wood@gnu.org>
Tue, 8 Dec 1992 13:34:34 +0000 (13:34 +0000)
for implicit formals.

From-SVN: r2848

gcc/integrate.c

index 14ce727532353efeb525dab393f92671071de490..f4f5cccd19b6a0d6038471c4b2693d64b55e744c 100644 (file)
@@ -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);
This page took 0.067264 seconds and 5 git commands to generate.