From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E3945385608B; Wed, 25 May 2022 01:57:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E3945385608B 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 01:57:31 +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: 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 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 01:57:32 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D34422 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2008-01-22 00:58:46 |2022-5-24 CC| |Chao-Ying.Fu at imgtec dot= com, | |schwab at gcc dot gnu.org --- Comment #9 from Eric Gallager --- (In reply to Eric Gallager from comment #8) > (In reply to Eric Gallager from comment #6) > > So could the configure script error out earlier, then, if it is passed > > --enable-fixed-point for a target other than MIPS? >=20 > I'm going to re-title and self-assign on that basis. ...ok, so wait, looking at gcc/configure.ac, it looks like there's already = code to ignore --enable-fixed-point for unsupported targets? (current list of supported targets is arm, mips, and loongarch, for reference) Furthermore, it looks like that code has been there since Chao-ying Fu first added the flag in r0-82714-gab22c1fa94acc0... so why didn't it work and res= ult in the flag being properly ignored? I just checked again and the error still occurs; now it reads: /Users/ericgallager/gcc_newgit/abcdefghijklmnopqrstuvwxyz_01234567890.build= /./gcc/xgcc -B/Users/ericgallager/gcc_newgit/abcdefghijklmnopqrstuvwxyz_01234567890.bui= ld/./gcc/ -B/usr/local/x86_64-apple-darwin20/bin/ -B/usr/local/x86_64-apple-darwin20/= lib/ -isystem /usr/local/x86_64-apple-darwin20/include -isystem /usr/local/x86_64-apple-darwin20/sys-include -g -O2 -g -Os -O2 -g -O2 -g -Os -DIN_GCC -fPIC -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -mmacosx-version-min=3D10.4 -fno-common -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -mmacosx-version-min=3D10.4 -fno-c= ommon -I. -I. -I../.././gcc -I../../../libgcc -I../../../libgcc/. -I../../../libgcc/../gcc -I../../../libgcc/../include -DHAVE_CC_TLS -DUSE_EMUTLS -o _addQQ_s.o -MT _addQQ_s.o -MD -MP -MF _addQQ_s.dep -DSHARED -DL_add -DQQ_MODE -c ../../../libgcc/fixed-bit.c In file included from ../../../libgcc/fixed-bit.c:55: ../../../libgcc/fixed-bit.h:64:1: error: unable to emulate 'QQ' 64 | typedef _Fract QQtype __attribute__ ((mode (QQ))); | ^~~~~~~ ../../../libgcc/fixed-bit.h:65:1: error: unable to emulate 'UQQ' 65 | typedef unsigned _Fract UQQtype __attribute__ ((mode (UQQ))); | ^~~~~~~ ../../../libgcc/fixed-bit.h:66:1: error: unable to emulate 'HQ' 66 | typedef _Fract HQtype __attribute__ ((mode (HQ))); | ^~~~~~~ ../../../libgcc/fixed-bit.h:67:1: error: unable to emulate 'UHQ' 67 | typedef unsigned _Fract UHQtype __attribute__ ((mode (UHQ))); | ^~~~~~~ ../../../libgcc/fixed-bit.h:68:1: error: unable to emulate 'HA' 68 | typedef _Fract HAtype __attribute__ ((mode (HA))); | ^~~~~~~ ../../../libgcc/fixed-bit.h:69:1: error: unable to emulate 'UHA' 69 | typedef unsigned _Fract UHAtype __attribute__ ((mode (UHA))); | ^~~~~~~ ../../../libgcc/fixed-bit.h:84:1: error: unable to emulate 'SQ' 84 | typedef _Fract SQtype __attribute__ ((mode (SQ))); | ^~~~~~~ ../../../libgcc/fixed-bit.h:85:1: error: unable to emulate 'USQ' 85 | typedef unsigned _Fract USQtype __attribute__ ((mode (USQ))); | ^~~~~~~ ../../../libgcc/fixed-bit.h:86:1: error: unable to emulate 'SA' 86 | typedef _Fract SAtype __attribute__ ((mode (SA))); | ^~~~~~~ ../../../libgcc/fixed-bit.h:87:1: error: unable to emulate 'USA' 87 | typedef unsigned _Fract USAtype __attribute__ ((mode (USA))); | ^~~~~~~ ../../../libgcc/fixed-bit.h:98:1: error: unable to emulate 'DQ' 98 | typedef _Fract DQtype __attribute__ ((mode (DQ))); | ^~~~~~~ ../../../libgcc/fixed-bit.h:99:1: error: unable to emulate 'UDQ' 99 | typedef unsigned _Fract UDQtype __attribute__ ((mode (UDQ))); | ^~~~~~~ ../../../libgcc/fixed-bit.h:100:1: error: unable to emulate 'DA' 100 | typedef _Fract DAtype __attribute__ ((mode (DA))); | ^~~~~~~ ../../../libgcc/fixed-bit.h:101:1: error: unable to emulate 'UDA' 101 | typedef unsigned _Fract UDAtype __attribute__ ((mode (UDA))); | ^~~~~~~ ../../../libgcc/fixed-bit.h:112:1: error: unable to emulate 'TQ' 112 | typedef _Fract TQtype __attribute__ ((mode (TQ))); | ^~~~~~~ ../../../libgcc/fixed-bit.h:113:1: error: unable to emulate 'UTQ' 113 | typedef unsigned _Fract UTQtype __attribute__ ((mode (UTQ))); | ^~~~~~~ ../../../libgcc/fixed-bit.h:114:1: error: unable to emulate 'TA' 114 | typedef _Fract TAtype __attribute__ ((mode (TA))); | ^~~~~~~ ../../../libgcc/fixed-bit.h:115:1: error: unable to emulate 'UTA' 115 | typedef unsigned _Fract UTAtype __attribute__ ((mode (UTA))); | ^~~~~~~ ../../../libgcc/fixed-bit.c: In function '__addqq3': ../../../libgcc/fixed-bit.c:60:1: internal compiler error: in classify_argument, at config/i386/i386.cc:2494 60 | { | ^ Please submit a full bug report, with preprocessed source (by using -freport-bug). See for instructions. make[1]: *** [_addQQ_s.o] Error 1 make: *** [all-target-libgcc] Error 2 cc-ing people who touched the code in gcc/configure.ac that ought to cause = the flag to be ignored most recently, according to git blame.=