From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 506A43858D39; Sun, 17 Dec 2023 15:33:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 506A43858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1702827197; bh=V/gEJD9UCYAXTXpiGeIdH2rBLzw5AvfI9Fp+18OrLB4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=K1JpJZKwNK6Iybtwk/MDClznS+QKF4fdaA28QAvXTCgn79TBs/vV7XckHwA0vsvxj 3Vh+sxquAr1icU2FZctO/6N1oSXjgUf1zQl4MXQXWjFfJhu0hWCbKD6JqyR1wfozGZ 0QH0Mn5zhLZJ4IENMwCAqx6ilrj4LVPrDE8C0VQA= From: "gjl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/113049] Compiles to strlen even with -fno-builtin-strlen -fno-optimize-strlen Date: Sun, 17 Dec 2023 15:33:17 +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: 12.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: gjl at gcc dot gnu.org 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113049 --- Comment #5 from Georg-Johann Lay --- (In reply to Andreas Schwab from comment #4) > -fno-builtin-strlen has a different purpose. So then -fno-builtin should also not work? GCC documentation of -fno-builti= n is the same like for -fno-builtin-function. At least there should be an option to disable this, e.g. you need it when building libgcc / libc anyway, you you get silly non-functional libs.=