This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][IRA,LRA] Fix PR87466, all pseudos live across setjmp are spilled
- From: Segher Boessenkool <segher at kernel dot crashing dot org>
- To: Peter Bergner <bergner at linux dot ibm dot com>
- Cc: Eric Botcazou <ebotcazou at adacore dot com>, gcc-patches at gcc dot gnu dot org, Vladimir N Makarov <vmakarov at redhat dot com>, Jeff Law <law at redhat dot com>, Richard Biener <richard dot guenther at gmail dot com>
- Date: Tue, 2 Oct 2018 13:21:03 -0500
- Subject: Re: [PATCH][IRA,LRA] Fix PR87466, all pseudos live across setjmp are spilled
- References: <7f0ff8da-a164-bf05-c668-c69f7b8f314b@linux.ibm.com> <20181001084038.GA23155@gate.crashing.org> <1572822.etZaUqREnU@polaris> <6588c369-513f-df4d-d017-02038a2ff407@linux.ibm.com>
Hi Peter,
On Tue, Oct 02, 2018 at 11:42:19AM -0500, Peter Bergner wrote:
> +/* The default implementation of TARGET_SETJMP_PRESERVES_NONVOLATILE_REGS_P. */
> +
> +bool
> +default_setjmp_preserves_nonvolatile_regs_p (void)
> +{
> + return false;
> +}
You can just use hook_bool_void_false for this (and hook_bool_void_true
for e.g. the rs6000 implementation).
Segher