diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-02-06 00:37:01 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-02-06 00:37:01 +0000 |
commit | 713bdca275dc78d6a82a9b6635e89c359c641627 (patch) | |
tree | 7c8f9a7a1bdee661c976af8dc2dfa386c9d4e7e6 /gcc/integrate.c | |
parent | fb6830253a98728b5c600a91ee9aa4e0db414938 (diff) | |
download | gcc-713bdca275dc78d6a82a9b6635e89c359c641627.tar.gz |
* integrate.c (output_inline_function): Reset input_filename
and lineno from the decl before rest_of_compilation.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@62464 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/integrate.c')
-rw-r--r-- | gcc/integrate.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/integrate.c b/gcc/integrate.c index 8ab4280efc9..5f050ff21c9 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. */ |