From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 353FD3858C30; Fri, 8 Dec 2023 02:57:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 353FD3858C30 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1702004236; bh=E10AhGZuYj8zEu5hWxRSAqERO5e4Nk5jkJsNhUemRog=; h=From:To:Subject:Date:In-Reply-To:References:From; b=xYflrIGUTzWEPSSn1B4NiJTcH29beHuRbkwlNYAsLWACwpjgnnoeNCYHNsZX4pW2V tsdkV53jh/pdQHyI258yucT0ftzFix9eN3XFk5ovFqeOoMxgbwU3DUXvxkl6xOdUqC uKx633W4j28CHFBN02cgL7nQZNK53OYiUkuv/+EQ= From: "guminb at ajou dot ac.kr" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/112758] [13/14 Regression] Inconsistent Bitwise AND Operation Result between int and long long int Date: Fri, 08 Dec 2023 02:57:15 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: needs-bisection, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: guminb at ajou dot ac.kr 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: 13.3 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=3D112758 --- Comment #2 from gyumin --- Dear GCC Development Team, I recently reported an inconsistency in the GCC compiler (RISC-V 64 version 14.0.0) involving bitwise AND operations between int and long long int variables. This issue, which occurs under different optimization levels, has been acknowledged, and I appreciate your response. Given the nature of this bug, I am curious about its potential impact on open-source projects. Specifically, I am concerned that the unexpected beha= vior in bitwise operations under different optimization levels might introduce vulnerabilities or other issues in open-source software that relies on prec= ise bitwise manipulations. Could you please provide some insights on whether this bug might have secur= ity implications for open-source projects? Also, are there any recommended guidelines or best practices for developers to mitigate potential risks ari= sing from this issue in their projects? Thank you for your attention to this matter. Best regards, [Gyumin Baek]=