aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorJames E. Wilson <wilson@cygnus.com>2000-06-08 17:25:22 +0000
committerJim Wilson <wilson@gcc.gnu.org>2000-06-08 10:25:22 -0700
commit21217bd0046bac65c93395d55186771c2633af04 (patch)
tree208cff8687732c1b4aaaa4845fc350e7fd3874e4 /gcc/tree.c
parent0186257f7898165091cde0d6e6f307862966fa2a (diff)
downloadgcc-21217bd0046bac65c93395d55186771c2633af04.zip
gcc-21217bd0046bac65c93395d55186771c2633af04.tar.gz
gcc-21217bd0046bac65c93395d55186771c2633af04.tar.bz2
Fix DWARF2 64-bit enum debugging support, for debugging IA-64 emacs bugs.
* dwarf2out.c (ASM_OUTPUT_DWARF_DATA8): Add new macro that uses UNALIGNED_DOUBLE_INT_ASM_OP. Rename old macro to ASM_OUTPUT_DWARF_CONST_DOUBLE. (output_die, case dw_val_class_unsigned_const): Correct call to ASM_OUTPUT_DWARF_DATA8. (output_die, case dw_val_class_long_long): Use ASM_OUTPUT_DWARF_CONST_DOUBLE. * tree.c (host_integerp): Accept unsigned HOST_WIDE_INT values when pos is zero. From-SVN: r34457
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 2a356ed..9eee62b 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -4306,7 +4306,9 @@ host_integerp (t, pos)
&& ((TREE_INT_CST_HIGH (t) == 0
&& (HOST_WIDE_INT) TREE_INT_CST_LOW (t) >= 0)
|| (! pos && TREE_INT_CST_HIGH (t) == -1
- && (HOST_WIDE_INT) TREE_INT_CST_LOW (t) < 0)));
+ && (HOST_WIDE_INT) TREE_INT_CST_LOW (t) < 0)
+ || (! pos && TREE_INT_CST_HIGH (t) == 0
+ && TREE_UNSIGNED (TREE_TYPE (t)))));
}
/* Return the HOST_WIDE_INT least significant bits of T if it is an