From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 554A83858CD1; Fri, 24 Nov 2023 15:47:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 554A83858CD1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1700840870; bh=UT1lB8rGfvZIcWLAMKgbZLWTzE5bSR0Fm2OmgXNNoxo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=F0NYzJspvrf9IDz/qgRAQyI4THLyJgrLwIzKIVZAPby+ATiSkjgrTSKZN+y3cD4hH jnzoJxF70hoGjrvyrsYeb7/Bxd5wJXbXSfKpcMiECv5o7wpPi6UiVvjPkye5X57MVO E1aI6oHuNMLrBRakgTk1GDet0howmG0i6bbSoN74= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/112300] [14 Regression] Cross compiling to mipsisa64r2-sde-elf fails because "HEAP_TRAMPOLINES_INIT was not declared in this scope" since r14-4821-g28d8c680aaea46 Date: Fri, 24 Nov 2023 15:47:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: everconfirmed bug_status cf_reconfirmed_on cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D112300 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2023-11-24 CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek --- That seems like config.gcc bug for the particular target, which is the only= one which doesn't append its tm_defines to the earlier ones, but overwrites the= m: grep 'tm_defines=3D"[^$]' config.gcc=20 tm_defines=3D"MIPS_ISA_DEFAULT=3DMIPS_ISA_MIPS32R6 MIPS_ABI_DEFAULT=3DABI_32" tm_defines=3D"MIPS_ISA_DEFAULT=3DMIPS_ISA_MIPS32R2 MIPS_ABI_DEFAULT=3DABI_32" tm_defines=3D"MIPS_ISA_DEFAULT=3DMIPS_ISA_MIPS32 MIPS_ABI_DEFAULT=3DABI_32" tm_defines=3D"MIPS_ISA_DEFAULT=3DMIPS_ISA_MIPS64R6 MIPS_ABI_DEFAULT=3DABI_N32" tm_defines=3D"MIPS_ISA_DEFAULT=3DMIPS_ISA_MIPS64R2 MIPS_ABI_DEFAULT=3DABI_N32" tm_defines=3D"MIPS_ISA_DEFAULT=3DMIPS_ISA_MIPS64 MIPS_ABI_DEFAULT=3DABI_N32" tm_defines=3D"TARGET_ENDIAN_DEFAULT=3D0 $tm_defines" So, I guess 2023-11-24 Jakub Jelinek PR target/112300 * config.gcc (mips*-sde-elf*): Append to tm_defines rather than overwriting them. --- gcc/config.gcc.jj 2023-11-18 09:35:20.625089143 +0100 +++ gcc/config.gcc 2023-11-24 16:41:39.194495079 +0100 @@ -2682,22 +2682,22 @@ mips*-sde-elf*) esac case ${target} in mipsisa32r6*) - tm_defines=3D"MIPS_ISA_DEFAULT=3DMIPS_ISA_MIPS32R6 MIPS_ABI_DEFAULT=3DABI_32" + tm_defines=3D"${tm_defines} MIPS_ISA_DEFAULT=3DMIPS_ISA_MIPS32R6 MIPS_ABI_DEFAULT=3DABI_32" ;; mipsisa32r2*) - tm_defines=3D"MIPS_ISA_DEFAULT=3DMIPS_ISA_MIPS32R2 MIPS_ABI_DEFAULT=3DABI_32" + tm_defines=3D"${tm_defines} MIPS_ISA_DEFAULT=3DMIPS_ISA_MIPS32R2 MIPS_ABI_DEFAULT=3DABI_32" ;; mipsisa32*) - tm_defines=3D"MIPS_ISA_DEFAULT=3DMIPS_ISA_MIPS32 MIPS_ABI_DEFAULT=3DABI_32" + tm_defines=3D"${tm_defines} MIPS_ISA_DEFAULT=3DMIPS_ISA_MIPS32 MIPS_ABI_DEFAULT=3DABI_32" ;; mipsisa64r6*) - tm_defines=3D"MIPS_ISA_DEFAULT=3DMIPS_ISA_MIPS64R6 MIPS_ABI_DEFAULT=3DABI_N32" + tm_defines=3D"${tm_defines} MIPS_ISA_DEFAULT=3DMIPS_ISA_MIPS64R6 MIPS_ABI_DEFAULT=3DABI_N32" ;; mipsisa64r2*) - tm_defines=3D"MIPS_ISA_DEFAULT=3DMIPS_ISA_MIPS64R2 MIPS_ABI_DEFAULT=3DABI_N32" + tm_defines=3D"${tm_defines} MIPS_ISA_DEFAULT=3DMIPS_ISA_MIPS64R2 MIPS_ABI_DEFAULT=3DABI_N32" ;; mipsisa64*) - tm_defines=3D"MIPS_ISA_DEFAULT=3DMIPS_ISA_MIPS64 MIPS_ABI_DEFAULT=3DABI_N32" + tm_defines=3D"${tm_defines} MIPS_ISA_DEFAULT=3DMIPS_ISA_MIPS64 MIPS_ABI_DEFAULT=3DABI_N32" ;; esac ;; should be the right fix, but I've never heard of mips*-sde*-elf before... ;) >From looking at config.gcc, I think the change will add " LIBC_GLIBC=3D1 LIBC_UCLIBC=3D2 LIBC_BIONIC=3D3 LIBC_MUSL=3D4 HEAP_TRAMPOL= INES_INIT=3D0 " to the start of tm_defines.=