Hi, On Fri, Feb 17, 2017 at 10:34:21AM +0100, Jakub Jelinek wrote: > On Fri, Feb 17, 2017 at 10:31:16AM +0100, Martin Jambor wrote: > > @@ -8066,12 +8065,8 @@ This flag is enabled by default at @option{-O3}. > > > > @item -fipa-cp-alignment > > @opindex -fipa-cp-alignment > > -When enabled, this optimization propagates alignment of function > > -parameters to support better vectorization and string operations. > > - > > -This flag is enabled by default at @option{-O2} and @option{-Os}. It > > -requires that @option{-fipa-cp} is enabled. > > -@option{-fipa-cp-alignment} is obsolete, use @option{-fipa-bit-cp} instead. > > +This option has been superseded by @option{-fipa-bit-cp} and is now > > +deprecated. Use @option{-fipa-bit-cp} instead. > > I'd just remove the whole documentation about -fipa-cp-alignment, I think > that is what we do for other removed options. > Or at least say and is now ignored. rather than deprecated, to make it clear > how we handle it (not at all). > Ok with either of those changes. >
I see, I suppose we should be consistent, I will commit the following, which I have included in a bootstrap and test run on x86_64-linux. Thanks, Martin 2017-02-20 Martin Jambor <mjam...@suse.cz> * common.opt (-fipa-cp-alignment): Mark as ignored and preserved for backward compatibility only. * doc/invoke.texi (Option Summary): Remove all references to -fipa-cp-alignment. --- gcc/common.opt | 4 ++-- gcc/doc/invoke.texi | 12 +----------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/gcc/common.opt b/gcc/common.opt index 6defe713c0b..e5ae364abd9 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -1612,8 +1612,8 @@ Common Report Var(flag_ipa_cp_clone) Optimization Perform cloning to make Interprocedural constant propagation stronger. fipa-cp-alignment -Common Report Var(flag_ipa_cp_alignment) Optimization -Perform alignment discovery and propagation to make Interprocedural constant propagation stronger. +Common Ignore +Does nothing. Preserved for backward compatibility. fipa-bit-cp Common Report Var(flag_ipa_bit_cp) Optimization diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 6e219dab4d3..8fae09d1a5e 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -372,7 +372,7 @@ Objective-C and Objective-C++ Dialects}. -fif-conversion2 -findirect-inlining @gol -finline-functions -finline-functions-called-once -finline-limit=@var{n} @gol -finline-small-functions -fipa-cp -fipa-cp-clone @gol --fipa-cp-alignment -fipa-bit-cp @gol +-fipa-bit-cp @gol -fipa-pta -fipa-profile -fipa-pure-const -fipa-reference -fipa-icf @gol -fira-algorithm=@var{algorithm} @gol -fira-region=@var{region} -fira-hoist-pressure @gol @@ -7063,7 +7063,6 @@ also turns on the following optimization flags: -finline-small-functions @gol -findirect-inlining @gol -fipa-cp @gol --fipa-cp-alignment @gol -fipa-bit-cp @gol -fipa-sra @gol -fipa-icf @gol @@ -8073,15 +8072,6 @@ it may significantly increase code size (see @option{--param ipcp-unit-growth=@var{value}}). This flag is enabled by default at @option{-O3}. -@item -fipa-cp-alignment -@opindex -fipa-cp-alignment -When enabled, this optimization propagates alignment of function -parameters to support better vectorization and string operations. - -This flag is enabled by default at @option{-O2} and @option{-Os}. It -requires that @option{-fipa-cp} is enabled. -@option{-fipa-cp-alignment} is obsolete, use @option{-fipa-bit-cp} instead. - @item -fipa-bit-cp @opindex -fipa-bit-cp When enabled, perform ipa bitwise constant propagation. This flag is -- 2.11.0