]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/13721 (SEGV on inline-asm)
authorKazu Hirata <kazu@cs.umass.edu>
Mon, 9 Feb 2004 17:23:25 +0000 (17:23 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Mon, 9 Feb 2004 17:23:25 +0000 (17:23 +0000)
PR target/13721
* config/h8300/h8300.c (byte_reg): Call abort() if asked to
print a operand other than a register.

From-SVN: r77539

gcc/ChangeLog
gcc/config/h8300/h8300.c

index b6791b08f42beb2046bab06d5b6f3995c14bb95d..8872a66d6b1ced74a1d7cec80cc93dc1d8871fc2 100644 (file)
@@ -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
index c8d79378cbfe8041a61705250278e7195011ab91..546a346d36360f81ff87f1b146f1a88a79d96ed0 100644 (file)
@@ -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];
 }