From d308419c64c52c2d48bdf53a65e1790a2c897e83 Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Tue, 13 Aug 2019 19:03:46 +0000 Subject: [Darwin] There is no need to distinguish PIC/non-PIC symbol stubs. So we can use a single flag for both, and rename this now, before a confusing name gets into the wild. gcc/ 2019-08-13 Iain Sandoe * config/darwin.c (machopic_indirect_call_target): Rename symbol stub flag. (darwin_override_options): Likewise. * config/darwin.h: Likewise. * config/darwin.opt: Likewise. * config/i386/i386.c (output_pic_addr_const): Likewise. * config/rs6000/darwin.h: Likewise. * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise. * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ... ... this TARGET_MACHO_SYMBOL_STUBS. (FUNCTION_PROFILER):Likewise. * config/i386/i386.h: Likewise. gcc/testsuite/ 2019-08-13 Iain Sandoe * obj-c++.dg/stubify-1.mm: Rename symbol stub option. * obj-c++.dg/stubify-2.mm: Likewise. * objc.dg/stubify-1.m: Likewise. * objc.dg/stubify-2.m: Likewise. From-SVN: r274397 --- gcc/config/darwin.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'gcc/config/darwin.c') diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index 5ac0925..fdd23c4 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -788,7 +788,7 @@ machopic_indirect_data_reference (rtx orig, rtx reg) rtx machopic_indirect_call_target (rtx target) { - if (! darwin_picsymbol_stubs) + if (! darwin_symbol_stubs) return target; if (GET_CODE (target) != MEM) @@ -3268,13 +3268,13 @@ darwin_override_options (void) Linkers that don't need stubs, don't need the EH symbol markers either. */ - if (!global_options_set.x_darwin_picsymbol_stubs) + if (!global_options_set.x_darwin_symbol_stubs) { if (darwin_target_linker) { if (strverscmp (darwin_target_linker, MIN_LD64_OMIT_STUBS) < 0) { - darwin_picsymbol_stubs = true; + darwin_symbol_stubs = true; ld_needs_eh_markers = true; } } @@ -3283,15 +3283,15 @@ darwin_override_options (void) /* If we don't know the linker version and we're targeting an old system, we know no better than to assume the use of an earlier linker. */ - darwin_picsymbol_stubs = true; + darwin_symbol_stubs = true; ld_needs_eh_markers = true; } } - else if (DARWIN_X86 && darwin_picsymbol_stubs && TARGET_64BIT) + else if (DARWIN_X86 && darwin_symbol_stubs && TARGET_64BIT) { inform (input_location, "%<-mpic-symbol-stubs%> is not required for 64b code (ignored)"); - darwin_picsymbol_stubs = false; + darwin_symbol_stubs = false; } if (generating_for_darwin_version >= 9) -- cgit v1.1