For PPC Darwin, we need the JBSR long jump code to be enabled when generating
kernel code.  Now we have that handled in rs6000.c, we can drop the conflated
setting in the common code.  The gcc-4.2.1 compilers don’t generate symbol stubs
for any X86 case.

tested on x86_64-darwin16,
applied to mainline.
Iain

2019-07-07  Iain Sandoe  <i...@sandoe.co.uk>

        * config/darwin.c (darwin_override_options): Don't jam symbol stubs
        on for kernel code.


diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c
index ef6e389..02bcf01 100644
--- a/gcc/config/darwin.c
+++ b/gcc/config/darwin.c
@@ -3232,8 +3232,6 @@ darwin_override_options (void)
       /* so no tables either.. */
       flag_unwind_tables = 0;
       flag_asynchronous_unwind_tables = 0;
-      /* We still need to emit branch islands for kernel context.  */
-      darwin_picsymbol_stubs = true;
     }
 
   if (flag_var_tracking_uninit == 0

Reply via email to