Skip to content

Commit 725e841

Browse files
author
uros
committed
* config/i386/i386.opt (flag_fentry): Do not init to -1.
* config/i386/i386.c (ix86_option_override_internal): Simplify setting of opts->x_flag_entry. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@251416 138bc75d-0d04-0410-961f-82ee72b054a4
1 parent 7977b05 commit 725e841

File tree

3 files changed

+17
-22
lines changed

3 files changed

+17
-22
lines changed

gcc/ChangeLog

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2017-08-29 Uros Bizjak <[email protected]>
2+
3+
* config/i386/i386.opt (flag_fentry): Do not init to -1.
4+
* config/i386/i386.c (ix86_option_override_internal): Simplify
5+
setting of opts->x_flag_entry.
6+
17
2017-08-29 Bill Schmidt <[email protected]>
28
Jakub Jelinek <[email protected]>
39
Richard Biener <[email protected]>
@@ -461,8 +467,7 @@
461467

462468
2017-08-22 Richard Biener <[email protected]>
463469

464-
* tree-cfg.c (gimple_split_edge): Avoid reallocating target
465-
PHI nodes.
470+
* tree-cfg.c (gimple_split_edge): Avoid reallocating target PHI nodes.
466471

467472
2017-08-22 Richard Biener <[email protected]>
468473

@@ -500,8 +505,7 @@
500505
(-mvsx-scalar-double): Likewise.
501506
(-mallow-df-permute): Likewise.
502507
(-mvectorize-builtins): Likewise.
503-
* config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok):
504-
Likewise.
508+
* config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Likewise.
505509
(rs6000_builtin_vectorized_function): Likewise.
506510
(rs6000_builtin_md_vectorized_function): Likewise.
507511
(rs6000_opt_vars): Likewise.

gcc/config/i386/i386.c

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6545,27 +6545,18 @@ ix86_option_override_internal (bool main_args_p,
65456545
opts->x_target_flags |= MASK_CLD & ~opts_set->x_target_flags;
65466546
#endif
65476547

6548-
if (!TARGET_64BIT_P (opts->x_ix86_isa_flags) && opts->x_flag_pic)
6548+
/* Set the default value for -mfentry. */
6549+
if (!opts_set->x_flag_fentry)
6550+
opts->x_flag_fentry = TARGET_SEH;
6551+
else
65496552
{
6550-
if (opts->x_flag_fentry > 0)
6551-
sorry ("-mfentry isn%'t supported for 32-bit in combination "
6553+
if (!TARGET_64BIT_P (opts->x_ix86_isa_flags) && opts->x_flag_pic
6554+
&& opts->x_flag_fentry)
6555+
sorry ("-mfentry isn%'t supported for 32-bit in combination "
65526556
"with -fpic");
6553-
opts->x_flag_fentry = 0;
6554-
}
6555-
else if (TARGET_SEH)
6556-
{
6557-
if (opts->x_flag_fentry == 0)
6557+
else if (TARGET_SEH && !opts->x_flag_fentry)
65586558
sorry ("-mno-fentry isn%'t compatible with SEH");
6559-
opts->x_flag_fentry = 1;
65606559
}
6561-
else if (opts->x_flag_fentry < 0)
6562-
{
6563-
#if defined(PROFILE_BEFORE_PROLOGUE)
6564-
opts->x_flag_fentry = 1;
6565-
#else
6566-
opts->x_flag_fentry = 0;
6567-
#endif
6568-
}
65696560

65706561
if (TARGET_SEH && TARGET_CALL_MS2SYSV_XLOGUES)
65716562
sorry ("-mcall-ms2sysv-xlogues isn%'t currently supported with SEH");

gcc/config/i386/i386.opt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ Target Report Mask(ISA_PREFETCHWT1) Var(ix86_isa_flags) Save
862862
Support PREFETCHWT1 built-in functions and code generation.
863863

864864
mfentry
865-
Target Report Var(flag_fentry) Init(-1)
865+
Target Report Var(flag_fentry)
866866
Emit profiling counter call at function entry before prologue.
867867

868868
mrecord-mcount

0 commit comments

Comments
 (0)