[AArch64 trivial] Don't define a macro when a variable will do

* config/aarch64/aarch64.c
	(aarch64_output_simd_mov_immediate): Make "buf_size" a variable
	rather than a macro.

From-SVN: r236311
This commit is contained in:
James Greenhalgh 2016-05-17 08:54:19 +00:00 committed by James Greenhalgh
parent e37288a608
commit 83faf7d007
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
* config/aarch64/aarch64.c
(aarch64_output_simd_mov_immediate): Make "buf_size" a variable
rather than a macro.
2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
* doc/invoke.texi (AArch64 Options): Various updates.

View file

@ -11845,12 +11845,11 @@ aarch64_output_simd_mov_immediate (rtx const_vector,
info.value = GEN_INT (0);
else
{
#define buf_size 20
const unsigned int buf_size = 20;
char float_buf[buf_size] = {'\0'};
real_to_decimal_for_mode (float_buf,
CONST_DOUBLE_REAL_VALUE (info.value),
buf_size, buf_size, 1, mode);
#undef buf_size
if (lane_count == 1)
snprintf (templ, sizeof (templ), "fmov\t%%d0, %s", float_buf);