From 68d15e8cce205659db7a30b9e8f1e15bcd0ac9ef Mon Sep 17 00:00:00 2001 From: Dominique d'Humieres Date: Tue, 28 Apr 2015 19:16:19 +0200 Subject: [PATCH] re PR bootstrap/65910 (r222473 breaks x86_64 darwin bootstrap) 2015-04-28 Dominique d'Humieres PR bootstrap/65910 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE. From-SVN: r222535 --- gcc/ChangeLog | 5 +++++ gcc/varasm.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3857fa08e0b..cad2b910d38 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-04-28 Dominique d'Humieres + + PR bootstrap/65910 + * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE. + 2015-04-28 Jason Merrill PR c++/65734 diff --git a/gcc/varasm.c b/gcc/varasm.c index eab937f051e..9131e83a3bd 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -1864,10 +1864,12 @@ assemble_end_function (tree decl, const char *fnname ATTRIBUTE_UNUSED) save_text_section = in_section; switch_to_section (unlikely_text_section ()); +#ifdef ASM_DECLARE_FUNCTION_SIZE if (cold_function_name != NULL_TREE) ASM_DECLARE_FUNCTION_SIZE (asm_out_file, IDENTIFIER_POINTER (cold_function_name), decl); +#endif ASM_OUTPUT_LABEL (asm_out_file, crtl->subsections.cold_section_end_label); if (first_function_block_is_cold) switch_to_section (text_section); -- 2.30.2