From patchwork Thu Jul 13 10:03:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Richard Earnshaw \(lists\)" X-Patchwork-Id: 107666 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp2002062qge; Thu, 13 Jul 2017 03:03:28 -0700 (PDT) X-Received: by 10.99.55.19 with SMTP id e19mr8556852pga.28.1499940208737; Thu, 13 Jul 2017 03:03:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499940208; cv=none; d=google.com; s=arc-20160816; b=fdX3JtoUn3K/wJBHNnGOKxaGU+2wr2fMgCvvKNeWetOXr7IW6zZxLnS2leC659WyU6 2PrQoCQwgBXkElMAvugEMYapEMwwENWbXlF6Xzh9k+B75Pjn/SO/W3AHVRhU2U3J4RWd KDfrybFsE9xB2DMg3veEUxblV86x+79E5HvXk6e3XkfRvK/VOb5AwuVQ34/b0dEIcwy5 r+neCiQVc6g8mifJ5+yZM45NPnAaaeTC7e00gndJMZW2IfHhJrfH/KSux9IJW04x1+96 cQjyiuIx1gaZlJ2+IhSDEibR+nm8yCRbaRqQF1gLiu6yQQWqU/6SVacQh1BkAlHtNnO/ Ac6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:date:message-id:subject:from:to :delivered-to:sender:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature:arc-authentication-results; bh=dUsRVbWyXtwEGWjPccrFonXJiEOPHgHIEDcLe2xX46A=; b=Qz24kmlVBSZzhHt6AkOOchCkpT4QTdAjV1m2NMTv29zhqmycb0SxZWym8IhD6vdJjs 9/AGFEXANRXbZBIeyv4ULNxlyAQe2WbB9MbRbLEgbDHzSwwjHsfmmGW4s70TPfa1lfbv zFMpcHHbflXCVDcxbsR05FPvb6xIPQkzP6m3CE/sEKcHcQtLaenHV1iFfqeiV2KTIkcB KNcStzdPZuwsh/Gm0DxmiWI4mM2PVHWCH9NcxPwIo7eOckwH49xvYSvA01trhjPBvR9V 20Z0uHR5GsG2NePO0/kvpxAQHuJr1i+mfSWSj3uX8O11HMHE/8ygPYuAKSV3YMIi9Cdh YXig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.b=pVP0yRTw; spf=pass (google.com: domain of gcc-patches-return-458071-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-458071-patch=linaro.org@gcc.gnu.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id a14si4034895plt.413.2017.07.13.03.03.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Jul 2017 03:03:28 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-458071-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 header.b=pVP0yRTw; spf=pass (google.com: domain of gcc-patches-return-458071-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-458071-patch=linaro.org@gcc.gnu.org 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=envCe7rvDXoEOobzeWQobc7gvy+NSi4/TSUjDX6YUQOxLGncfS 5USnkBq5X8REN2DbSVkg0TromCD6QgXt7vNOAiY+WSh9WAlUYCWu4mENtlizFCth H1B3xnmStqwc8zfVsI0iLaGdJ8qU9MSv161pvd5l7HslRy7HKUt+et5qU= 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=ysKIUKjDramPaxSrKvNB3uQ29Hc=; b=pVP0yRTwxEkMmmRFkCQd 6EqsPUjBb4qG9WotDIwFu+KzImjPZ/aJPCU1/w5jL8LQLI/CC6k23sd85yqXWg9k 0ABWWfT2rHthsMJNcqLj7V3EWIQbmOeQtdr+Gl8ahMdZm3DdPW31x4hh1dlv2O6Y 0mgLvjkPoTnBSyHhAlcg6HY= Received: (qmail 38027 invoked by alias); 13 Jul 2017 10:03:15 -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 36783 invoked by uid 89); 13 Jul 2017 10:03:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=reserved X-HELO: foss.arm.com Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 13 Jul 2017 10:03:13 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4935713D5; Thu, 13 Jul 2017 03:03:10 -0700 (PDT) Received: from e105689-lin.cambridge.arm.com (e105689-lin.cambridge.arm.com [10.2.207.32]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CCD503F578; Thu, 13 Jul 2017 03:03:09 -0700 (PDT) To: gcc-patches From: "Richard Earnshaw (lists)" Subject: [ARM, VXworks] Fix build Message-ID: Date: Thu, 13 Jul 2017 11:03:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 My patch last week to address selection of be8 linking mode broke the build for vxworks. It turns out that this port is one of the few remaining that is still not based on the EABI/AAPCS. This patch fixes the build, but I've not really tested it beyond building the core compiler binaries. Building a workable compiler entails downloading a load of vxworks stuff that I'm not sure where to find. The port is also *very* out-of-date. Not only does it not use the EABI, but it hasn't had support for any core added since ARMv5 (and ARMv6 was announced in 2002)! I therefore propose that we consider this port for deprecation. * config/arm/vxworks.h (TARGET_ENDIAN_DEFAULT): Define. diff --git a/gcc/config/arm/vxworks.h b/gcc/config/arm/vxworks.h index 9af37c7..f20324f 100644 --- a/gcc/config/arm/vxworks.h +++ b/gcc/config/arm/vxworks.h @@ -117,3 +117,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see /* This platform supports the probing method of stack checking (RTP mode). 8K is reserved in the stack to propagate exceptions in case of overflow. */ #define STACK_CHECK_PROTECT 8192 + +/* Unless overridded by the target options, the default is little-endian. */ +#define TARGET_ENDIAN_DEFAULT 0