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] Fix unwinding through noreturn functions


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~


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