aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew Pinski <andrew_pinski@playstation.sony.com>2009-09-28 15:49:47 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2009-09-28 08:49:47 -0700
commitaa633255e79391140eaff46920861926a35a1eaa (patch)
tree0b546a3e2a91ccad20a8efcfee9765d73491da15 /gcc
parent44e10129de2232d8e910e2c12140b80b74799586 (diff)
downloadgcc-aa633255e79391140eaff46920861926a35a1eaa.zip
gcc-aa633255e79391140eaff46920861926a35a1eaa.tar.gz
gcc-aa633255e79391140eaff46920861926a35a1eaa.tar.bz2
spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
2009-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com> * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns. From-SVN: r152239
Diffstat (limited to 'gcc')
-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 74c6d06..728e272 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 b0b2fd2..316cc73 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)