This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[AVR] [4.3, 4.2, 4.1] [committed] Fix target/30483
- From: "Anatoly Sokolov" <aesok at post dot ru>
- To: <gcc-patches at gcc dot gnu dot org>
- Cc: <eweddington at cso dot atmel dot com>, <aesok at post dot ru>
- Date: Tue, 17 Apr 2007 23:39:19 +0400
- Subject: [AVR] [4.3, 4.2, 4.1] [committed] Fix target/30483
Hi,
ICE issued if wrong operand/constraint pair the user has been providing
for address operand in __asm__ statement. This patch replaces call of
gcc_unreachable() on error().
2007-04-14 Anatoly Sokolov <aesok@post.ru>
PR target/30483
* config/avr/avr.c (ptrreg_to_str): Replace gcc_unreachable() with
error().
Index: gcc/config/avr/avr.c
===================================================================
--- gcc/config/avr/avr.c (revision 123920)
+++ gcc/config/avr/avr.c (working copy)
@@ -1041,7 +1044,7 @@
case REG_Y: return "Y";
case REG_Z: return "Z";
default:
- gcc_unreachable ();
+ error ("address operand requires constraint for X, Y, or Z register");
}
return NULL;
}
Anatoly.