[PATCH] Remove -fipa-type-escape flag
Jan Hubicka
hubicka@ucw.cz
Sun May 16 22:01:00 GMT 2010
>
> This patch removes -fipa-type-escape and instead compute it
> when it's needed (when -fipa-struct-reorg is enabled).
>
> -fipa-type-escape was not documented so I don't think we need
> to preserve it for backwards compatibility.
>
> Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk.
>
> Richard.
>
> 2010-05-16 Richard Guenther <rguenther@suse.de>
>
> * doc/invoke.texi (-fipa-struct-reorg): Do not mention
> -fipa-type-escape.
> * ipa-type-escape.c (gate_type_escape_vars): Run when
> -fipa-struct-reorg runs.
> * opts.c (decode_options): Do not unset flag_ipa_type_escape.
> * common.opt (fipa-type-escape): Remove.
>
> * gcc.dg/pr43317.c: Do not pass -fipa-type-escape.
> * gcc.dg/pr43084.c: Likewise.
> * gcc.dg/pr42250.c: Pass -fipa-struct-reorg instead of
> -fipa-type-escape.
> * gcc.dg/struct/wo_prof_escape_arg_to_local.c: Do not pass
> -fipa-type-escape.
> * gcc.dg/struct/struct-reorg.exp: Likewise.
> * gcc.dg/struct/wo_prof_empty_str.c: Likewise.
> * gcc.dg/struct/wo_prof_escape_return.c: Likewise.
> --- 2112,2118 ----
> static bool
> gate_type_escape_vars (void)
> {
> ! return flag_ipa_struct_reorg && flag_whole_program && (optimize > 0);
ipa-type-escape does not really need flag_whole_program by design (just it is not
too effective instead), so probably this flag could be dropped. But I don't care
until we get sane struct reorg pass.
Honza
More information about the Gcc-patches
mailing list