aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2004-02-09 17:23:25 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2004-02-09 17:23:25 +0000
commit500fc80fe31f7544ba9fcfa48c3ae9e39234c0e8 (patch)
tree3da6254931b0410696bfc43e90bace9172128317 /gcc
parent2e0717349d7cb5660d38c281ab6c65d5e01fa8fc (diff)
downloadgcc-500fc80fe31f7544ba9fcfa48c3ae9e39234c0e8.zip
gcc-500fc80fe31f7544ba9fcfa48c3ae9e39234c0e8.tar.gz
gcc-500fc80fe31f7544ba9fcfa48c3ae9e39234c0e8.tar.bz2
re PR target/13721 (SEGV on inline-asm)
PR target/13721 * config/h8300/h8300.c (byte_reg): Call abort() if asked to print a operand other than a register. From-SVN: r77539
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/h8300/h8300.c3
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b6791b0..8872a66 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2004-02-09 Kazu Hirata <kazu@cs.umass.edu>
+
+ PR target/13721
+ * config/h8300/h8300.c (byte_reg): Call abort() if asked to
+ print a operand other than a register.
+
2004-02-09 Roger Sayle <roger@eyesopen.com>
* fold-const.c (fold) <NOP_EXPR>: Use the original type conversion
diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c
index c8d7937..546a346 100644
--- a/gcc/config/h8300/h8300.c
+++ b/gcc/config/h8300/h8300.c
@@ -338,6 +338,9 @@ byte_reg (rtx x, int b)
"r4l", "r4h", "r5l", "r5h", "r6l", "r6h", "r7l", "r7h"
};
+ if (!REG_P (x))
+ abort ();
+
return names_small[REGNO (x) * 2 + b];
}