aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/sparc/sparc.h
diff options
context:
space:
mode:
authorJames A. Morrison <phython@gcc.gnu.org>2005-04-11 17:40:55 +0000
committerJames A. Morrison <phython@gcc.gnu.org>2005-04-11 17:40:55 +0000
commitf5f7d171c3f8dfff5d7751d8b9b4718f7c1dbd66 (patch)
tree322887078ed40691f695459232e073209e8b2e57 /gcc/config/sparc/sparc.h
parent977ec5f82ca370c43585a32f419c2e26d0e01fda (diff)
downloadgcc-f5f7d171c3f8dfff5d7751d8b9b4718f7c1dbd66.zip
gcc-f5f7d171c3f8dfff5d7751d8b9b4718f7c1dbd66.tar.gz
gcc-f5f7d171c3f8dfff5d7751d8b9b4718f7c1dbd66.tar.bz2
sparc.c: Use gcc_assert and gcc_unreachable.
2005-04-11 James A. Morrison <phython@gcc.gnu.org> * config/sparc/sparc.c: Use gcc_assert and gcc_unreachable. * config/sparc/sparc.h: Likewise. * config/sparc/sparc.md: Likewise. From-SVN: r97976
Diffstat (limited to 'gcc/config/sparc/sparc.h')
-rw-r--r--gcc/config/sparc/sparc.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h
index 0818562..dcdafa0 100644
--- a/gcc/config/sparc/sparc.h
+++ b/gcc/config/sparc/sparc.h
@@ -2571,10 +2571,9 @@ extern int sparc_indent_opcode;
base = XEXP (addr, 0), index = XEXP (addr, 1); \
if (GET_CODE (base) == LO_SUM) \
{ \
- if (! USE_AS_OFFSETABLE_LO10 \
- || TARGET_ARCH32 \
- || TARGET_CM_MEDMID) \
- abort (); \
+ gcc_assert (USE_AS_OFFSETABLE_LO10 \
+ && TARGET_ARCH64 \
+ && ! TARGET_CM_MEDMID); \
output_operand (XEXP (base, 0), 0); \
fputs ("+%lo(", FILE); \
output_address (XEXP (base, 1)); \
@@ -2590,7 +2589,7 @@ extern int sparc_indent_opcode;
else if (GET_CODE (index) == SYMBOL_REF \
|| GET_CODE (index) == CONST) \
fputc ('+', FILE), output_addr_const (FILE, index); \
- else abort (); \
+ else gcc_unreachable (); \
} \
} \
else if (GET_CODE (addr) == MINUS \