Re: [PATCH] builtins: Commonise default handling of nonlocal_goto

2022-11-14 Thread Richard Biener via Gcc-patches
On Sun, Nov 13, 2022 at 10:33 AM Richard Sandiford via Gcc-patches wrote: > > expand_builtin_longjmp and expand_builtin_nonlocal_goto both > emit nonlocal gotos. They first try to use a target-provided > pattern and fall back to generic code otherwise. These pieces > of generic code are almost i

[PATCH] builtins: Commonise default handling of nonlocal_goto

2022-11-13 Thread Richard Sandiford via Gcc-patches
expand_builtin_longjmp and expand_builtin_nonlocal_goto both emit nonlocal gotos. They first try to use a target-provided pattern and fall back to generic code otherwise. These pieces of generic code are almost identical, and having them inline like this makes it difficult to define a nonlocal_go