From patchwork Thu May 31 09:32:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Klose X-Patchwork-Id: 923270 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-478811-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ubuntu.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="iTmL6n6H"; 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 40xMhH182zz9s0x for ; Thu, 31 May 2018 19:33:02 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=hFXKryYrOb3jCM6BKzsJGrNQsf5dEQgIK+ReElLuNeRX+rQcGo WRmKr8z52YaQTHaODF+09B4zj3wCW0BNxwdRNAgU5bkUtWZgsUgZaAf4Z2fBpshE 3O2VEv25elSQQna35KBRIN+VpQ2bJQoxyn4RfJ8Tt37uBbx99ZIyY72A0= 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:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=gJnoHu64AIE92rs6iorEekIsFiM=; b=iTmL6n6Hv1xNHWA6xjFV U37ZjRGQCrLpq7VtZP/VoLsFboPeD4XazB23jHLKHa7+shhhTQmwUQ2y7p7Q0ZXh lkSaAa2sh5meURY6HrdIAxOw7UCMGscryriS8cGKTVY1IaKqt6xbDoICj+1bs6ym +Mom3cOJs3udhhhg0VmW818= Received: (qmail 77689 invoked by alias); 31 May 2018 09:32:56 -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 77678 invoked by uid 89); 31 May 2018 09:32:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-12.6 required=5.0 tests=BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=H*Ad:D*ubuntu.com, H*r:sk:authent X-HELO: einhorn-mail.in-berlin.de Received: from einhorn-mail.in-berlin.de (HELO einhorn-mail.in-berlin.de) (217.197.80.20) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 31 May 2018 09:32:54 +0000 X-Envelope-From: doko@ubuntu.com X-Envelope-To: Received: from authenticated.user (localhost [127.0.0.1]) by einhorn.in-berlin.de with ESMTP id w4V9WoQS012249 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 31 May 2018 11:32:51 +0200 To: GCC Patches From: Matthias Klose Subject: [patch] fix libsanitizer build on sparc64 (32bit multilib) Openpgp: preference=signencrypt Message-ID: <372ccbfd-9e0d-09ff-e67c-91c23d4103c5@ubuntu.com> Date: Thu, 31 May 2018 11:32:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 The fix for PR85835 causes the build to fail on sparc64-linux-gnu in the 32bit multilib. Testing the attached patch in a multilib enabled sparc64 cross build. Ok for the trunk and branches if the build succeeds? Matthias 2018-05-31 Matthias Klose PR sanitizer/86012 * sanitizer_common/sanitizer_platform_limits_posix.cc: Define SIZEOF_STRUCT_USTAT for 32bit sparc. libsanitizer/ 2018-05-31 Matthias Klose PR sanitizer/86012 * sanitizer_common/sanitizer_platform_limits_posix.cc: Define SIZEOF_STRUCT_USTAT for 32bit sparc. --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc +++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc @@ -256,7 +256,7 @@ || defined(__x86_64__) #define SIZEOF_STRUCT_USTAT 32 #elif defined(__arm__) || defined(__i386__) || defined(__mips__) \ - || defined(__powerpc__) || defined(__s390__) + || defined(__powerpc__) || defined(__s390__) || defined(__sparc__) #define SIZEOF_STRUCT_USTAT 20 #else #error Unknown size of struct ustat