From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8A46A395542F; Wed, 21 Apr 2021 13:17:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8A46A395542F From: "lucier at math dot purdue.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/100152] Possible 10.3 bad code generation regression from 10.2/9.3 on Mac OS 10.15.7 (Catalina) Date: Wed, 21 Apr 2021 13:17:26 +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: 10.3.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: lucier at math dot purdue.edu X-Bugzilla-Status: UNCONFIRMED 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 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, 21 Apr 2021 13:17:27 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100152 --- Comment #16 from lucier at math dot purdue.edu --- I have figured out how to build and then run the app in lldb to reliably reproduce the error. To configure and build Gambit, the Scheme->C compiler: 51 8:56 mkdir gambit-test 52 8:56 cd gambit-test 53 8:56 git clone https://github.com/gambit/gambit.git 54 8:57 cd gambit 55 9:00 ./configure 'CC=3D/usr/local/gcc-10.3.0/bin/gcc -save-temps= -g' '--enable-single-host' '--enable-shared' 56 9:01 make -j12 After a few minutes the "make -j12" should end with the message: *** to compile the builtin modules you should: make modules Then in the same directory I ran a command to just print the version number= and configuration information of Gambit; I ran the interpreter gsi instead of t= he compiler gsc: [Bradleys-Mac-mini:~/programs/gambit-test/gambit] lucier% lldb gsi/gsi (lldb) target create "gsi/gsi" Current executable set to '/Users/lucier/programs/gambit-test/gambit/gsi/gs= i' (x86_64). (lldb) process launch -v DYLD_LIBRARY_PATH=3D./lib:./gsi:./gsc --=20 -:~~bin=3D./bin,~~lib=3D./lib,~~include=3D./include -v Process 39231 launched: '/Users/lucier/programs/gambit-test/gambit/gsi/gsi' (x86_64) Process 39231 stopped * thread #1, queue =3D 'com.apple.main-thread', stop reason =3D EXC_BAD_INS= TRUCTION (code=3D12, subcode=3D0x0) frame #0: 0x000000010012d010 libgambit.dylib`___SCMOBJ_to_NONNULLSTRING(obj=3D, x=3D0x00007ffeefbfa6b8, arg_num=3D, char_encoding=3D, fudge=3D) at c_intf.c:3280:173 3277 p =3D r; 3278=20=20 3279 for (i=3D0; i 3280 ___UTF_8_put (&p, ___INT(___STRINGREF(obj,___FIX(i)))); 3281=20=20 3282 *p =3D 0; 3283=20=20 Target 0: (gsi) stopped. This is my first time running lldb, so I'm a bit slow. To your other questions: It's not JIT-generated code, and I'll work on buil= ding a mainline compiler to test it, too. Hope this helps.=