From patchwork Sun Dec 3 05:10:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Law X-Patchwork-Id: 81222 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C86CF3857C49 for ; Sun, 3 Dec 2023 05:10:35 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-oa1-x2b.google.com (mail-oa1-x2b.google.com [IPv6:2001:4860:4864:20::2b]) by sourceware.org (Postfix) with ESMTPS id 264143858C53 for ; Sun, 3 Dec 2023 05:10:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 264143858C53 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 264143858C53 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:4860:4864:20::2b ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701580221; cv=none; b=eKR22RtFfuNuSkDJudydcRcrLRXRZB5FY1iOJdR7zpk1c0ID0ujhAzxHwrgOYtou7xQW9/QJzX49lGBTSledGvCnxJfwperwuQN9dw33hWteNABch6yAhzP8XQ+SPLCqsieOCpkbRwdJBObQ6GlDMXp3ro1B7T4Yw+2fj1TUrB4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701580221; c=relaxed/simple; bh=2lrUSJehAYsEsa4rkZ9oylU0Ah6kP/7NuQXEb314p4o=; h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject; b=ECTbmJq1FrIyRhoJ29X+kf4afDaD1JFzRlh6YA4gtf8GQ/HHXAElttNCptW0s9jEDdEpC+W21y1Qyed6zSpBCgxVjDILUrWsxS70Yz/wYsXzV/qcQpAoZwjZn6tYtsnM9lyA6zS2FD24E/roCic98s9i1cDSRdxgjlnrbat8ySo= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-oa1-x2b.google.com with SMTP id 586e51a60fabf-1fb04fb8d28so927784fac.3 for ; Sat, 02 Dec 2023 21:10:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701580218; x=1702185018; darn=gcc.gnu.org; h=subject:from:to:content-language:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=qIKTnRLDW2QXEYj+0EvLXwR0xG6ADXQS9N2Uy6Q9wPA=; b=SXTxdDBGTSO1LotB5mpc1y1ZtiwGpE8/Ii1Bee+bojmOgvyEelsw4XIfUht8maqASj aCG7/nA7mJt6eF7I+5OPrIfRjmH61+DY+O4TOAZkyxhLpD4rfBtoE2KLsvSAgqCbmSKS icdwKnzeRmSiFHYX1G4jSj8CCSjP9Mi9hP43wq4GeKdAuvKwGwt8BFm+34d/iPubwv0H LreqRltJCLBWJheRhqd07oP/EL/JCethR9V80uM8s2UNoaDyOa2CfqN0F8u3oyKttrss VpQU7F6Vl+dkuZzD7UP5XO9I/SGyWoxcFMKVRRdSSxdQKaZHHu4S60IV3OVAxAcF1cIm sBWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701580218; x=1702185018; h=subject:from:to:content-language:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qIKTnRLDW2QXEYj+0EvLXwR0xG6ADXQS9N2Uy6Q9wPA=; b=h8kRYvTAN7SIxtQnjXvsh7+hqDwinlple9zgBm0eSOQOlvUnW+bJxrISuBbu8SKxxn 7fchrC2GlF2tPk8dLksGXyqI+J8hWdI/3smG0xf/LuPl1REcFfof07CyNUykPJn5H5Qh VbQbHmRDIMQM89tULHFp9vEWYbijl58/mWPQN7Gl5Z7UpbD7OTYthaHYTM72tBg30GKM IiFr2F45LSxgbkK4cdx3nmv5MjLyN/zbQ4OHEs5X6jaMk+J3EefgEltAXwx5ooRBPlJX udwU/T8M1d33pd4GbB3UR8gEbk7rvsafFHMSs7zba4/rjXC9JSlOmlWfnK9Nm4H9xtf7 eKpg== X-Gm-Message-State: AOJu0YyFu6LAIZyRNu6Mima/IiIRcj28CPB5+O7U1AIVjmMhdETZSTfm n/q2dYeJ31mKbaNyHZWTwBy/UMP5bOtQzg== X-Google-Smtp-Source: AGHT+IHLeC48ipVk3kg4przuMpHohjnW/ajFswKB1PShNI72rbmEDWO1iOtJtFufroTrUpejgbXy+g== X-Received: by 2002:a05:6870:1708:b0:1fb:17ca:7e91 with SMTP id h8-20020a056870170800b001fb17ca7e91mr1610966oae.27.1701580218298; Sat, 02 Dec 2023 21:10:18 -0800 (PST) Received: from [172.31.0.109] ([136.36.130.248]) by smtp.gmail.com with ESMTPSA id s11-20020a63214b000000b005b9288d51f0sm5462350pgm.48.2023.12.02.21.10.17 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 02 Dec 2023 21:10:17 -0800 (PST) Message-ID: Date: Sat, 2 Dec 2023 22:10:16 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: "gcc-patches@gcc.gnu.org" From: Jeff Law Subject: [committed] Fix rx build failure in libgcc X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org The rx port has a bunch of what I presume are ABI compatibility functions in libgcc. Those compatibility functions routines such as __eqdf2 from libgcc, but without a prototype. This patch adds the missing prototypes. Pushed to the trunk, Jeff commit f1fdd2839ccbc1028b59fbaa7f342e41e3bef848 Author: Jeff Law Date: Sat Dec 2 22:07:59 2023 -0700 [committed] Fix rx build failure in libgcc The rx port has a bunch of what I presume are ABI compatibility functions in libgcc. Those compatibility functions routines such as __eqdf2 from libgcc, but without a prototype. This patch adds the missing prototypes. libgcc/ * config/rx/rx-abi-functions.c (__ltdf2, __gtdf2): Add prototype. (__ledf2, __gedf2, __eqdf2, __nedf2): Likewise. (__ltsf2, __gtsf2, __lesf2, __gesf2, __eqsf2, __nesf2): Likewise. diff --git a/libgcc/config/rx/rx-abi-functions.c b/libgcc/config/rx/rx-abi-functions.c index f505d7d24c3..fc96e4ff171 100644 --- a/libgcc/config/rx/rx-abi-functions.c +++ b/libgcc/config/rx/rx-abi-functions.c @@ -33,6 +33,13 @@ #ifdef __RX_64BIT_DOUBLES__ +extern int __ltdf2 (double, double); +extern int __gtdf2 (double, double); +extern int __ledf2 (double, double); +extern int __gedf2 (double, double); +extern int __eqdf2 (double, double); +extern int __nedf2 (double, double); + int _COM_CMPLTd (double a, double b) { return __ltdf2 (a, b) == -1; } int _COM_CMPGTd (double a, double b) { return __gtdf2 (a, b) == 1; } int _COM_CMPLEd (double a, double b) { return __ledf2 (a, b) != 1; } @@ -49,6 +56,13 @@ int _COM_CMPNEf (double, double) __attribute__ ((weak, alias ("_COM_CMPNEd"))); #else /* 32-bit doubles. */ +extern int __ltsf2 (float, float); +extern int __gtsf2 (float, float); +extern int __lesf2 (float, float); +extern int __gesf2 (float, float); +extern int __eqsf2 (float, float); +extern int __nesf2 (float, float); + double _COM_CONVfd (float a) { return a; } float _COM_CONVdf (double a) { return a; }