From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 80D3D3858417; Fri, 2 Feb 2024 09:19:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 80D3D3858417 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706865569; bh=vPmFqBUrnG3EOqxLu/rSs93Nu+e/R293oiRKjrenSLU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=FTHUN9pvt8WFM8gWVzk0wA05embufsGSjq4TD5xh8e5DyDfNrkrqmKPs0p41QhMM1 dJ4hwp9+d11s4plgmVsFyDyTSszVe6frVhWkY8CZFaASpGJLan7uha4UONRmVadWsY 8Z2U1WURvu3cbqXu0/6QVvmxLgJB8SzhKwup/DjM= From: "ro at CeBiTec dot Uni-Bielefeld.DE" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/113706] c-c++-common/pr103798-2.c FAILs as C++ Date: Fri, 02 Feb 2024 09:19:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at CeBiTec dot Uni-Bielefeld.DE 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: 14.0 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=3D113706 --- Comment #4 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #3 from H.J. Lu --- > On Solaris, when compiling this > > #include > > __attribute__ ((weak)) > int > f (int a) > { > return memchr ("aE", a, 2) !=3D NULL; > } > > as C++ source, std::memchr is used and GCC doesn't treat std::memchr as > BUILT_IN_MEMCHR. I see. I'm testing a patch to directly define/declare NULL, size_t and memchr instead of including . This should still test what the testcase is supposed to test, I believe.=