From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D1AAF3858414; Wed, 24 May 2023 10:05:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D1AAF3858414 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684922701; bh=d5o+pni8NRr829Am6jTuljchvVC8Wz5oc5BDK4r42kE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rbHTV33GN1Ts0+ocv2fdE0GPCMINFD8f5Tx/6KZCoh1TSEjm31znCW82fqo8XbhFi J/gXEQwkUu1rLEO2ELN6nMVSMaysu7PcW0kTb5NjUH+qZFwp78AcVyPCiW+Teqnsop +TKtRddi0SVcoDgPsbkgaY6vVFVPNFOtySMvBs7E= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/109954] x86-64's -m32 does not conform to documentation Date: Wed, 24 May 2023 10:05:00 +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: 13.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109954 --- Comment #5 from Jakub Jelinek --- If -march=3D isn't specified, then the default configured value (explicitly= or implicitly) is used for it. That is the case on lots of architectures, not just for -m32. We say in the documentation: @item --with-cpu=3D@var{cpu} @itemx --with-cpu-32=3D@var{cpu} @itemx --with-cpu-64=3D@var{cpu} Specify which cpu variant the compiler should generate code for by default. @var{cpu} will be used as the default value of the @option{-mcpu=3D} switch. This option is only supported on some targets, including ARC, ARM, i386, M6= 8k, PowerPC, and SPARC@. It is mandatory for ARC@. The @option{--with-cpu-32}= and @option{--with-cpu-64} options specify separate default CPUs for 32-bit and 64-bit modes; these options are only supported for aarch64, i386, x86-64, PowerPC, and SPARC@. @item --with-schedule=3D@var{cpu} @itemx --with-arch=3D@var{cpu} @itemx --with-arch-32=3D@var{cpu} @itemx --with-arch-64=3D@var{cpu} @itemx --with-tune=3D@var{cpu} @itemx --with-tune-32=3D@var{cpu} @itemx --with-tune-64=3D@var{cpu} @itemx --with-abi=3D@var{abi} @itemx --with-fpu=3D@var{type} @itemx --with-float=3D@var{type} These configure options provide default values for the @option{-mschedule= =3D}, @option{-march=3D}, @option{-mtune=3D}, @option{-mabi=3D}, and @option{-mfp= u=3D} options and for @option{-mhard-float} or @option{-msoft-float}. As with @option{--with-cpu}, which switches will be accepted and acceptable values of the arguments depend on the target. So, if you configure gcc --with-arch-32=3Di386 vs. --with-arch-32=3Dx86-64,= it will behave differently. And if you don't use any of those --with-arch*=3D configure options, a defa= ult is picked.=