From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E7EFE398241D; Fri, 20 May 2022 00:10:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E7EFE398241D From: "hp at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/105614] mips64: sanitizer_platform_limits_linux.cpp:75:38: error: static assertion failed Date: Fri, 20 May 2022 00:10:57 +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: 11.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hp at gcc dot gnu.org 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2022 00:10:58 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105614 --- Comment #7 from Hans-Peter Nilsson --- (In reply to Martin Li=C5=A1ka from comment #6) > The GCC divergence comes from > https://github.com/gcc-mirror/gcc/commit/ > 9f943b2446f2d0a345bbf9b4be3d3a4316372270 (Why refer to gcc commits through some mirror repo?) This is r9-17-g9f943b2446f2d0. At a glance, it looks like a trivial merge error. ISTM the fix is to *agai= n* do as in that patch; drop "|| defined(__mips__)" to avoid suffering from the badness: diff --git a/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.= cpp b/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cpp index 2b1a2f7932cb..d9f1bc3b8bbd 100644 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cpp +++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cpp @@ -31,7 +31,7 @@ // Also, for some platforms (e.g. mips) there are additional members in the // struct stat:s. #include -# if defined(__x86_64__) || defined(__mips__) || defined(__hexagon__) +# if defined(__x86_64__) || defined(__hexagon__) # include # else # define ino_t __kernel_ino_t HTH.=