re PR bootstrap/65910 (r222473 breaks x86_64 darwin bootstrap)
authorDominique d'Humieres <dominiq@lps.ens.fr>
Tue, 28 Apr 2015 17:16:19 +0000 (19:16 +0200)
committerDavid Edelsohn <dje@gcc.gnu.org>
Tue, 28 Apr 2015 17:16:19 +0000 (13:16 -0400)
2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>

        PR bootstrap/65910
        * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.

From-SVN: r222535

gcc/ChangeLog
gcc/varasm.c

index 3857fa08e0b0387c921d04f4ca3477470ba1e493..cad2b910d38b32beb40e54a7ed541dbd0453e810 100644 (file)
@@ -1,3 +1,8 @@
+2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
+
+       PR bootstrap/65910
+       * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
+
 2015-04-28  Jason Merrill  <jason@redhat.com>
 
        PR c++/65734
index eab937f051eb3758658fc180e7c8a74b0d24f0dd..9131e83a3bd3cbed42a5840f6ce961a2efa2415e 100644 (file)
@@ -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);