[gcc(refs/users/marxin/heads/parse-opt-and-target-opts)] Port -masm-dialect.

Martin Liska marxin@gcc.gnu.org
Thu Mar 4 15:11:53 GMT 2021


https://gcc.gnu.org/g:7d79c74c0862c233367347c34098572d2509dfc2

commit 7d79c74c0862c233367347c34098572d2509dfc2
Author: Martin Liska <mliska@suse.cz>
Date:   Thu Mar 4 08:37:28 2021 +0100

    Port -masm-dialect.

Diff:
---
 gcc/config/i386/i386-options.c | 2 --
 gcc/config/i386/i386.opt       | 6 +-----
 2 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/gcc/config/i386/i386-options.c b/gcc/config/i386/i386-options.c
index 40b272dccd5..12349c9f046 100644
--- a/gcc/config/i386/i386-options.c
+++ b/gcc/config/i386/i386-options.c
@@ -607,7 +607,6 @@ ix86_function_specific_save (struct cl_target_option *ptr,
   ptr->x_ix86_arch_string = opts->x_ix86_arch_string;
   ptr->x_ix86_tune_string = opts->x_ix86_tune_string;
   ptr->x_ix86_abi = opts->x_ix86_abi;
-  ptr->x_ix86_asm_dialect = opts->x_ix86_asm_dialect;
   ptr->x_ix86_branch_cost = opts->x_ix86_branch_cost;
   ptr->x_ix86_dump_tunes = opts->x_ix86_dump_tunes;
   ptr->x_ix86_force_drap = opts->x_ix86_force_drap;
@@ -732,7 +731,6 @@ ix86_function_specific_restore (struct gcc_options *opts,
   opts->x_ix86_arch_string = ptr->x_ix86_arch_string;
   opts->x_ix86_tune_string = ptr->x_ix86_tune_string;
   opts->x_ix86_abi = ptr->x_ix86_abi;
-  opts->x_ix86_asm_dialect = ptr->x_ix86_asm_dialect;
   opts->x_ix86_branch_cost = ptr->x_ix86_branch_cost;
   opts->x_ix86_dump_tunes = ptr->x_ix86_dump_tunes;
   opts->x_ix86_force_drap = ptr->x_ix86_force_drap;
diff --git a/gcc/config/i386/i386.opt b/gcc/config/i386/i386.opt
index 14f8d148054..4c9137eb4ee 100644
--- a/gcc/config/i386/i386.opt
+++ b/gcc/config/i386/i386.opt
@@ -108,10 +108,6 @@ unsigned char arch_specified
 TargetSave
 enum calling_abi x_ix86_abi
 
-;; -masm=
-TargetSave
-enum asm_dialect x_ix86_asm_dialect
-
 ;; -mbranch-cost=
 TargetSave
 int x_ix86_branch_cost
@@ -219,7 +215,7 @@ Target RejectNegative Negative(march=) Joined Var(ix86_arch_string)
 Generate code for given CPU.
 
 masm=
-Target RejectNegative Joined Enum(asm_dialect) Var(ix86_asm_dialect) Init(ASM_ATT)
+NewTarget RejectNegative Joined Enum(asm_dialect) Var(ix86_asm_dialect) Init(ASM_ATT) PerFunction
 Use given assembler dialect.
 
 Enum


More information about the Gcc-cvs mailing list