From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.CeBiTec.Uni-Bielefeld.DE (smtp.CeBiTec.Uni-Bielefeld.DE [129.70.160.84]) by sourceware.org (Postfix) with ESMTPS id C58903858C2C for ; Mon, 3 Oct 2022 11:57:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C58903858C2C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=CeBiTec.Uni-Bielefeld.DE Authentication-Results: sourceware.org; spf=none smtp.mailfrom=cebitec.uni-bielefeld.de Received: from localhost (localhost [127.0.0.1]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 222D46716E for ; Mon, 3 Oct 2022 13:57:14 +0200 (CEST) X-Virus-Scanned: amavisd-new at CeBiTec.Uni-Bielefeld.DE Received: from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (smtp.cebitec.uni-bielefeld.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lQsytcTg5-er for ; Mon, 3 Oct 2022 13:57:13 +0200 (CEST) Received: from manam.CeBiTec.Uni-Bielefeld.DE (p5085519d.dip0.t-ipconnect.de [80.133.81.157]) (Authenticated sender: ro) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPSA id E30EC673D7 for ; Mon, 3 Oct 2022 13:57:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=CeBiTec.Uni-Bielefeld.DE; s=20200306; t=1664798233; bh=/riN8LAOVZlnH58poUtppD7xTLFY24FeQ/fBDyBO4UY=; h=From:To:Subject:Date:From; b=IyYEnDCO0ZWheJYDZohHTLbNbLWK6mH5mzfvD7ItLKcfiI5hVbU807H5xF076ciXl rji9a4c/DgI0VG3a/AbU0z4b0UM3ay2Sj4p1rzuvIVyB7icN+mEINmWqDBTAZOHKrs EqfybM6killyT47tKeStKFlfqfSzAIUzHinP26Ak2SEiP8VDuGp9HHwA78zybHstx5 SUTHHbVLPWI4RuBbJamQD7a/Ik4/IIxSbuFszfUkTQTb5pT2L8vLRMvSpmpIEv55eD 0Q/5flQVnyT9BUXXnSI59s25VdRhVflEhPI1b184uoWMV8NybO6IAF78Ffzt6aGmjy +lFh7s9QZr/Og== From: Rainer Orth To: gcc-patches@gcc.gnu.org Subject: [COMMITTED] libsanitizer: Fix Solaris 11.3 compilation of sanitizer_procmaps_solaris.cpp [PR105531] Date: Mon, 03 Oct 2022 13:57:12 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.90 (usg-unix-v) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Status: No, score=-3794.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,GIT_PATCH_0,KAM_ASCII_DIVIDERS,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --=-=-= Content-Type: text/plain The latest libsanitizer import broke Solaris 11.3 bootstrap again, due to an oversight of mine. A fix has been committed upstream https://reviews.llvm.org/D133556 This patch cherry-picks it. Tested on Solaris 11.3 and 11.4, SPARC and x86. Approved by Martin in the PR, committed to trunk. Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University 2022-09-23 Rainer Orth libsanitizer: PR sanitizer/105531 * sanitizer_common/sanitizer_procmaps_solaris.cpp: Cherry-pick llvm-project revision 1cd4d63fb9ab0f04c7151911dde0d58b673823de. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=sol113-libsanitizer-lfs.patch # HG changeset patch # Parent 5b7d5c364ecfeb253a886a59046e4bd6bd339c1e Fix sanitizer_procmaps_solaris.cpp compilation on Solaris 11.3 diff --git a/libsanitizer/sanitizer_common/sanitizer_procmaps_solaris.cpp b/libsanitizer/sanitizer_common/sanitizer_procmaps_solaris.cpp --- a/libsanitizer/sanitizer_common/sanitizer_procmaps_solaris.cpp +++ b/libsanitizer/sanitizer_common/sanitizer_procmaps_solaris.cpp @@ -9,6 +9,8 @@ // Information about the process mappings (Solaris-specific parts). //===----------------------------------------------------------------------===// +// Before Solaris 11.4, doesn't work in a largefile environment. +#undef _FILE_OFFSET_BITS #include "sanitizer_platform.h" #if SANITIZER_SOLARIS # include --=-=-=--