This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch] Fix bug for frame instructions in annulled delay slots
- From: Bernd Schmidt <bschmidt at redhat dot com>
- To: Steve Ellcey <sellcey at imgtec dot com>, gcc-patches at gcc dot gnu dot org
- Date: Mon, 7 Dec 2015 20:28:11 +0100
- Subject: Re: [Patch] Fix bug for frame instructions in annulled delay slots
- Authentication-results: sourceware.org; auth=none
- References: <b03b5863-934a-4ca7-a0bf-126e82d34c6b at BAMAIL02 dot ba dot imgtec dot org>
On 12/07/2015 07:54 PM, Steve Ellcey wrote:
if (must_annul)
- used_annul = 1;
+ {
+ /* Frame related instructions cannot go into annulled delay
+ slots, it messes up the dwarf info. */
+ if (RTX_FRAME_RELATED_P (trial))
+ return;
Don't you need to use break rather than return?
+ else if (!RTX_FRAME_RELATED_P (trial) \
Stray backslash.
Other than that I think this is OK. There are some preexisting tests for
frame related insns already in this code.
Bernd