summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/spu/spu.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 74c6d06f6ae..728e2729756 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2009-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
+
+ * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
+
2009-09-28 Michael Matz <matz@suse.de>
* builtins.c (interclass_mathfn_icode): New helper.
diff --git a/gcc/config/spu/spu.c b/gcc/config/spu/spu.c
index b0b2fd27500..316cc73d777 100644
--- a/gcc/config/spu/spu.c
+++ b/gcc/config/spu/spu.c
@@ -2364,6 +2364,10 @@ get_branch_target (rtx branch)
|| GET_CODE (PATTERN (branch)) == ADDR_DIFF_VEC)
return 0;
+ /* ASM GOTOs. */
+ if (GET_CODE (PATTERN (branch)) == ASM_OPERANDS)
+ return NULL;
+
set = single_set (branch);
src = SET_SRC (set);
if (GET_CODE (SET_DEST (set)) != PC)