OSDN Git Service

PR bootstrap/43511
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 25 Mar 2010 12:19:32 +0000 (12:19 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 00:35:17 +0000 (09:35 +0900)
* config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
Clear first_function_block_is_cold.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157723 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/i386.c

index f4a22c8..73dd222 100644 (file)
@@ -1,5 +1,9 @@
 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
 
 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
 
+       PR bootstrap/43511
+       * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
+       Clear first_function_block_is_cold.
+
        PR c/43385
        * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
        argument if the argument is truth_value_p.
        PR c/43385
        * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
        argument if the argument is truth_value_p.
index da2a981..35b4c49 100644 (file)
@@ -7614,6 +7614,7 @@ ix86_code_end (void)
          assemble_name (asm_out_file, name);
          fputs ("\n", asm_out_file);
          ASM_OUTPUT_LABEL (asm_out_file, name);
          assemble_name (asm_out_file, name);
          fputs ("\n", asm_out_file);
          ASM_OUTPUT_LABEL (asm_out_file, name);
+         DECL_WEAK (decl) = 1;
        }
       else
 #endif
        }
       else
 #endif
@@ -7639,6 +7640,7 @@ ix86_code_end (void)
       DECL_INITIAL (decl) = make_node (BLOCK);
       current_function_decl = decl;
       init_function_start (decl);
       DECL_INITIAL (decl) = make_node (BLOCK);
       current_function_decl = decl;
       init_function_start (decl);
+      first_function_block_is_cold = false;
       /* Make sure unwind info is emitted for the thunk if needed.  */
       final_start_function (emit_barrier (), asm_out_file, 1);
 
       /* Make sure unwind info is emitted for the thunk if needed.  */
       final_start_function (emit_barrier (), asm_out_file, 1);