Fix real_2expN mode arguments in fixed-value.c
authorRichard Sandiford <richard.sandiford@arm.com>
Fri, 30 Oct 2015 13:44:01 +0000 (13:44 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 30 Oct 2015 13:44:01 +0000 (13:44 +0000)
commit4ff7defd046ca231a35c93b4000962b37ccad31c
treea3a5d0470a7d4cb16735b3d808f30ab1f1695643
parentd5e09aa0aaec24109949afabb20b813e9096905f
Fix real_2expN mode arguments in fixed-value.c

fixed-value.c was passing a fixed-point mode to the floating-point
real_2expN routine.  That didn't cause a problem in practice because
all real_2expN did was check for decimal float modes, but it triggered
a failure with an upcoming patch.

Tested on x86_64-linux-gnu, arm-linux-gnueabi and aarch64-linux-gnu.

gcc/
* fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
(fixed_to_decimal, fixed_convert_from_real)
(real_convert_from_fixed): Fix mode arguments to real_2expN.

From-SVN: r229580
gcc/ChangeLog
gcc/fixed-value.c