Commit 03eb45c1 by Nathan Sidwell Committed by Nathan Sidwell

pa.h (PRINT_OPERAND_ADDRESS): Use gcc_assert, remove unnecessary noncanonical RTL handling.

	* config/pa/pa.h (PRINT_OPERAND_ADDRESS): Use gcc_assert, remove
	unnecessary noncanonical RTL handling.
	* config/pa/pa64-linux.h (INITIAL_ELIMINATION_OFFSET): Use
	gcc_assert and gcc_unreachable.

From-SVN: r98852
parent d42a92c8
2005-04-27 Nathan Sidwell <nathan@codesourcery.com> 2005-04-27 Nathan Sidwell <nathan@codesourcery.com>
* config/pa/pa.h (PRINT_OPERAND_ADDRESS): Use gcc_assert, remove
unnecessary noncanonical RTL handling.
* config/pa/pa64-linux.h (INITIAL_ELIMINATION_OFFSET): Use
gcc_assert and gcc_unreachable.
* config/arm/arm.h (ARM_PRINT_OPERAND_ADDRESS): Use gcc_assert and * config/arm/arm.h (ARM_PRINT_OPERAND_ADDRESS): Use gcc_assert and
gcc_unreachable as appropriate. gcc_unreachable as appropriate.
(THUMB_PRINT_OPERAND_ADDRESS): Likewise. (THUMB_PRINT_OPERAND_ADDRESS): Likewise.
......
...@@ -1870,22 +1870,16 @@ forget_section (void) \ ...@@ -1870,22 +1870,16 @@ forget_section (void) \
/* Print a memory address as an operand to reference that memory location. */ /* Print a memory address as an operand to reference that memory location. */
#define PRINT_OPERAND_ADDRESS(FILE, ADDR) \ #define PRINT_OPERAND_ADDRESS(FILE, ADDR) \
{ register rtx addr = ADDR; \ { rtx addr = ADDR; \
register rtx base; \
int offset; \
switch (GET_CODE (addr)) \ switch (GET_CODE (addr)) \
{ \ { \
case REG: \ case REG: \
fprintf (FILE, "0(%s)", reg_names [REGNO (addr)]); \ fprintf (FILE, "0(%s)", reg_names [REGNO (addr)]); \
break; \ break; \
case PLUS: \ case PLUS: \
if (GET_CODE (XEXP (addr, 0)) == CONST_INT) \ gcc_assert (GET_CODE (XEXP (addr, 1)) == CONST_INT); \
offset = INTVAL (XEXP (addr, 0)), base = XEXP (addr, 1); \ fprintf (FILE, "%d(%s)", (int)INTVAL (XEXP (addr, 1)), \
else if (GET_CODE (XEXP (addr, 1)) == CONST_INT) \ reg_names [REGNO (XEXP (addr, 0))]); \
offset = INTVAL (XEXP (addr, 1)), base = XEXP (addr, 0); \
else \
abort (); \
fprintf (FILE, "%d(%s)", offset, reg_names [REGNO (base)]); \
break; \ break; \
case LO_SUM: \ case LO_SUM: \
if (!symbolic_operand (XEXP (addr, 1), VOIDmode)) \ if (!symbolic_operand (XEXP (addr, 1), VOIDmode)) \
......
...@@ -52,8 +52,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -52,8 +52,7 @@ Boston, MA 02111-1307, USA. */
break; \ break; \
} \ } \
\ \
if ((TO) != STACK_POINTER_REGNUM) \ gcc_assert ((TO) == STACK_POINTER_REGNUM); \
abort (); \
\ \
switch (FROM) \ switch (FROM) \
{ \ { \
...@@ -66,7 +65,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -66,7 +65,7 @@ Boston, MA 02111-1307, USA. */
break; \ break; \
\ \
default: \ default: \
abort (); \ gcc_unreachable (); \
} \ } \
} while (0) } while (0)
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment