From patchwork Sun May 15 10:57:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Piotr Kubaj X-Patchwork-Id: 1631183 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4L1K953WtYz9s0w for ; Sun, 15 May 2022 20:57:44 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 10AFD3856DF8 for ; Sun, 15 May 2022 10:57:39 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail.anongoth.pl (mail.anongoth.pl [46.248.190.61]) by sourceware.org (Postfix) with ESMTPS id BDD913858D32 for ; Sun, 15 May 2022 10:57:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BDD913858D32 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=FreeBSD.org Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=FreeBSD.org Received: from talos.g.anongoth.pl (unknown [192.168.1.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: pkubaj@anongoth.pl) by mail.anongoth.pl (Postfix) with ESMTPSA id E414A199B58; Sun, 15 May 2022 12:57:23 +0200 (CEST) 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 12:57:13 +0200 Message-Id: <20220515105713.46010-1-pkubaj@FreeBSD.org> X-Mailer: git-send-email 2.36.0 MIME-Version: 1.0 X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_SOFTFAIL, 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+incoming=patchwork.ozlabs.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