integrate.c (output_inline_function): Reset input_filename and lineno from the decl...
authorRichard Henderson <rth@redhat.com>
Thu, 6 Feb 2003 00:37:01 +0000 (16:37 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Thu, 6 Feb 2003 00:37:01 +0000 (16:37 -0800)
        * integrate.c (output_inline_function): Reset input_filename
        and lineno from the decl before rest_of_compilation.

From-SVN: r62464

gcc/ChangeLog
gcc/integrate.c

index 3b9e6c0f49f093c95d98309946c136ada02c1a74..fd326ec41a5b72b77d93f7451c02485567b26c34 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-05  Richard Henderson  <rth@redhat.com>
+
+        * integrate.c (output_inline_function): Reset input_filename
+        and lineno from the decl before rest_of_compilation.
+
 2003-02-05  Richard Henderson  <rth@redhat.com>
 
        * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
index 8ab4280efc9609a03677c4f715086b7454d73145..5f050ff21c96e35aa3bf9838f6ccb5770ccfaef1 100644 (file)
@@ -3028,6 +3028,11 @@ output_inline_function (fndecl)
       debug_hooks = &do_nothing_debug_hooks;
     }
 
+  /* Make sure warnings emitted by the optimizers (e.g. control reaches
+     end of non-void function) is not wildly incorrect.  */
+  input_filename = DECL_SOURCE_FILE (fndecl);
+  lineno = DECL_SOURCE_LINE (fndecl);
+
   /* Compile this function all the way down to assembly code.  As a
      side effect this destroys the saved RTL representation, but
      that's okay, because we don't need to inline this anymore.  */