From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B72073856092; Wed, 25 May 2022 02:15:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B72073856092 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/34422] Bootstrap error with --enable-fixed-point (configure should reject --enable-fixed-point on platforms that don't support it) Date: Wed, 25 May 2022 02:15:30 +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: 4.3.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: enhancement X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: egallager at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2022 02:15:30 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D34422 --- Comment #10 from Eric Gallager --- Current code is like this: # Enable C extension for fixed-point arithmetic. AC_ARG_ENABLE(fixed-point, [AS_HELP_STRING([--enable-fixed-point], [enable fixed-point arithmetic extension to C])], [], [ case $target in arm*) enable_fixed_point=3Dyes ;; mips*-*-*) enable_fixed_point=3Dyes ;; loongarch*-*-*) enable_fixed_point=3Dyes ;; *) AC_MSG_WARN([fixed-point is not supported for this target, ignored]) enable_fixed_point=3Dno ;; esac ]) AC_SUBST(enable_fixed_point) Let's check the documentation for AC_ARG_ENABLE: https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.71/ht= ml_node/Package-Options.html So, argument 3 is used if the flag is given, and argument 4 is used when the flag is *not* given... so when it says "ignored" in the warning, there's nothing being ignored, because the flag wasn't actually given... perhaps the 3rd and 4th arguments just need to be swapped?=