aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2003-02-05 16:37:01 -0800
committerRichard Henderson <rth@gcc.gnu.org>2003-02-05 16:37:01 -0800
commit7127fd582dd01453c4188c6db530d965c4e73682 (patch)
tree7c8f9a7a1bdee661c976af8dc2dfa386c9d4e7e6
parent48d1ce967f40e221db7afb6496ba34c190e3d9fd (diff)
downloadgcc-7127fd582dd01453c4188c6db530d965c4e73682.zip
gcc-7127fd582dd01453c4188c6db530d965c4e73682.tar.gz
gcc-7127fd582dd01453c4188c6db530d965c4e73682.tar.bz2
integrate.c (output_inline_function): Reset input_filename and lineno from the decl before rest_of_compilation.
* integrate.c (output_inline_function): Reset input_filename and lineno from the decl before rest_of_compilation. From-SVN: r62464
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/integrate.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3b9e6c0..fd326ec 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
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.
(CTZ_DEFINED_VALUE_AT_ZERO): New.
* doc/rtl.texi, doc/tm.texi: Document them.
diff --git a/gcc/integrate.c b/gcc/integrate.c
index 8ab4280..5f050ff 100644
--- a/gcc/integrate.c
+++ b/gcc/integrate.c
@@ -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. */