Commit f1f39752 by Jason Merrill

toplev.c (rest_of_compilation): Call note_deferral_of_defined_inline_function…

toplev.c (rest_of_compilation): Call note_deferral_of_defined_inline_function even if the function can't be inlined.

        * toplev.c (rest_of_compilation): Call
        note_deferral_of_defined_inline_function even if the function
        can't be inlined.

From-SVN: r33515
parent bb1ec1d7
2000-04-28 Jason Merrill <jason@casey.cygnus.com>
* toplev.c (rest_of_compilation): Call
note_deferral_of_defined_inline_function even if the function
can't be inlined.
2000-04-28 Scott Bambrough <scottb@netwinder.org> 2000-04-28 Scott Bambrough <scottb@netwinder.org>
* cpplex.c (_cpp_scan_line): Fix buffer overwrite. * cpplex.c (_cpp_scan_line): Fix buffer overwrite.
...@@ -11426,7 +11432,7 @@ Tue Jan 4 22:30:16 2000 Jeffrey A Law (law@cygnus.com) ...@@ -11426,7 +11432,7 @@ Tue Jan 4 22:30:16 2000 Jeffrey A Law (law@cygnus.com)
(SLOW_UNALIGNED_ACCESS): Define. (SLOW_UNALIGNED_ACCESS): Define.
(CASE_VECTOR_MODE): Always use 32-bit offsets. (CASE_VECTOR_MODE): Always use 32-bit offsets.
(ASM_FILE_END): Generate 64-bit symbol in 64-bit mode. (ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.
(EXTRA_SECTOIN_FUNCTIONS): Indent .csect pseudo-op. (EXTRA_SECTION_FUNCTIONS): Indent .csect pseudo-op.
(toc_section): Likewise and .toc pseudo-op. (toc_section): Likewise and .toc pseudo-op.
(ASM_DECLARE_FUNCTION): Likewise. Align text more strictly in (ASM_DECLARE_FUNCTION): Likewise. Align text more strictly in
64-bit mode. 64-bit mode.
......
...@@ -2670,6 +2670,14 @@ rest_of_compilation (decl) ...@@ -2670,6 +2670,14 @@ rest_of_compilation (decl)
|| DECL_EXTERNAL (decl)))) || DECL_EXTERNAL (decl))))
DECL_DEFER_OUTPUT (decl) = 1; DECL_DEFER_OUTPUT (decl) = 1;
if (DECL_INLINE (decl))
/* DWARF wants seperate debugging info for abstract and
concrete instances of all inline functions, including those
declared inline but not inlined, and those inlined even
though they weren't declared inline. Conveniently, that's
what DECL_INLINE means at this point. */
note_deferral_of_defined_inline_function (decl);
if (DECL_DEFER_OUTPUT (decl)) if (DECL_DEFER_OUTPUT (decl))
{ {
/* If -Wreturn-type, we have to do a bit of compilation. /* If -Wreturn-type, we have to do a bit of compilation.
...@@ -2696,7 +2704,6 @@ rest_of_compilation (decl) ...@@ -2696,7 +2704,6 @@ rest_of_compilation (decl)
of other functions later in this translation unit. */ of other functions later in this translation unit. */
TREE_NOTHROW (current_function_decl) = 1; TREE_NOTHROW (current_function_decl) = 1;
note_deferral_of_defined_inline_function (decl);
timevar_push (TV_INTEGRATION); timevar_push (TV_INTEGRATION);
save_for_inline_nocopy (decl); save_for_inline_nocopy (decl);
timevar_pop (TV_INTEGRATION); timevar_pop (TV_INTEGRATION);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment