diff --git a/repos/base-pistachio/lib/mk/syscall-pistachio.mk b/repos/base-pistachio/lib/mk/syscall-pistachio.mk index 044e47807d..a9b8b08edf 100644 --- a/repos/base-pistachio/lib/mk/syscall-pistachio.mk +++ b/repos/base-pistachio/lib/mk/syscall-pistachio.mk @@ -15,7 +15,7 @@ unexport .SHELLFLAGS user_build.tag: LIBGCCFLAGS="$(CC_MARCH)" \ LDFLAGS="$(addprefix $(LD_PREFIX),$(LD_MARCH)) -nostdlib" \ - CFLAGS="$(CC_MARCH) $(CC_WARN)" \ + CFLAGS="$(CC_MARCH) $(CC_WARN) -fno-tree-loop-distribute-patterns" \ $(PISTACHIO_CONTRIB_DIR)/user/configure --build=ia32 --host i686 \ CC=$(CROSS_DEV_PREFIX)gcc $(VERBOSE_MK) MAKEFLAGS= $(MAKE) -s $(VERBOSE_DIR) diff --git a/repos/base-pistachio/patches/gcc12.patch b/repos/base-pistachio/patches/gcc12.patch new file mode 100644 index 0000000000..60a081b2ab --- /dev/null +++ b/repos/base-pistachio/patches/gcc12.patch @@ -0,0 +1,22 @@ +gcc12.patch + +diff --git a/kernel/src/api/v4/tcb.h b/kernel/src/api/v4/tcb.h +index 21b10df..779aad5 100644 +--- a/kernel/src/api/v4/tcb.h ++++ b/kernel/src/api/v4/tcb.h +@@ -763,13 +763,13 @@ INLINE arch_ktcb_t *tcb_t::get_arch() + + INLINE tcb_t * get_idle_tcb() + { +- extern tcb_t *__idle_tcb; ++ extern const tcb_t *__idle_tcb; + return (tcb_t*)__idle_tcb; + } + + INLINE tcb_t * get_dummy_tcb() + { +- extern tcb_t *__dummy_tcb; ++ extern const tcb_t *__dummy_tcb; + return (tcb_t*)__dummy_tcb; + } + diff --git a/repos/base-pistachio/ports/pistachio.hash b/repos/base-pistachio/ports/pistachio.hash index f883156156..2e07c71e7e 100644 --- a/repos/base-pistachio/ports/pistachio.hash +++ b/repos/base-pistachio/ports/pistachio.hash @@ -1 +1 @@ -2961c41705536e84699829f8c1d3825c24c063d3 +10ce61c40c6a740070eee64320bce5df390180fa