public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH, i386]: Cleanup option handling a little bit
@ 2017-08-23 15:50 Uros Bizjak
  0 siblings, 0 replies; only message in thread
From: Uros Bizjak @ 2017-08-23 15:50 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 414 bytes --]

2017-08-23  Uros Bizjak  <ubizjak@gmail.com>

    * 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.

Bootstrapped and regression tested on x86_64-linux-gnu {,-m32}.

Committed to mainline SVN.

Uros.

[-- Attachment #2: p.diff.txt --]
[-- Type: text/plain, Size: 2336 bytes --]

Index: i386.c
===================================================================
--- i386.c	(revision 251289)
+++ i386.c	(working copy)
@@ -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;
Index: i386.opt
===================================================================
--- i386.opt	(revision 251289)
+++ i386.opt	(working copy)
@@ -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_st
 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_stac
 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-08-23 14:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-23 15:50 [PATCH, i386]: Cleanup option handling a little bit Uros Bizjak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).