From 4ea9e6c799b77c70911838adbef5cd594816d06a Mon Sep 17 00:00:00 2001 From: Alexander Monakov Date: Mon, 25 May 2015 20:44:45 +0300 Subject: [PATCH] * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt. From-SVN: r223648 --- gcc/ChangeLog | 10 +++++++--- gcc/config/i386/i386.c | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6460f473d81..a58e245ada7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,9 +1,13 @@ +2015-05-25 Alexander Monakov + + * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt. + 2015-05-25 Pitchumani Sivanupandi * 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 +2015-05-24 Jan Hubicka 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 +2015-05-24 Jan Hubicka * 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 +2015-05-24 Jan Hubicka * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class, is_typedef_decl, typedef_variant_p): Constify. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index af219fdb3c7..99322b42ac3 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -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;