This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Set TREE_THIS_NOTRAP throughout tree-nested.c


On Wed, Jul 24, 2019 at 11:14 AM Eric Botcazou <ebotcazou@adacore.com> wrote:
>
> Hi,
>
> stack memory is considered non-trapping by the compiler once the frame has
> been established so TREE_THIS_NOTRAP can be set on the dereferences built
> during the unnesting pass.
>
> Tested on x86_64-suse-linux, OK for the mainline?

OK.

Thanks,
Richard.

>
> 2019-07-24  Eric Botcazou  <ebotcazou@adacore.com>
>
>         * tree-nested.c (build_simple_mem_ref_notrap): New function.
>         (get_static_chain): Call it instead of (build_simple_mem_ref.
>         (get_frame_field): Likewise.
>         (get_nonlocal_debug_decl): Likewise.
>         (convert_nonlocal_reference_op): Likewise.
>
> --
> Eric Botcazou


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]