This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix unwinding through noreturn functions
- From: Richard Henderson <rth at redhat dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 29 Jun 2004 16:21:26 -0700
- Subject: Re: [PATCH] Fix unwinding through noreturn functions
- References: <jen02niexa.fsf@sykes.suse.de>
On Mon, Jun 28, 2004 at 10:52:01PM +0200, Andreas Schwab wrote:
> + while (GET_CODE (insn) == INSN
> + && ((GET_CODE (PATTERN (insn)) == UNSPEC_VOLATILE
> + && XINT (PATTERN (insn), 1) == UNSPECV_INSN_GROUP_BARRIER)
> + || (GET_CODE (PATTERN (insn)) == UNSPEC
> + && XINT (PATTERN (insn), 1) == UNSPEC_PROLOGUE_USE)))
> + {
> + if (GET_CODE (PATTERN (insn)) == UNSPEC_VOLATILE
> + && XINT (PATTERN (insn), 1) == UNSPECV_INSN_GROUP_BARRIER)
> + saw_stop = 1;
I think maybe it would be better to introduce an attribute that
is true for all patterns that expand to nothing.
r~