https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89208

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Bernd Edlinger from comment #3)
> --- expr.c    (revision 268337)
> +++ expr.c    (working copy)
> @@ -1625,6 +1625,7 @@
>                                      min_size, max_size, probable_max_size))
>      ;
>    else if (may_use_call
> +        && flag_tree_loop_distribute_patterns
>          && ADDR_SPACE_GENERIC_P (MEM_ADDR_SPACE (x))
>          && ADDR_SPACE_GENERIC_P (MEM_ADDR_SPACE (y)))
>      {

This is certainly wrong.  flag_tree_loop_distribute_patterns is false most of
the time, it is an option normally enabled by default for -O3 only.
If you want to check for explicit -fno-tree-loop-distribute-patterns, then it
would be && (!global_options_set.x_flag_tree_loop_distribute_patterns
             || flag_tree_loop_distribute_patterns))
but it still doesn't look correct nor desirable to me.

Reply via email to