aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2asm.c
diff options
context:
space:
mode:
authorJohn Wehle <john@feith.com>2001-10-03 16:23:57 +0000
committerJohn Wehle <wehle@gcc.gnu.org>2001-10-03 16:23:57 +0000
commit508fc6461fcfbe7d7b26da2c9d27eecf2831fbdb (patch)
tree7d770a09add8617c91dd4d4bf1927af1198d880f /gcc/dwarf2asm.c
parent6a4af81f9298fdb964aa69806e2a036837ebbe44 (diff)
downloadgcc-508fc6461fcfbe7d7b26da2c9d27eecf2831fbdb.zip
gcc-508fc6461fcfbe7d7b26da2c9d27eecf2831fbdb.tar.gz
gcc-508fc6461fcfbe7d7b26da2c9d27eecf2831fbdb.tar.bz2
dwarf2asm.c (unaligned_integer_asm_op): Abort if op is NULL.
* dwarf2asm.c (unaligned_integer_asm_op): Abort if op is NULL. * sparc/sysv4.h (UNALIGNED_DOUBLE_INT_ASM_OP): Use only if TARGET_ARCH64. From-SVN: r45995
Diffstat (limited to 'gcc/dwarf2asm.c')
-rw-r--r--gcc/dwarf2asm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/dwarf2asm.c b/gcc/dwarf2asm.c
index 229ce00..281cb46 100644
--- a/gcc/dwarf2asm.c
+++ b/gcc/dwarf2asm.c
@@ -54,7 +54,7 @@ static inline const char *
unaligned_integer_asm_op (size)
int size;
{
- const char *op;
+ const char *op = NULL;
switch (size)
{
case 1:
@@ -74,6 +74,10 @@ unaligned_integer_asm_op (size)
default:
abort ();
}
+
+ if (! op)
+ abort ();
+
return op;
}
#endif /* UNALIGNED_INT_ASM_OP */