Don't build insn-extract.o with rtl checking
authorMatthias Klose <doko@ubuntu.com>
Mon, 7 Dec 2020 08:27:15 +0000 (09:27 +0100)
committerMatthias Klose <doko@ubuntu.com>
Mon, 7 Dec 2020 08:27:15 +0000 (09:27 +0100)
As seen in PR98144, building insn-extract.o with rtl checking takes some memory,
and it doesn't work on 32bit architectures at all (PR97314).  Richard suggested
on irc to disable rtl checking for this auto-generated file, like it's already
done for genconditions.c.  Patching it like done for genconditons.c.

2020-12-07  Matthias Klose  <doko@ubuntu.com>

* genextract.c (print_header): Undefine ENABLE_RTL_CHECKING
and ENABLE_RTL_FLAG_CHECKING.

gcc/genextract.c

index 63911e7..359681e 100644 (file)
@@ -365,6 +365,8 @@ print_header (void)
 #define IN_TARGET_CODE 1\n\
 #include \"config.h\"\n\
 #include \"system.h\"\n\
+#undef ENABLE_RTL_CHECKING\n\
+#undef ENABLE_RTL_FLAG_CHECKING\n\
 #include \"coretypes.h\"\n\
 #include \"tm.h\"\n\
 #include \"rtl.h\"\n\