Date: Sat, 25 Apr 2020 12:26:59 +0000 From: bugzilla-noreply@freebsd.org To: powerpc@FreeBSD.org Subject: [Bug 242506] lang/gcc9: powerpc: cc1: internal compiler error: Segmentation fault (on FreeBSD 12.1-RELEASE-p1) Message-ID: <bug-242506-25139-BGqGPMJVP1@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-242506-25139@https.bugs.freebsd.org/bugzilla/> References: <bug-242506-25139@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242506 --- Comment #29 from commit-hook@freebsd.org --- A commit references this bug: Author: pkubaj Date: Sat Apr 25 12:26:35 UTC 2020 New revision: 532950 URL: https://svnweb.freebsd.org/changeset/ports/532950 Log: lang/gcc9: build with base GCC on powerpc64 elfv1 Instead of using lang/gcc8 for bootstrapping gcc9 on powerpc64 elfv1, use directly base gcc. Necessary changes: - CFLAGS_FOR_TARGET=3D"-O0" CXXFLAGS_FOR_TARGET=3D"-O0" BOOT_CFLAGS=3D"-O= 0" in CONFIGURE_ENV and MAKE_ENV. Otherwise bootstrapped compiler fails later in = the build with segfault. - CRTSTUFF_T_CFLAGS has changed optimizations to -O0, instead of -O2. -O2 worked in gcc8, because there was no -fno-asynchronous-unwind-tables flag a= dded to CRTSTUFF_T_CFLAGS. Since this works when building with clang on powerpc64 elfv2, this patch is added to EXTRA_PATCHES, only on powerpc64 elfv1, - BOOT_CFLAGS has added ? before =3D. This is to allow overriding BOOT_CF= LAGS in CONFIGURE_ENV and MAKE_ENV. - A patch by Gustavo Romero to gcc/dumpfile.c is necessary to allow compi= ling with base GCC, otherwise base GCC hits ICE. Incidentally, this patch alone = also fixes build for powerpc (32 bits) with base GCC. Bump PORTREVISION for dependency change. PR: 245511, 242506 Approved by: gerald (maintainer timeout) Changes: head/lang/gcc9/Makefile head/lang/gcc9/files/extra-patch-libgcc_config_rs6000_t-crtstuff head/lang/gcc9/files/patch-Makefile.in head/lang/gcc9/files/patch-gcc_dumpfile.c --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-242506-25139-BGqGPMJVP1>