From patchwork Mon Oct 29 22:10:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iain Buclaw X-Patchwork-Id: 990585 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-488563-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none 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="SbRix61I"; 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 42kTMF5WW8z9s3q for ; Tue, 30 Oct 2018 09:11:04 +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 :mime-version:from:date:message-id:subject:to:cc:content-type; q=dns; s=default; b=gb3ZMXfdQ25AE+AsnctCCT2MhPzwFUkCVW3vmF1tzZx 6FZKXxFYLQk3xN1JP6hElzyPETZd01xvkyz4ctSISp7FrZ0ng6rT6wgiZ2nwJSvE FA8h8w5YgqN9zgBSntAP80P4lxwuB3fF+x+DdwLQVtWDnAUmLJEmyrYwgLSeX/FA = 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:cc:content-type; s=default; bh=bY+jtLhYPOKxWKBNm4hgdriHsEE=; b=SbRix61I4lHPBisDy stdUBVPafZM55vs8jjiAMp9AWmp/6Z8sE+iXxauB565RrRSoMnyZRi9I3yZGTJ8s ZdRlUu4/hth/Hq5H+lCEqjx/zqbSHcaatYIiUJqQTkaFgQ2vjvgxoxSlol9KmQrt qgQttDpiURX1c0q2C9lcprhv/A= Received: (qmail 98700 invoked by alias); 29 Oct 2018 22:10:57 -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 98676 invoked by uid 89); 29 Oct 2018 22:10:56 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-24.9 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.2 spammy= X-HELO: mail-qt1-f193.google.com Received: from mail-qt1-f193.google.com (HELO mail-qt1-f193.google.com) (209.85.160.193) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 29 Oct 2018 22:10:55 +0000 Received: by mail-qt1-f193.google.com with SMTP id i15-v6so11278999qtr.0 for ; Mon, 29 Oct 2018 15:10:55 -0700 (PDT) MIME-Version: 1.0 From: Iain Buclaw Date: Mon, 29 Oct 2018 23:10:42 +0100 Message-ID: Subject: [PATCH] xstormy: Set tm_d_file in config.gcc To: gcc-patches Cc: Jeff Law X-IsSubscribed: yes The default value of tm_d_file is "${cpu_type}/${cpu_type}.h", however this header doesn't exist for the xstormy back-end, so need to explicitly override it to stormy16/stormy16.h Also including elfos.h, otherwise there's a warning about a redefinition of PREFERRED_DEBUGGING_TYPE when building with --enable-languages=d. There is no library support, but the compiler works well enough. OK for trunk? diff --git a/gcc/config.gcc b/gcc/config.gcc index 93dc2978603..b108697cfc7 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -3161,6 +3161,7 @@ xstormy16-*-elf) # For historical reasons, the target files omit the 'x'. tm_file="dbxelf.h elfos.h newlib-stdint.h stormy16/stormy16.h" tm_p_file=stormy16/stormy16-protos.h + tm_d_file="elfos.h stormy16/stormy16.h" md_file=stormy16/stormy16.md out_file=stormy16/stormy16.c extra_options=stormy16/stormy16.opt