From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 690BF3989CA8; Wed, 21 Apr 2021 15:32:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 690BF3989CA8 From: "iains at gcc dot gnu.org" 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 15:32:46 +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: iains 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: everconfirmed cf_reconfirmed_on bug_status 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 15:32:46 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100152 Iain Sandoe changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Last reconfirmed| |2021-04-21 Status|UNCONFIRMED |NEW --- Comment #17 from Iain Sandoe --- (In reply to lucier from comment #16) > 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: >=20 > 51 8:56 mkdir gambit-test > 52 8:56 cd gambit-test > 53 8:56 git clone https://github.com/gambit/gambit.git $ git log -1 --oneline bb05af0a (HEAD -> master, origin/master, origin/HEAD) Fix missing return address when using (declare (not optimize-dead-local-variables) (not interrupts-enabled)) > 54 8:57 cd gambit > 55 9:00 ./configure 'CC=3D/usr/local/gcc-10.3.0/bin/gcc -save-tem= ps > -g' '--enable-single-host' '--enable-shared' > Hope this helps. [so far on Darwin16 / macOS 10.12 ] Yes it does - can confirm that a 10.2 build works and 10.3 fails but the e= rror I get is different: $ DYLD_LIBRARY_PATH=3Dlib:gsi:gsc gsi/gsi -:~~bin=3D./bin,~~lib=3D./lib,~~include=3D./include -v Bus error: 10 lldb -- gsi/gsi -:~~bin=3D./bin,~~lib=3D./lib,~~include=3D./include -v (lldb) env DYLD_LIBRARY_PATH=3Dlib:gsi:gsc (lldb) r * thread #1, queue =3D 'com.apple.main-thread', stop reason =3D EXC_BAD_ACC= ESS (code=3D2, address=3D0x1000a88f0) frame #0: 0x00000001000a3475 libgambit.dylib`___release_rc(ptr=3D0x00000001000a8900) at mem.c:724 721 { 722 ___rc_header *h =3D ___CAST(___rc_header*,ptr) - 1; 723=20=20 -> 724 if (--h->refcount =3D=3D 0) 725 { 726 ___rc_header *prev =3D h->prev; I will try later on 10.15,=