From patchwork Sun Apr 21 10:23:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iain Buclaw X-Patchwork-Id: 1088453 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-499521-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=quarantine dis=none) header.from=gdcproject.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="h4oDWvG7"; 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 44n5Ql6Nqxz9s5c for ; Sun, 21 Apr 2019 20:23:37 +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 :mime-version:from:date:message-id:subject:to:content-type; q= dns; s=default; b=HkUuEq0yPJ0Bjdl3zbIdUM25wEZtt6PHe/dmzPSdLCTwHG WJ7CyYUY4RmehGrfhJh+2VeqRi/zESt9EKs46dZ/7mvNw6q9ju5NcS+bZldD8X/I XocuG8TB6+IFZ5RuoEuIRaWBcHkUIvtGzgehQeco0TQ44828W0ctI60W7ABMc= 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 :mime-version:from:date:message-id:subject:to:content-type; s= default; bh=Ea6o36GWblh+gOP6y2mPQcbarTY=; b=h4oDWvG7uyG/qbVdhl8N S0cf5qadlGHgQV4VH9JZig71TzYK8EdsKPqznf0jFpNw9drXvmUz4f+vo0zu145Y LbPDjsK9C/Cy2TCd+RQrFW0VG4lwT1jTMNO/kk1ZeUfADt8zso1qpXaxgYFSYHLv TI+MXe7HBwXZJTKqML5XBr0= Received: (qmail 109475 invoked by alias); 21 Apr 2019 10:23:28 -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 109457 invoked by uid 89); 21 Apr 2019 10:23:27 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-19.3 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=sk:directo X-HELO: mail-qt1-f178.google.com Received: from mail-qt1-f178.google.com (HELO mail-qt1-f178.google.com) (209.85.160.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 21 Apr 2019 10:23:26 +0000 Received: by mail-qt1-f178.google.com with SMTP id i14so9469984qtr.10 for ; Sun, 21 Apr 2019 03:23:26 -0700 (PDT) MIME-Version: 1.0 From: Iain Buclaw Date: Sun, 21 Apr 2019 12:23:13 +0200 Message-ID: Subject: [PATCH, libphobos] Committed merge with upstream phobos 428460ddd To: gcc-patches X-IsSubscribed: yes Hi, This patch merges the libphobos library with upstream phobos 428460ddd. Defines growDownwards on SPARC64, fixing PR d/90064, and backports another fix to std.process, allowing permissions tests to be skipped when running as root. Bootstrapped and regression tested on x86_64-linux-gnu. Committed to trunk as r270483. diff --git a/libphobos/src/MERGE b/libphobos/src/MERGE index b4d44b55624..3935c059403 100644 --- a/libphobos/src/MERGE +++ b/libphobos/src/MERGE @@ -1,4 +1,4 @@ -cf95639ffd9ed6f3b9d10d98461b2fbd31615757 +428460ddd8087fa28815e613ff04facb51108a7b The first line of this file holds the git revision number of the last merge done from the dlang/phobos repository. diff --git a/libphobos/src/std/experimental/allocator/building_blocks/region.d b/libphobos/src/std/experimental/allocator/building_blocks/region.d index 3d8431c23ca..43dfdb788e5 100644 --- a/libphobos/src/std/experimental/allocator/building_blocks/region.d +++ b/libphobos/src/std/experimental/allocator/building_blocks/region.d @@ -395,6 +395,7 @@ struct InSituRegion(size_t size, size_t minAlign = platformAlignment) else version (RISCV32) enum growDownwards = Yes.growDownwards; else version (RISCV64) enum growDownwards = Yes.growDownwards; else version (SPARC) enum growDownwards = Yes.growDownwards; + else version (SPARC64) enum growDownwards = Yes.growDownwards; else version (SystemZ) enum growDownwards = Yes.growDownwards; else static assert(0, "Dunno how the stack grows on this architecture."); diff --git a/libphobos/src/std/process.d b/libphobos/src/std/process.d index a1cac2c9fdf..b0310a870d9 100644 --- a/libphobos/src/std/process.d +++ b/libphobos/src/std/process.d @@ -1188,13 +1188,16 @@ version (Posix) @system unittest // can't run in directory if user does not have search permission on this directory version (Posix) { - import core.sys.posix.sys.stat : S_IRUSR; - auto directoryNoSearch = uniqueTempPath(); - mkdir(directoryNoSearch); - scope(exit) rmdirRecurse(directoryNoSearch); - setAttributes(directoryNoSearch, S_IRUSR); - assertThrown!ProcessException(spawnProcess(prog.path, null, Config.none, directoryNoSearch)); - assertThrown!ProcessException(spawnProcess(prog.path, null, Config.detached, directoryNoSearch)); + if (core.sys.posix.unistd.getuid() != 0) + { + import core.sys.posix.sys.stat : S_IRUSR; + auto directoryNoSearch = uniqueTempPath(); + mkdir(directoryNoSearch); + scope(exit) rmdirRecurse(directoryNoSearch); + setAttributes(directoryNoSearch, S_IRUSR); + assertThrown!ProcessException(spawnProcess(prog.path, null, Config.none, directoryNoSearch)); + assertThrown!ProcessException(spawnProcess(prog.path, null, Config.detached, directoryNoSearch)); + } } }