summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwehle <wehle@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-03 16:23:57 +0000
committerwehle <wehle@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-03 16:23:57 +0000
commitd1ad0100e45a00a0fefe765df74949cb905f3959 (patch)
tree7d770a09add8617c91dd4d4bf1927af1198d880f
parente87504d818ce504b78d432561329cbcc88bcbdc5 (diff)
downloadppe42-gcc-d1ad0100e45a00a0fefe765df74949cb905f3959.tar.gz
ppe42-gcc-d1ad0100e45a00a0fefe765df74949cb905f3959.zip
* dwarf2asm.c (unaligned_integer_asm_op): Abort if
op is NULL. * sparc/sysv4.h (UNALIGNED_DOUBLE_INT_ASM_OP): Use only if TARGET_ARCH64. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45995 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/sparc/sysv4.h2
-rw-r--r--gcc/dwarf2asm.c6
3 files changed, 13 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6a4c4ac685f..2fec071ec17 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+Wed Oct 3 12:22:11 EDT 2001 John Wehle (john@feith.com)
+
+ * dwarf2asm.c (unaligned_integer_asm_op): Abort if
+ op is NULL.
+ * sparc/sysv4.h (UNALIGNED_DOUBLE_INT_ASM_OP): Use
+ only if TARGET_ARCH64.
+
2001-10-02 Bernd Schmidt <bernds@redhat.com>
* doc/extend.texi: Fix some problems with previous checkin.
diff --git a/gcc/config/sparc/sysv4.h b/gcc/config/sparc/sysv4.h
index d9c0be7e208..6a0a680b7e8 100644
--- a/gcc/config/sparc/sysv4.h
+++ b/gcc/config/sparc/sysv4.h
@@ -96,7 +96,7 @@ Boston, MA 02111-1307, USA. */
#define STRING_ASM_OP "\t.asciz\t"
#define COMMON_ASM_OP "\t.common\t"
#define SKIP_ASM_OP "\t.skip\t"
-#define UNALIGNED_DOUBLE_INT_ASM_OP "\t.uaxword\t"
+#define UNALIGNED_DOUBLE_INT_ASM_OP (TARGET_ARCH64 ? "\t.uaxword\t" : NULL)
#define UNALIGNED_INT_ASM_OP "\t.uaword\t"
#define UNALIGNED_SHORT_ASM_OP "\t.uahalf\t"
#define PUSHSECTION_ASM_OP "\t.pushsection\t"
diff --git a/gcc/dwarf2asm.c b/gcc/dwarf2asm.c
index 229ce00e8a6..281cb4674a5 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 */
OpenPOWER on IntegriCloud