From patchwork Sun May 15 09:42:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Piotr Kubaj X-Patchwork-Id: 53989 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BD8CB3856275 for ; Sun, 15 May 2022 09:42:17 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from talos (89-72-117-76.dynamic.chello.pl [89.72.117.76]) by sourceware.org (Postfix) with ESMTPS id 2C4473858D32 for ; Sun, 15 May 2022 09:42:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2C4473858D32 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=FreeBSD.org Authentication-Results: sourceware.org; spf=none smtp.mailfrom=talos Received: from talos (localhost [127.0.0.1]) by talos (8.16.1/8.16.1) with ESMTPS id 24F9g96Y079207 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sun, 15 May 2022 11:42:09 +0200 (CEST) (envelope-from pkubaj@talos) Received: (from pkubaj@localhost) by talos (8.16.1/8.16.1/Submit) id 24F9g7Gb079206; Sun, 15 May 2022 11:42:07 +0200 (CEST) (envelope-from pkubaj) From: Piotr Kubaj To: gcc-patches@gcc.gnu.org, segher@kernel.crashing.org, dje.gcc@gmail.com Subject: [PATCH] rs6000: add support for sanitizers on FreeBSD Date: Sun, 15 May 2022 11:42:02 +0200 Message-Id: <20220515094202.79198-1-pkubaj@FreeBSD.org> X-Mailer: git-send-email 2.36.0 MIME-Version: 1.0 X-Spam-Status: No, score=-8.5 required=5.0 tests=BAYES_00, FSL_HELO_NON_FQDN_1, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, HELO_NO_DOMAIN, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, KHOP_HELO_FCRDNS, RCVD_IN_PBL, RCVD_IN_SORBS_DUL, RDNS_DYNAMIC, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Piotr Kubaj Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" GCC's f732bf6a603721f61102a08ad2d023c7c2670870 merged LLVM's 315d792130258a9b7250494be8d002ebb427b08f, which added sanitizers support for PowerPC on FreeBSD, so this commit only enables building it. Enabled sanitizers are the same as on powerpc*-*-linux*. libsanitizer * configure.tgt: add powerpc*-*-freebsd* as supported --- libsanitizer/ChangeLog | 4 ++++ libsanitizer/configure.tgt | 2 ++ 2 files changed, 6 insertions(+) diff --git a/libsanitizer/ChangeLog b/libsanitizer/ChangeLog index 52050be9476..17cc395aea1 100644 --- a/libsanitizer/ChangeLog +++ b/libsanitizer/ChangeLog @@ -1,3 +1,7 @@ +2022-05-15 Piotr Kubaj + + * configure.tgt: add powerpc*-*-freebsd* + 2022-05-05 Martin Liska * LOCAL_PATCHES: Update. diff --git a/libsanitizer/configure.tgt b/libsanitizer/configure.tgt index fb89df4935c..affe8964f84 100644 --- a/libsanitizer/configure.tgt +++ b/libsanitizer/configure.tgt @@ -31,6 +31,8 @@ case "${target}" in TSAN_TARGET_DEPENDENT_OBJECTS=tsan_rtl_amd64.lo fi ;; + powerpc*-*-freebsd*) + ;; powerpc*-*-linux*) if test x$ac_cv_sizeof_void_p = x8; then TSAN_SUPPORTED=yes