summaryrefslogtreecommitdiff
path: root/gcc/config/pa
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-27 16:48:18 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-27 16:48:18 +0000
commitecbd3ffc1f0058c132dbaf4ce20ba34bb47d8221 (patch)
tree5daddf8f993e46114ff506772da0b12f75769a4a /gcc/config/pa
parent9d099e65af650af4352e3b97555ca5b60a7574f3 (diff)
downloadgcc-ecbd3ffc1f0058c132dbaf4ce20ba34bb47d8221.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98852 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/pa')
-rw-r--r--gcc/config/pa/pa.h14
-rw-r--r--gcc/config/pa/pa64-linux.h5
2 files changed, 6 insertions, 13 deletions
diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h
index 0738b494623..f94d5316475 100644
--- a/gcc/config/pa/pa.h
+++ b/gcc/config/pa/pa.h
@@ -1870,22 +1870,16 @@ forget_section (void) \
/* Print a memory address as an operand to reference that memory location. */
#define PRINT_OPERAND_ADDRESS(FILE, ADDR) \
-{ register rtx addr = ADDR; \
- register rtx base; \
- int offset; \
+{ rtx addr = ADDR; \
switch (GET_CODE (addr)) \
{ \
case REG: \
fprintf (FILE, "0(%s)", reg_names [REGNO (addr)]); \
break; \
case PLUS: \
- if (GET_CODE (XEXP (addr, 0)) == CONST_INT) \
- offset = INTVAL (XEXP (addr, 0)), base = XEXP (addr, 1); \
- else if (GET_CODE (XEXP (addr, 1)) == CONST_INT) \
- offset = INTVAL (XEXP (addr, 1)), base = XEXP (addr, 0); \
- else \
- abort (); \
- fprintf (FILE, "%d(%s)", offset, reg_names [REGNO (base)]); \
+ gcc_assert (GET_CODE (XEXP (addr, 1)) == CONST_INT); \
+ fprintf (FILE, "%d(%s)", (int)INTVAL (XEXP (addr, 1)), \
+ reg_names [REGNO (XEXP (addr, 0))]); \
break; \
case LO_SUM: \
if (!symbolic_operand (XEXP (addr, 1), VOIDmode)) \
diff --git a/gcc/config/pa/pa64-linux.h b/gcc/config/pa/pa64-linux.h
index 5d7fdbee181..908cb6c19b5 100644
--- a/gcc/config/pa/pa64-linux.h
+++ b/gcc/config/pa/pa64-linux.h
@@ -52,8 +52,7 @@ Boston, MA 02111-1307, USA. */
break; \
} \
\
- if ((TO) != STACK_POINTER_REGNUM) \
- abort (); \
+ gcc_assert ((TO) == STACK_POINTER_REGNUM); \
\
switch (FROM) \
{ \
@@ -66,7 +65,7 @@ Boston, MA 02111-1307, USA. */
break; \
\
default: \
- abort (); \
+ gcc_unreachable (); \
} \
} while (0)
#endif