This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]