From patchwork Sat Jul 7 16:00:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jim Wilson X-Patchwork-Id: 940846 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-481166-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="uQlmlNoM"; dkim=pass (2048-bit key; unprotected) header.d=sifive.com header.i=@sifive.com header.b="SLQpy1Gl"; 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 41NGYB5STnz9rxs for ; Sun, 8 Jul 2018 02:01:17 +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:from :to:cc:subject:date:message-id; q=dns; s=default; b=DOic4MpuNe// KFOLIn0yG2g+bEE+hFBZ+Z3tqOLv+SA7vEqRZsyuObfh44ig2tqGy74XUzYgXl6F KBZ/z5+Fm+SspculQ6Bgx5W8/GPgX+IDcxpBV6bzDkPHQXc4r0zM69/FuD7OcNrg AQ/mDT7blw008UG6ksYXNZeBUceDMuE= 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:from :to:cc:subject:date:message-id; s=default; bh=/bIXay+jTQBPBDprfK uvx1zFy+c=; b=uQlmlNoMyPL9ZHj7snMaYaxzqNaJ1IBNMvAe5TuUenBsW4f146 ynJ3lSeE7Cxq4MpednaLMFqVCxH3Ybz6xmWcw3pexM7XWV0gFC+qjSaeK8f8+jBG 82OnCpMMQyH7uXJ6dn3DKhlBTYvhOCLOqMyAH//4Ijk+Vz6Iy7yzBy4tw= Received: (qmail 109729 invoked by alias); 7 Jul 2018 16:01:09 -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 109579 invoked by uid 89); 7 Jul 2018 16:00:59 -0000 Authentication-Results: sourceware.org; auth=none 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, RCVD_IN_DNSWL_NONE, SPF_PASS, TIME_LIMIT_EXCEEDED autolearn=unavailable version=3.3.2 spammy=exp, HX-Received:sk:m14-v6m, Hx-spam-relays-external:209.85.192.194, H*RU:209.85.192.194 X-HELO: mail-pf0-f194.google.com Received: from mail-pf0-f194.google.com (HELO mail-pf0-f194.google.com) (209.85.192.194) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 07 Jul 2018 16:00:36 +0000 Received: by mail-pf0-f194.google.com with SMTP id l123-v6so10702568pfl.13 for ; Sat, 07 Jul 2018 09:00:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id; bh=d6MhRfcsDyEBuDYMzVn/c4VnHNrkW9/Qj/8BZ1C5Hco=; b=SLQpy1GlIHpVB/TSaZK7ixBKZulOf0op65qDk0NwtejYxNvLCr4VsU6bBUOmYf7fyn OWThk7A20p9db6L1KhNT+eRxLaarBPVnl6LXSdOdt+RflMX5o8m3xmQb+M+Q6fOi7z0D hHeylRg8tZDDd7I7Oxv9uBmVo0cXDzzIaeSPzjvg7NhJcLHi9IYblSwIedfGQnXJdKP0 i5JFt7clfm30+wLUIxa2K9WrXBHjAMenxf52rXoeBfFwO5zk25s/tUnxNrFpMt/ItwLL TFxeR6KHlP+orzmj8cabVtM0FMF7Yq5lUVEYc792GkIBAV2jl6ulB4Zvw2nvV9DO4JJv UrBg== Received: from rohan.hsd1.ca.comcast.net ([2601:646:c103:8ec:2ccd:f257:ea1:cdae]) by smtp.gmail.com with ESMTPSA id o26-v6sm14904030pge.61.2018.07.07.09.00.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 07 Jul 2018 09:00:11 -0700 (PDT) From: Jim Wilson To: gcc-patches@gcc.gnu.org Cc: Jim Wilson Subject: [PATCH] RISC-V: Finish Ada port. Date: Sat, 7 Jul 2018 09:00:08 -0700 Message-Id: <20180707160008.22538-1-jimw@sifive.com> Thanks to Eric Botcazou, this eliminates almost all of the remaining Ada testsuite failures by adding a missing definition for the target specific handling of function descriptors. Tested with a native riscv64-linux bootstrap with Ada, and running the Ada testsuite. There are only 4 failures left. Committed. Jim gcc/ * config/riscv/riscv.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): New. --- gcc/config/riscv/riscv.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/config/riscv/riscv.c b/gcc/config/riscv/riscv.c index d87836f53f8..218f4de7d41 100644 --- a/gcc/config/riscv/riscv.c +++ b/gcc/config/riscv/riscv.c @@ -4786,6 +4786,10 @@ riscv_constant_alignment (const_tree exp, HOST_WIDE_INT align) #undef TARGET_WARN_FUNC_RETURN #define TARGET_WARN_FUNC_RETURN riscv_warn_func_return +/* The low bit is ignored by jump instructions so is safe to use. */ +#undef TARGET_CUSTOM_FUNCTION_DESCRIPTORS +#define TARGET_CUSTOM_FUNCTION_DESCRIPTORS 1 + struct gcc_target targetm = TARGET_INITIALIZER; #include "gt-riscv.h"