* config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
authorAlexander Monakov <amonakov@gcc.gnu.org>
Mon, 25 May 2015 17:44:45 +0000 (20:44 +0300)
committerAlexander Monakov <amonakov@gcc.gnu.org>
Mon, 25 May 2015 17:44:45 +0000 (20:44 +0300)
From-SVN: r223648

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

index 6460f473d8186623b6c090624292aa4f98bbb0ab..a58e245ada7090c3a0402f48ccdaaff635b156ba 100644 (file)
@@ -1,9 +1,13 @@
+2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
+
+       * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
+
 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
 
        * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
        register if not marked dead/unused, before return.
 
-2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
+2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
 
        PR lto/66180
        * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
@@ -15,7 +19,7 @@
        * tree.c (need_assembler_name_p): Even anonymous namespace needs
        assembler name.
 
-2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
+2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
 
        * ipa-utils.h (method_class_type): Remove.
        * cgraphunit.c (walk_polymorphic_call_targets): Use
@@ -29,7 +33,7 @@
        * pa-polymorphic-call.c (decl_maybe_in_construction_p,
        check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
 
-2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
+2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
 
        * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
        is_typedef_decl, typedef_variant_p): Constify.
index af219fdb3c7961a04e055b9a2d33380555e2d7a9..99322b42ac32c78d550db0d6720592593f535ba0 100644 (file)
@@ -5478,6 +5478,7 @@ ix86_function_ok_for_sibcall (tree decl, tree exp)
   if (!TARGET_MACHO
       && !TARGET_64BIT
       && flag_pic
+      && flag_plt
       && decl && !targetm.binds_local_p (decl))
     return false;