From d64d815b3af9d2653d924ea2e1ebb21ee8b043b7 Mon Sep 17 00:00:00 2001 From: Caroline Tice Date: Mon, 29 Jan 2018 13:36:52 -0800 Subject: [GCC] Update with latest retpoline fixes from Intel. Intel has updated their retpoline patches since we created our original patch. This CL updates our retpoline changes to match the latest from Intel. Bug: None Test: Tested extensively in ChromeOS. Built x86 platform & kernel images in Android. Change-Id: Id1a18cb1f1f4461832a017cb5c5d59e5400d9d08 --- gcc-4.9/gcc/config/i386/i386.opt | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) (limited to 'gcc-4.9/gcc/config/i386/i386.opt') diff --git a/gcc-4.9/gcc/config/i386/i386.opt b/gcc-4.9/gcc/config/i386/i386.opt index 3b4a86066..502037b68 100644 --- a/gcc-4.9/gcc/config/i386/i386.opt +++ b/gcc-4.9/gcc/config/i386/i386.opt @@ -797,11 +797,11 @@ Enum(stack_protector_guard) String(global) Value(SSP_GLOBAL) mindirect-branch= Target Report RejectNegative Joined Enum(indirect_branch) Var(ix86_indirect_branch) Init(indirect_branch_keep) -Update indirect call and jump. +Convert indirect call and jump to call and return thunks. mfunction-return= Target Report RejectNegative Joined Enum(indirect_branch) Var(ix86_function_return) Init(indirect_branch_keep) -Update function return. +Convert function return to call and return thunk. Enum Name(indirect_branch) Type(enum indirect_branch) @@ -819,18 +819,6 @@ Enum(indirect_branch) String(thunk-inline) Value(indirect_branch_thunk_inline) EnumValue Enum(indirect_branch) String(thunk-extern) Value(indirect_branch_thunk_extern) -mindirect-branch-loop= -Target Report RejectNegative Joined Enum(indirect_branch_loop) Var(ix86_indirect_branch_loop) Undocumented Init(indirect_branch_loop_lfence) - -Enum -Name(indirect_branch_loop) Type(enum indirect_branch_loop) -Known loop choices (for use with the -mindirect-branch-loop= option): - -EnumValue -Enum(indirect_branch_loop) String(lfence) Value(indirect_branch_loop_lfence) - -EnumValue -Enum(indirect_branch_loop) String(pause) Value(indirect_branch_loop_pause) - -EnumValue -Enum(indirect_branch_loop) String(nop) Value(indirect_branch_loop_nop) +mindirect-branch-register +Target Report Var(ix86_indirect_branch_register) Init(0) +Force indirect call and jump via register. -- cgit v1.2.3