finally fix 64-bit

This commit is contained in:
camthesaxman
2017-10-26 00:28:13 -05:00
parent 928b195197
commit f49e7cbb33
2 changed files with 7 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ VPATH = $(srcdir)
CC = gcc
BASE_CFLAGS = -g -std=gnu11 -m32
BASE_CFLAGS = -g -std=gnu11
INCLUDES = -I. -I$(srcdir)

View File

@@ -1085,8 +1085,10 @@
{
case MODE_FLOAT:
{
int i;
union real_extract u;
memcpy((char *)&u, (char *)&CONST_DOUBLE_LOW(operands[0]), sizeof u);
for (i = 0; i < sizeof (REAL_VALUE_TYPE) / sizeof (HOST_WIDE_INT); i++)
u.i[i] = XWINT(operands[0], 2 + i);
assemble_real (u.d, GET_MODE (operands[0]));
break;
}
@@ -1107,8 +1109,10 @@
{
case MODE_FLOAT:
{
int i;
union real_extract u;
memcpy((char *)&u, (char *)&CONST_DOUBLE_LOW(operands[0]), sizeof u);
for (i = 0; i < sizeof (REAL_VALUE_TYPE) / sizeof (HOST_WIDE_INT); i++)
u.i[i] = XWINT(operands[0], 2 + i);
assemble_real (u.d, GET_MODE (operands[0]));
break;
}