From: Uros Bizjak Date: Wed, 23 Aug 2017 14:45:30 +0000 (+0200) Subject: i386.opt: Remove unneeded Init(0) initializations. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b7fbf563809308a66911d0300b42c5522fdd835f;p=gcc.git i386.opt: Remove unneeded Init(0) initializations. * config/i386/i386.opt: Remove unneeded Init(0) initializations. (mstackrealign): Do not init to -1. * config/i386/i386.c (ix86_option_override_internal): Check opts_set, not opts when setting default value of opts->x_ix86_force_align_arg_pointer. From-SVN: r251311 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f0c1e53b936..11bc059fa4a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2017-08-23 Uros Bizjak + + * config/i386/i386.opt: Remove unneeded Init(0) initializations. + (mstackrealign): Do not init to -1. + * config/i386/i386.c (ix86_option_override_internal): + Check opts_set, not opts when setting default value of + opts->x_ix86_force_align_arg_pointer. + 2017-08-23 Richard Biener * function.c (fndecl_name): Use verbosity 1 (no arguments) for diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 650bcbc65ae..d758b23a8c4 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -6317,7 +6317,7 @@ ix86_option_override_internal (bool main_args_p, } /* Set the default value for -mstackrealign. */ - if (opts->x_ix86_force_align_arg_pointer == -1) + if (!opts_set->x_ix86_force_align_arg_pointer) opts->x_ix86_force_align_arg_pointer = STACK_REALIGN_DEFAULT; ix86_default_incoming_stack_boundary = PREFERRED_STACK_BOUNDARY; diff --git a/gcc/config/i386/i386.opt b/gcc/config/i386/i386.opt index cd564315f04..8bf6af21fd1 100644 --- a/gcc/config/i386/i386.opt +++ b/gcc/config/i386/i386.opt @@ -440,7 +440,7 @@ Target RejectNegative Mask(SSEREGPARM) Save Use SSE register passing conventions for SF and DF mode. mstackrealign -Target Report Var(ix86_force_align_arg_pointer) Init(-1) +Target Report Var(ix86_force_align_arg_pointer) Realign stack in prologue. mstack-arg-probe @@ -514,11 +514,11 @@ Target RejectNegative Joined Var(ix86_tune_ctrl_string) Fine grain control of tune features. mno-default -Target RejectNegative Var(ix86_tune_no_default) Init(0) +Target RejectNegative Var(ix86_tune_no_default) Clear all tune features. mdump-tune-features -Target RejectNegative Var(ix86_dump_tunes) Init(0) +Target RejectNegative Var(ix86_dump_tunes) miamcu Target Report Mask(IAMCU) @@ -866,16 +866,16 @@ Target Report Var(flag_fentry) Init(-1) Emit profiling counter call at function entry before prologue. mrecord-mcount -Target Report Var(flag_record_mcount) Init(0) +Target Report Var(flag_record_mcount) Generate __mcount_loc section with all mcount or __fentry__ calls. mnop-mcount -Target Report Var(flag_nop_mcount) Init(0) +Target Report Var(flag_nop_mcount) Generate mcount/__fentry__ calls as nops. To activate they need to be patched in. mskip-rax-setup -Target Report Var(flag_skip_rax_setup) Init(0) +Target Report Var(flag_skip_rax_setup) Skip setting up RAX register when passing variable arguments. m8bit-idiv @@ -943,7 +943,7 @@ Target RejectNegative Joined Integer Var(ix86_stack_protector_guard_symbol_str) Use the given symbol for addressing the stack-protector guard. mmitigate-rop -Target Var(flag_mitigate_rop) Init(0) +Target Var(flag_mitigate_rop) Attempt to avoid generating instruction sequences containing ret bytes. mgeneral-regs-only