Skip to content
Snippets Groups Projects
Commit b70c0a2d authored by Georg-Johann Lay's avatar Georg-Johann Lay Committed by Georg-Johann Lay
Browse files

re PR other/54701 (double_int conversion breaks avr build)

	PR other/54701
	* config/avr/avr-log.c (avr_double_int_pop_digit): Reerite using
	double_int::udivmod.

From-SVN: r191716
parent b1bdc68d
No related branches found
No related tags found
No related merge requests found
2012-09-25 Georg-Johann Lay <avr@gjlay.de>
PR other/54701
* config/avr/avr-log.c (avr_double_int_pop_digit): Reerite using
double_int::udivmod.
2012-09-25 Georg-Johann Lay <avr@gjlay.de> 2012-09-25 Georg-Johann Lay <avr@gjlay.de>
   
* config/avr/avr.c (avr_set_current_function): Check cfun->machine * config/avr/avr.c (avr_set_current_function): Check cfun->machine
......
...@@ -144,15 +144,12 @@ avr_log_set_caller_f (const char *caller) ...@@ -144,15 +144,12 @@ avr_log_set_caller_f (const char *caller)
static unsigned static unsigned
avr_double_int_pop_digit (double_int *cst, unsigned base) avr_double_int_pop_digit (double_int *cst, unsigned base)
{ {
unsigned HOST_WIDE_INT resl, reml; double_int drem;
HOST_WIDE_INT resh, remh;
div_and_round_double (FLOOR_DIV_EXPR, true, cst->low, cst->high, base, 0, *cst = cst->udivmod (double_int::from_uhwi (base), (int) FLOOR_DIV_EXPR,
&resl, &resh, &reml, &remh); &drem);
cst->high = resh;
cst->low = resl;
return reml; return (unsigned) drem.to_uhwi();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment