diff options
Diffstat (limited to 'gcc')
| -rw-r--r-- | gcc/ChangeLog | 3 | ||||
| -rw-r--r-- | gcc/combine.c | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6af9545..b11afd8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2001-12-27 Geoff Keating <geoffk@redhat.com> + * combine.c (try_combine): Mask off sign bits when combining + stores to the low and high parts of a two-word value. + * expr.c (expand_expr): Don't mark memory for non-constants as constant. diff --git a/gcc/combine.c b/gcc/combine.c index 1fa63b8..a25909d 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -1650,7 +1650,8 @@ try_combine (i3, i2, i1, new_direct_jump_p) abort (); lo &= ~(UWIDE_SHIFT_LEFT_BY_BITS_PER_WORD (1) - 1); - lo |= INTVAL (SET_SRC (PATTERN (i3))); + lo |= (INTVAL (SET_SRC (PATTERN (i3))) + & (UWIDE_SHIFT_LEFT_BY_BITS_PER_WORD (1) - 1)); } else if (HOST_BITS_PER_WIDE_INT == BITS_PER_WORD) hi = INTVAL (SET_SRC (PATTERN (i3))); |
