From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 60D9E3858D33; Tue, 2 May 2023 19:10:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 60D9E3858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683054609; bh=hz4oBRXwqyoQymzKq6kOj94bB6kQIgjmzVNN9Ezpu7o=; h=From:To:Subject:Date:In-Reply-To:References:From; b=PmKFpHZk3SeIWbl6zgIZeavCOOZ/pNa2OX2obt665ORfF/9nXnr5RMn/7MW2N8qNo hZnZ7J/gL7DOonHvnzIkFeuB3WFfF832znds+UK/X6B4+Rn104AgqBSCkquLeW3VFI qFzzKOisLzIM+da465m2Vg6Z2g/j5H71eGCx5CxE= From: "jlegg at feralinteractive dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/109700] ICE with address sanitizer after declaring __builtin_alloca Date: Tue, 02 May 2023 19:10:09 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 13.1.1 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jlegg at feralinteractive dot com 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=3D109700 --- Comment #6 from James Legg --- Yes, declaring bulitin functions is bad, but I didn't expect the ICE. It wasn't done intentionally. glibc's alloca.h defines a alloca(s) macro as __builtin_alloca(s). I had some code defining _alloca as alloca for compatibility with code written to use MSC's _alloca function, and some code intended to build with MSC that attempted to declare _alloca instead of including the appropriate header, but due to macro expansion it was actually declaring __builtin_alloca.=