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]

[Committed] [spu] Fix asm gotos


Hi,
  The problem here is that the back-end function, get_branch_target
was not ready for a JUMP instruction to contain inline-asm.  This
causes a crash as single_set would return NULL.  This patch fixes the
problem by returning NULL for ASM_OPERANDS.

Committed after a build/test for spu-elf with no regressions and the
asmgoto* testcases working.

Thanks,
Andrew Pinski

ChangeLog:
* spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.

Attachment: fixasmgotos.diff.txt
Description: Text document


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