Skip to content

Commit b4382cc

Browse files
committed
Another go at the round fix on 32 bit
1 parent 46a17e7 commit b4382cc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

m3-sys/m3cc/gcc/gcc/m3cg/parse.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5151,7 +5151,7 @@ M3CG_HANDLER (ROUND)
51515151
m3_start_call ();
51525152
m3_pop_param (src_t);
51535153

5154-
if (dst_T == T_int_32)
5154+
if (LONG_TYPE_SIZE == 32)
51555155
dt = t_int_32;
51565156
else
51575157
dt = t_int_64;
@@ -5166,7 +5166,6 @@ M3CG_HANDLER (ROUND)
51665166
m3_call_direct (lroundq_proc, dt);
51675167
}
51685168
}
5169-
EXPR_REF (-1) = m3_build1 (FIX_TRUNC_EXPR, dst_t, EXPR_REF (-1));
51705169

51715170
/*
51725171
the original code, which produces erroneous results for reel

0 commit comments

Comments
 (0)