mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-30 10:45:03 +08:00
loop.c (strength_reduce, [...]): Use HOST_WIDE_INT_PRINT_DEC to print CONST_INT values.
* loop.c (strength_reduce, record_biv, record_giv): Use HOST_WIDE_INT_PRINT_DEC to print CONST_INT values. From-SVN: r18024
This commit is contained in:
parent
b7f6588dd2
commit
9ba7a303aa
@ -1,3 +1,8 @@
|
||||
Mon Feb 16 08:17:14 1998 John Carr <jfc@mit.edu>
|
||||
|
||||
* loop.c (strength_reduce, record_biv, record_giv): Use
|
||||
HOST_WIDE_INT_PRINT_DEC to print CONST_INT values.
|
||||
|
||||
1998-02-16 Jason Merrill <jason@yorick.cygnus.com>
|
||||
|
||||
* tree.c (first_rtl_op): New fn.
|
||||
|
24
gcc/loop.c
24
gcc/loop.c
@ -3683,7 +3683,10 @@ strength_reduce (scan_start, end, loop_top, insn_count,
|
||||
if (loop_dump_stream)
|
||||
{
|
||||
if (GET_CODE (src) == CONST_INT)
|
||||
fprintf (loop_dump_stream, "%d\n", INTVAL (src));
|
||||
{
|
||||
fprintf (loop_dump_stream, HOST_WIDE_INT_PRINT_DEC, INTVAL (src));
|
||||
fputc ('\n', loop_dump_stream);
|
||||
}
|
||||
else
|
||||
{
|
||||
print_rtl (loop_dump_stream, src);
|
||||
@ -4618,8 +4621,11 @@ record_biv (v, insn, dest_reg, inc_val, mult_val,
|
||||
"Insn %d: possible biv, reg %d,",
|
||||
INSN_UID (insn), REGNO (dest_reg));
|
||||
if (GET_CODE (inc_val) == CONST_INT)
|
||||
fprintf (loop_dump_stream, " const = %d\n",
|
||||
INTVAL (inc_val));
|
||||
{
|
||||
fprintf (loop_dump_stream, " const =");
|
||||
fprintf (loop_dump_stream, HOST_WIDE_INT_PRINT_DEC, INTVAL (inc_val));
|
||||
fputc ('\n', loop_dump_stream);
|
||||
}
|
||||
else
|
||||
{
|
||||
fprintf (loop_dump_stream, " const = ");
|
||||
@ -4826,8 +4832,10 @@ record_giv (v, insn, src_reg, dest_reg, mult_val, add_val, benefit,
|
||||
fprintf (loop_dump_stream, " replaceable");
|
||||
|
||||
if (GET_CODE (mult_val) == CONST_INT)
|
||||
fprintf (loop_dump_stream, " mult %d",
|
||||
INTVAL (mult_val));
|
||||
{
|
||||
fprintf (loop_dump_stream, " mult ");
|
||||
fprintf (loop_dump_stream, HOST_WIDE_INT_PRINT_DEC, INTVAL (mult_val));
|
||||
}
|
||||
else
|
||||
{
|
||||
fprintf (loop_dump_stream, " mult ");
|
||||
@ -4835,8 +4843,10 @@ record_giv (v, insn, src_reg, dest_reg, mult_val, add_val, benefit,
|
||||
}
|
||||
|
||||
if (GET_CODE (add_val) == CONST_INT)
|
||||
fprintf (loop_dump_stream, " add %d",
|
||||
INTVAL (add_val));
|
||||
{
|
||||
fprintf (loop_dump_stream, " add ");
|
||||
fprintf (loop_dump_stream, HOST_WIDE_INT_PRINT_DEC, INTVAL (add_val));
|
||||
}
|
||||
else
|
||||
{
|
||||
fprintf (loop_dump_stream, " add ");
|
||||
|
Loading…
Reference in New Issue
Block a user