HOST_WIDE_INT = long long patch
John Carr
jfc@mit.edu
Wed Apr 8 02:13:00 GMT 1998
> I checked in a fix to synth_mult for multiplying by -1 on Apr 3. In
> theory your patch shouldn't be necessary anymore. Can you please
> double check?
That didn't fix the problem for me. It turned out that my fix worked
because it masked a different error: certain operations were
incorrectly being assigned cost 0. Use this patch instead.
Tue Apr 7 19:25:27 1998 John Carr <jfc@mit.edu>
* expmed.c (init_expmed): Initialize entire cost array when
MAX_BITS_PER_WORD > BITS_PER_WORD.
diff -c -3 -p -r1.11 expmed.c
*** expmed.c 1998/04/04 17:37:49 1.11
--- expmed.c 1998/04/07 23:24:37
*************** init_expmed ()
*** 120,126 ****
shift_cost[0] = 0;
shiftadd_cost[0] = shiftsub_cost[0] = add_cost;
! for (m = 1; m < BITS_PER_WORD; m++)
{
shift_cost[m] = shiftadd_cost[m] = shiftsub_cost[m] = 32000;
--- 120,126 ----
shift_cost[0] = 0;
shiftadd_cost[0] = shiftsub_cost[0] = add_cost;
! for (m = 1; m < MAX_BITS_PER_WORD; m++)
{
shift_cost[m] = shiftadd_cost[m] = shiftsub_cost[m] = 32000;
More information about the Gcc
mailing list