From: Kazu Hirata Date: Mon, 9 Feb 2004 17:23:25 +0000 (+0000) Subject: re PR target/13721 (SEGV on inline-asm) X-Git-Tag: releases/gcc-4.0.0~10239 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=500fc80fe31f7544ba9fcfa48c3ae9e39234c0e8;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b6791b08f42b..8872a66d6b1c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-02-09 Kazu Hirata + + 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 * fold-const.c (fold) : Use the original type conversion diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index c8d79378cbfe..546a346d3636 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]; }