Skip to content

Commit a07a2b0

Browse files
committed
Revert "Fix a RTL bug for libgccjit which fixes a 'unrecognizable insn' error when generating some code using target-specific builtins"
This reverts commit 2a01db3.
1 parent 801fefd commit a07a2b0

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

gcc/emit-rtl.cc

+2-7
Original file line numberDiff line numberDiff line change
@@ -6357,13 +6357,8 @@ init_emit_once (void)
63576357
/* Don't use gen_rtx_CONST_INT here since gen_rtx_CONST_INT in this case
63586358
tries to use these variables. */
63596359
for (i = - MAX_SAVED_CONST_INT; i <= MAX_SAVED_CONST_INT; i++)
6360-
{
6361-
// Do not initialize twice the constants because there are used elsewhere
6362-
// and libgccjit execute this function twice.
6363-
if (const_int_rtx[i + MAX_SAVED_CONST_INT] == NULL)
6364-
const_int_rtx[i + MAX_SAVED_CONST_INT] =
6365-
gen_rtx_raw_CONST_INT (VOIDmode, (HOST_WIDE_INT) i);
6366-
}
6360+
const_int_rtx[i + MAX_SAVED_CONST_INT] =
6361+
gen_rtx_raw_CONST_INT (VOIDmode, (HOST_WIDE_INT) i);
63676362

63686363
if (STORE_FLAG_VALUE >= - MAX_SAVED_CONST_INT
63696364
&& STORE_FLAG_VALUE <= MAX_SAVED_CONST_INT)

0 commit comments

Comments
 (0)