target/m68k: Switch fpu_rom from make_floatx80() to make_floatx80_init()
commit6fa9ba09dbf4eb8b52bcb47d6820957f1b77ee0b
authorKamil Rytarowski <n54@gmx.com>
Mon, 4 Sep 2017 21:23:06 +0000 (4 23:23 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Sun, 10 Sep 2017 16:07:40 +0000 (10 18:07 +0200)
treeba2587f74d992720abd6d238066ad5f340812544
parentfcea73709b966a7ded9efa7b106ea50c7fe9025c
target/m68k: Switch fpu_rom from make_floatx80() to make_floatx80_init()

GCC 4.7.2 on SunOS reports that the values assigned to array members are not
real constants:

target/m68k/fpu_helper.c:32:5: error: initializer element is not constant
target/m68k/fpu_helper.c:32:5: error: (near initialization for 'fpu_rom[0]')
rules.mak:66: recipe for target 'target/m68k/fpu_helper.o' failed

Convert the array to make_floatx80_init() to fix it.
Replace floatx80_pi-like constants with make_floatx80_init() as they are
defined as make_floatx80().

This fixes build on SmartOS (Joyent).

Signed-off-by: Kamil Rytarowski <n54@gmx.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20170904212306.3020-1-n54@gmx.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
target/m68k/fpu_helper.c