Commit 83faf7d0 by James Greenhalgh Committed by James Greenhalgh

[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
parent e37288a6
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> 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
* doc/invoke.texi (AArch64 Options): Various updates. * doc/invoke.texi (AArch64 Options): Various updates.
......
...@@ -11845,12 +11845,11 @@ aarch64_output_simd_mov_immediate (rtx const_vector, ...@@ -11845,12 +11845,11 @@ aarch64_output_simd_mov_immediate (rtx const_vector,
info.value = GEN_INT (0); info.value = GEN_INT (0);
else else
{ {
#define buf_size 20 const unsigned int buf_size = 20;
char float_buf[buf_size] = {'\0'}; char float_buf[buf_size] = {'\0'};
real_to_decimal_for_mode (float_buf, real_to_decimal_for_mode (float_buf,
CONST_DOUBLE_REAL_VALUE (info.value), CONST_DOUBLE_REAL_VALUE (info.value),
buf_size, buf_size, 1, mode); buf_size, buf_size, 1, mode);
#undef buf_size
if (lane_count == 1) if (lane_count == 1)
snprintf (templ, sizeof (templ), "fmov\t%%d0, %s", float_buf); snprintf (templ, sizeof (templ), "fmov\t%%d0, %s", float_buf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment