[PATCH] Fix hppa-* --enable-checking=release bootstrap (PR bootstrap/48161)
Jakub Jelinek
jakub@redhat.com
Thu Mar 17 22:38:00 GMT 2011
On Thu, Mar 17, 2011 at 09:07:43PM +0100, Jakub Jelinek wrote:
> The following fixes the testcase in cross to hppa-* as well.
> I'll bootstrap/regtest it momentarily, ok if it passes?
Now bootstrapped/regtested on x86_64-linux and i686-linux.
> 2011-03-17 Richard Henderson <rth@redhat.com>
> Jakub Jelinek <jakub@redhat.com>
>
> PR bootstrap/48161
> * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
> instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
>
> * gcc.c-torture/compile/pr48161.c: New test.
>
> --- gcc/expr.c.jj 2011-03-14 14:12:15.000000000 +0100
> +++ gcc/expr.c 2011-03-17 16:49:01.000000000 +0100
> @@ -6971,7 +6971,7 @@ expand_expr_addr_expr_1 (tree exp, rtx t
> tmp = convert_memory_address_addr_space (tmode, tmp, as);
>
> if (modifier == EXPAND_SUM || modifier == EXPAND_INITIALIZER)
> - result = gen_rtx_PLUS (tmode, result, tmp);
> + result = simplify_gen_binary (PLUS, tmode, result, tmp);
> else
> {
> subtarget = bitpos ? NULL_RTX : target;
> --- gcc/testsuite/gcc.c-torture/compile/pr48161.c.jj 2011-03-09 16:32:56.855000001 +0100
> +++ gcc/testsuite/gcc.c-torture/compile/pr48161.c 2011-03-17 17:20:34.000000000 +0100
Jakub
More information about the Gcc-patches
mailing list