From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6D57D3858C62; Wed, 17 Apr 2024 20:14:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6D57D3858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713384866; bh=+wi/4c6Vkvet39k96T/vpKJUI5+gEtKg/Ew9mD9JJ9E=; h=From:To:Subject:Date:In-Reply-To:References:From; b=UPGYMcXxnDsSGUvmx3Hf7z/c6nYDxl5zGFrzpSpys/UT8ZVLYtvGurfF6Z0uQg8A0 mRf8nqF4FFgwFNeUrpGtAgjYbkBedpqqltGbP4swVwhe7cpfQfbAwRZ8HOPUJgneAI ZkN+y/8d+GIyS1UtSDIqED7TPc5JwpCSyARDx1Zc= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/114757] stringop-overflow warning with -fsanitize=address while building JDK Date: Wed, 17 Apr 2024 20:14:25 +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: 13.2.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: WAITING 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: component blocked cf_reconfirmed_on everconfirmed keywords short_desc 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114757 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Component|other |tree-optimization Blocks| |88443 Last reconfirmed| |2024-04-17 Ever confirmed|0 |1 Keywords| |diagnostic Summary|[ASAN] ASAN miscalculates |stringop-overflow warning |size of region when |with -fsanitize=3Daddress |building the JDK |while building JDK Status|UNCONFIRMED |WAITING --- Comment #2 from Andrew Pinski --- Note the documentation has the following warning about warnings and sanitiz= ers: ``` Note that sanitizers tend to increase the rate of false positive warnings, = most notably those around -Wmaybe-uninitialized. We recommend against combining -Werror and [the use of] sanitizers. ``` https://gcc.gnu.org/onlinedocs/gcc-13.2.0/gcc/Instrumentation-Options.html#= index-fsanitize_003daddress Can you attach the preprocessed source as requested by https://gcc.gnu.org/bugs/ ? And the exact options which are being used to invoke gcc? Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D88443 [Bug 88443] [meta-bug] bogus/missing -Wstringop-overflow warnings=