From patchwork Mon Oct 20 14:19:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Schmidt X-Patchwork-Id: 401144 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 D14B8140097 for ; Tue, 21 Oct 2014 01:20:44 +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 :message-id:date:from:mime-version:to:subject:references :in-reply-to:content-type; q=dns; s=default; b=bgt9q6CMd+RY8wIM5 62WbN4Cvs2HEyaoVtUXjpQv6y/wrWW6/+ZqC1+vNkyL28RfDxAvNq1z131xf6mod 4BkfQzsfr//3huTUap7wPiyoFDF0nKmPyAOR8I97FA4gUT5Ar9+pS1ir2VNse7wU ISk4nJI+JGG06Kjs9vc3tNfGcM= 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:date:from:mime-version:to:subject:references :in-reply-to:content-type; s=default; bh=Acllv2rZdd4Sqra6OXM8iIt n8w4=; b=lYMtG5TH8rvz0yVMmB9Ci8bhHz1OP3Po5U/io+tEhkLqV8dDqvNR9ym vDs7UdGZ427I4liC8Mxz3SwlwkxGG/d8zOkWbv3k59TP3H/GfDAY17tAvRD1nD5g a2I96ieNCTzyonR1lWXnMV4VloVgMeYA5/2KvaQ3tqkvvAkBQ5qM= Received: (qmail 15631 invoked by alias); 20 Oct 2014 14:20:26 -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 15584 invoked by uid 89); 20 Oct 2014 14:20:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, T_FROM_12LTRDOM autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 20 Oct 2014 14:20:23 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-02.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1XgDoq-0003IA-Dn from Bernd_Schmidt@mentor.com for gcc-patches@gcc.gnu.org; Mon, 20 Oct 2014 07:20:20 -0700 Received: from [127.0.0.1] (137.202.0.76) by SVR-IES-FEM-02.mgc.mentorg.com (137.202.0.106) with Microsoft SMTP Server id 14.3.181.6; Mon, 20 Oct 2014 15:20:18 +0100 Message-ID: <544519D8.70606@codesourcery.com> Date: Mon, 20 Oct 2014 16:19:04 +0200 From: Bernd Schmidt User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.8.0 MIME-Version: 1.0 To: GCC Patches Subject: The nvptx port [1/11+] indirect jumps References: <54451994.9070209@codesourcery.com> In-Reply-To: <54451994.9070209@codesourcery.com> ptx doesn't have indirect jumps, so CODE_FOR_indirect_jump may not be defined. Add a sorry. Bernd gcc/ * optabs.c (emit_indirect_jump): Test HAVE_indirect_jump and emit a sorry if necessary. ------------------------------------------------------------------------ Index: gcc/optabs.c =================================================================== --- gcc/optabs.c (revision 422345) +++ gcc/optabs.c (revision 422346) @@ -4477,13 +4477,16 @@ prepare_float_lib_cmp (rtx x, rtx y, enu /* Generate code to indirectly jump to a location given in the rtx LOC. */ void -emit_indirect_jump (rtx loc) +emit_indirect_jump (rtx loc ATTRIBUTE_UNUSED) { +#ifndef HAVE_indirect_jump + sorry ("indirect jumps are not available on this target"); +#else struct expand_operand ops[1]; - create_address_operand (&ops[0], loc); expand_jump_insn (CODE_FOR_indirect_jump, 1, ops); emit_barrier (); +#endif } #ifdef HAVE_conditional_move