aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/avr/avr-log.c
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2013-11-04 09:04:22 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2013-11-04 09:04:22 +0000
commit7405bd18066d283bff49348d81c2985b134f5a79 (patch)
treef7c289cf58866a50061503f9f6cdc104dbc2db51 /gcc/config/avr/avr-log.c
parent94159ecf929a26211ec28c455ea38063591deda7 (diff)
downloadgcc-7405bd18066d283bff49348d81c2985b134f5a79.zip
gcc-7405bd18066d283bff49348d81c2985b134f5a79.tar.gz
gcc-7405bd18066d283bff49348d81c2985b134f5a79.tar.bz2
avr-log.c (avr_double_int_pop_digit): Delete.
gcc/ * config/avr/avr-log.c (avr_double_int_pop_digit): Delete. (avr_dump_double_int_hex): Likewise. (avr_log_vadump): Remove %D and %X handling. * config/avr/avr.c (avr_double_int_push_digit): Delete. (avr_map_op_t): Change map from double_int to unsigned int. (avr_map_op): Update accordingly. (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose) (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on unsigned ints rather than double_ints. From-SVN: r204345
Diffstat (limited to 'gcc/config/avr/avr-log.c')
-rw-r--r--gcc/config/avr/avr-log.c49
1 files changed, 0 insertions, 49 deletions
diff --git a/gcc/config/avr/avr-log.c b/gcc/config/avr/avr-log.c
index 9e538e6..87fa14d 100644
--- a/gcc/config/avr/avr-log.c
+++ b/gcc/config/avr/avr-log.c
@@ -49,8 +49,6 @@
C: enum rtx_code
m: enum machine_mode
R: enum reg_class
- D: double_int (signed decimal)
- X: double_int (unsigned hex)
L: insn list
H: location_t
@@ -138,45 +136,6 @@ avr_log_set_caller_f (const char *caller)
}
-/* Copy-paste from double-int.c:double_int_split_digit (it's static there).
- Splits last digit of *CST (taken as unsigned) in BASE and returns it. */
-
-static unsigned
-avr_double_int_pop_digit (double_int *cst, unsigned base)
-{
- double_int drem;
-
- *cst = cst->udivmod (double_int::from_uhwi (base), (int) FLOOR_DIV_EXPR,
- &drem);
-
- return (unsigned) drem.to_uhwi();
-}
-
-
-/* Dump VAL as hex value to FILE. */
-
-static void
-avr_dump_double_int_hex (FILE *file, double_int val)
-{
- unsigned digit[4];
-
- digit[0] = avr_double_int_pop_digit (&val, 1 << 16);
- digit[1] = avr_double_int_pop_digit (&val, 1 << 16);
- digit[2] = avr_double_int_pop_digit (&val, 1 << 16);
- digit[3] = avr_double_int_pop_digit (&val, 1 << 16);
-
- fprintf (file, "0x");
-
- if (digit[3] | digit[2])
- fprintf (file, "%04x%04x", digit[3], digit[2]);
-
- if (digit[3] | digit[2] | digit[1] | digit[0])
- fprintf (file, "%04x%04x", digit[1], digit[0]);
- else
- fprintf (file, "0");
-}
-
-
/* Worker function implementing the %-codes and forwarding to
respective print/dump function. */
@@ -231,14 +190,6 @@ avr_log_vadump (FILE *file, const char *fmt, va_list ap)
fprintf (file, "%d", va_arg (ap, int));
break;
- case 'D':
- dump_double_int (file, va_arg (ap, double_int), false);
- break;
-
- case 'X':
- avr_dump_double_int_hex (file, va_arg (ap, double_int));
- break;
-
case 'x':
fprintf (file, "%x", va_arg (ap, int));
break;