From patchwork Fri Nov 25 19:59:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Svante Signell X-Patchwork-Id: 84204 Delivered-To: patch@linaro.org Received: by 10.182.1.168 with SMTP id 8csp359565obn; Fri, 25 Nov 2016 12:02:25 -0800 (PST) X-Received: by 10.98.14.82 with SMTP id w79mr9453241pfi.153.1480104145891; Fri, 25 Nov 2016 12:02:25 -0800 (PST) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id 31si17612342pli.30.2016.11.25.12.02.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Nov 2016 12:02:25 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-442677-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-return-442677-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-442677-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE dis=NONE) header.from=gmail.com DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:subject:from:reply-to:to:cc:date:content-type :mime-version; q=dns; s=default; b=DH9+WB1GeutCwfFnYuuMR1PjBwrvF BTq/emXHaT7a4j67pmP4/O5y0QU1StmCrsHynLncbl4kte+elZLO/EeU8+gMLh+k O4AJplAc3aX4X3faZV3H5tJAjS2hIsR5Gfg+1rOASgbepQVNk9/2AJ9EcL+uPCaO 0PCmC4xrzwYJ3k= 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 :message-id:subject:from:reply-to:to:cc:date:content-type :mime-version; s=default; bh=HODW3wfmHhAcs++EH7Etamiy+7Q=; b=gtm C/32XFjSPoQXM/zon9WjH72ZARQJLHoPYPsgSR1g6vDM5drHD+yoPnhovwr2/dX0 upOs5PWrulEt83kcQNefHqh7QfOvTRWcsyf+KRXmI9Avca1KXba3XUlIM4p4iL9j wcn7LcgDpikfXDo7LonWlXTTe5PcGSQc04vpxSaU= Received: (qmail 6921 invoked by alias); 25 Nov 2016 19:59:43 -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 6802 invoked by uid 89); 25 Nov 2016 19:59:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, KAM_ASCII_DIVIDERS, SPF_PASS autolearn=no version=3.3.2 spammy=Sleep, multido, allrecursive, all-recursive X-HELO: mail-lf0-f68.google.com Received: from mail-lf0-f68.google.com (HELO mail-lf0-f68.google.com) (209.85.215.68) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 25 Nov 2016 19:59:31 +0000 Received: by mail-lf0-f68.google.com with SMTP id p100so4135637lfg.2 for ; Fri, 25 Nov 2016 11:59:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:reply-to:to:cc:date :mime-version; bh=AmwvFS5k1tiorPvJ9S3G13TOJ7Z4RgLNvD8ZfwEM1KY=; b=JamvL2WOGWt2bpEqGS9+offnJUAM9/Ey+eir20/yeuD/UyPW+Gmsnlm9FBgIUyNJnE oXLbZI2nTodj1GXpr7R7WmrZfkmvsY2CZvyRQ87J1jgSoSBuEQskV0KvT+E3l+iIPBbL lO338E+0AGugyYHy5JDL8/+HKzAQxI14WpThwFRkaPy7AqPPlr9SdiSxkY0viG8YJt2L IILQpCF8PyUQ4f7Rel6pktv7Zl9MBiW0RWHTFAqQpkfeM54/UdMSrR6UtPZs9gGx38IY 4GQEXggSRFxL5IMeoH9MOw8MTPmXLDA3iOTN5jqGAOlCrDrjSDs3z+EjQ0ucZ0J2B69Y NdVA== X-Gm-Message-State: AKaTC03q3MJUP6CIzGTVJPQ0clMm6/snEPpI7UPwKG+Y/Z0DEva/UPueY7i00sK/s3eXXw== X-Received: by 10.25.228.155 with SMTP id x27mr4164953lfi.55.1480103968843; Fri, 25 Nov 2016 11:59:28 -0800 (PST) Received: from z97-4790k.lan (81-227-159-95-no235.tbcn.telia.com. [81.227.159.95]) by smtp.googlemail.com with ESMTPSA id h129sm9638655lfh.7.2016.11.25.11.59.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Nov 2016 11:59:28 -0800 (PST) Message-ID: <1480103967.24382.100.camel@gmail.com> Subject: Hurd port for gcc go PATCH 5-10(23) From: Svante Signell Reply-To: svante.signell@gmail.com To: bug-hurd Cc: gcc-patches , Debian GCC Maintainers Date: Fri, 25 Nov 2016 20:59:27 +0100 Mime-Version: 1.0 * src_libgo_configure.ac.diff: Define GOOS=gnu and LIBGO_IS_GNU * src_libgo_Makefile.am.diff: Add support for GNU/Hurd. * src_libgo_Makefile.in.diff: Update accordingly with autreconf2.64 * src_libgo_mksysinfo.sh.diff: Define SYS_IOCTL to 0 if not defined,  Fix: #define EWOULDBLOCK EAGAIN in  Fix: #define st_dev st_fsid in + +#include "runtime.h" +#include "defs.h" + +int32 +getproccount(void) +{ + int32 n; + n = (int32)sysconf(_SC_NPROCESSORS_ONLN); + return n > 1 ? n : 1; +}