From patchwork Tue Apr 2 07:41:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 1074005 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-498740-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=adacore.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="KvYGPglj"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44YLk96qYDz9sT9 for ; Tue, 2 Apr 2019 18:41:19 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=yij5ds6u6gCb0kIt 8pBxzjIJrXZDI8zJYPclhDZdXINIa29m5X3/ujruQOC0MUw+1QmT/IfVijkb9fsh 4w5n6suTEuiOvV3pLlIF7v48hcD5XfU7f+abmuJkKZbMW8B8x1UppljHQC6DGsCV GvE1kKGJJvBpUhkNyWGXH1q2WZY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=default; bh=SRWKU63YjQeghK/i+fcQ2u Ei2AY=; b=KvYGPgljF9C0v+Wr5xVG+oHlKzOwtmHfPe2K1CmrGrzcADNZCeztFF ep4evMpjJgmpz+ArDzrvr/4hmQi0wCkLN/A4TqQWInNCOKOB7EUEk0i1ypwAvzfu fenZjy20YcG13RzNrVug3KKcCS0iChVb7wVArDJjR4+9eNqbkJgLI= Received: (qmail 51675 invoked by alias); 2 Apr 2019 07:41:12 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 51571 invoked by uid 89); 2 Apr 2019 07:41:12 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-6.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=270031, HX-Languages-Length:1888 X-HELO: smtp.eu.adacore.com Received: from mel.act-europe.fr (HELO smtp.eu.adacore.com) (194.98.77.210) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 02 Apr 2019 07:41:11 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id B30128138F for ; Tue, 2 Apr 2019 09:41:08 +0200 (CEST) Received: from smtp.eu.adacore.com ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id J5U66Q9saCud for ; Tue, 2 Apr 2019 09:41:08 +0200 (CEST) Received: from polaris.localnet (bon31-6-88-161-99-133.fbx.proxad.net [88.161.99.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.eu.adacore.com (Postfix) with ESMTPSA id 86E6181369 for ; Tue, 2 Apr 2019 09:41:08 +0200 (CEST) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: [SPARC] Disable ASAN on 64-bit SPARC/Linux Date: Tue, 02 Apr 2019 09:41:06 +0200 Message-ID: <4250572.7xyhvO53UI@polaris> MIME-Version: 1.0 With the same error message as on SPARC/Solaris (as I have neither the time nor the energy to get through the awkward upstream submission process again). Tested on SPARC/Solaris and SPARC/Linux, applied on the mainline. 2019-04-02 Eric Botcazou * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro. (ASAN_CC1_SPEC): Use it in 64-bit mode. * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon. Index: config/sparc/linux64.h =================================================================== --- config/sparc/linux64.h (revision 270031) +++ config/sparc/linux64.h (working copy) @@ -143,8 +143,18 @@ extern const char *host_detect_local_cpu #define DRIVER_SELF_SPECS MCPU_MTUNE_NATIVE_SPECS +/* -fsanitize=address is currently only supported for 32-bit. */ +#define ASAN_REJECT_SPEC \ + "%{!%:sanitize(thread):%e-fsanitize=address is not supported in this configuration}" + #undef ASAN_CC1_SPEC -#define ASAN_CC1_SPEC "%{%:sanitize(address):-funwind-tables}" +#if DEFAULT_ARCH32_P +#define ASAN_CC1_SPEC \ + "%{%:sanitize(address):-funwind-tables %{m64:" ASAN_REJECT_SPEC "}}" +#else +#define ASAN_CC1_SPEC \ + "%{%:sanitize(address):-funwind-tables %{!m32:" ASAN_REJECT_SPEC "}}" +#endif #undef CC1_SPEC #if DEFAULT_ARCH32_P Index: config/sparc/sol2.h =================================================================== --- config/sparc/sol2.h (revision 270031) +++ config/sparc/sol2.h (working copy) @@ -324,7 +324,7 @@ extern const char *host_detect_local_cpu /* -fsanitize=address is currently only supported for 32-bit. */ #define ASAN_REJECT_SPEC \ - DEF_ARCH64_SPEC("%e:-fsanitize=address is not supported in this configuration") + DEF_ARCH64_SPEC("%e-fsanitize=address is not supported in this configuration") /* Register the Solaris-specific #pragma directives. */