From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 36A2A3858434; Sat, 31 Jul 2021 19:20:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 36A2A3858434 From: "zed at lab127 dot karelia.ru" To: gcc-bugs@gcc.gnu.org Subject: [Bug d/101692] Referenses in Slist are not counted by GC Date: Sat, 31 Jul 2021 19:20:10 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: d X-Bugzilla-Version: 8.4.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zed at lab127 dot karelia.ru X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ibuclaw at gdcproject dot 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: Sat, 31 Jul 2021 19:20:10 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101692 --- Comment #6 from Eugene Zhiganov --- ... and there is another "interesting" observation... In one one of the programs there is a StageMachine instance, that catches SIGTERM and SIGINT and there is 'honest' reference to that instance in main(), but... * if compliled with -Os optimization flag, something absolutely unimaginable happens -=20 this instance is destroyed by GC and what is interesting, this happens every time I run the program and it happens always after ~6 seconds after the start * if complied without -Os, everything is Ok. wonders will never cease, -Os is doing something very 'special'=