From patchwork Thu Mar 30 03:47:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Pinski X-Patchwork-Id: 76878 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp851066vqo; Wed, 29 Mar 2023 20:49:21 -0700 (PDT) X-Google-Smtp-Source: AKy350apINkntC1DYbYilGtUPt0ydYkLrDCp1S3/CcY1gA9hqrXf57fOzF1MTAsoAYYAzcQ5E1KZ X-Received: by 2002:aa7:ce0f:0:b0:502:24a4:b0ad with SMTP id d15-20020aa7ce0f000000b0050224a4b0admr20752549edv.4.1680148161031; Wed, 29 Mar 2023 20:49:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680148161; cv=none; d=google.com; s=arc-20160816; b=lMYi9ZrcLNnKkcwvKQ94JX/8MN4mcgyx1Ms4KpmL1W85i5b5sMMv1xK/UFPdgIOqzR Jv8fahLXUFrTiBAOhXL6A3khYfYacLSY8+jJqH7pdXxitKfXipotxQm4sgXLhp2dFOzt A2Sr1i4Wv9AKwoCXOgc4Uf6aNRZHGy8/DsCjV7DyBloJXAUGEADyq6gZduqsvjZA+3bd ywQ5+hVh7udDe+HOz/RKuodLYhxSnW/Cer4lR9FGJO0+iLLrDAAnknK1dFW1nRNNia2/ 3IurFrCU3gDKaawiu7YShkd89QvoJEIqFX2RGqJyB0hmDvlkByl2HE+lVF/Y5DLEqzKf p/Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=DrzZTNe5Qt56r8bMrrv6u4v+Y2/n1LGixstL+O7q2DI=; b=W9GoHdZ4JyNBcE9euXpOKJKlCFXkqaDOnp1LG/cCMUZpEq6BBkxnEi0jSWOgoE6RLT Q/qLbxdBaot7yZeAV90J1VywKgp1H80Qp+RD4RyBvGuayldwlEs4/Om1yK6cusrm+rBk bs3MVwe26W4uWjpjMD8snE9F1nFuyBri8S/BXHTnABI+qmaYJAnQcxgEJLl05NZWkulP l6D/ZqgglPts6DefoNSGwnHBf49KE4UDo2szG1M2jToDY4qBF6g/UjisI+UspNpykxcS fqqxBnHRl3VtE04uA2XlTHKwnuBTLzXPNYJqhG0wIL1LIQNmjP9lcbHmWDxHAM91kgNK sSIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=M7aMKjuB; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id w16-20020aa7d290000000b004af6e957024si33030895edq.580.2023.03.29.20.49.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Mar 2023 20:49:21 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=M7aMKjuB; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 652843858439 for ; Thu, 30 Mar 2023 03:49:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 652843858439 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1680148159; bh=DrzZTNe5Qt56r8bMrrv6u4v+Y2/n1LGixstL+O7q2DI=; h=To:CC:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=M7aMKjuBR3WtlTdbW1wExj1Thvseyn9r1uQvvLdP5wXpSWafEdyNuNSmo2uaGZd3M +g0GKTpS4g5MiZKeuPYwAwHV1wlaH6P9/OPn8sYkvjovRn9gv7EEknxjz3Qm2Ge6hO pvKbAoX557MAwFDRtof9cnHeWi3G+ED6SJT5/sRk= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by sourceware.org (Postfix) with ESMTPS id F26D43858CDA; Thu, 30 Mar 2023 03:48:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F26D43858CDA Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32U3lJCZ020423; Wed, 29 Mar 2023 20:48:15 -0700 Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3pn2ty005e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 29 Mar 2023 20:48:15 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Wed, 29 Mar 2023 20:48:14 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Wed, 29 Mar 2023 20:48:13 -0700 Received: from vpnclient.wrightpinski.org.com (unknown [10.69.242.67]) by maili.marvell.com (Postfix) with ESMTP id 83B065C68EB; Wed, 29 Mar 2023 20:48:13 -0700 (PDT) To: , CC: Andrew Pinski Subject: [PATCH] Fix fc-prototypes usage with C_INT64_T and non LP64 Targets. Date: Wed, 29 Mar 2023 20:47:53 -0700 Message-ID: <20230330034753.3661606-1-apinski@marvell.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Proofpoint-GUID: XxydtbUU0J-yF9b50JJVAbYkYvB7ev86 X-Proofpoint-ORIG-GUID: XxydtbUU0J-yF9b50JJVAbYkYvB7ev86 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-29_16,2023-03-28_02,2023-02-09_01 X-Spam-Status: No, score=-14.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Andrew Pinski via Gcc-patches From: Andrew Pinski Reply-To: Andrew Pinski Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761763037987003967?= X-GMAIL-MSGID: =?utf-8?q?1761763037987003967?= The problem here is we were outputing long_long instead of "long long". This was just an oversight and a missing check. Committed as obvious after a bootstrap/test on x86_64-linux-gnu. gcc/fortran/ChangeLog: * dump-parse-tree.cc (get_c_type_name): Fix "long_long" type name to be "long long". Add a comment on why adding 2 to the name too. --- gcc/fortran/dump-parse-tree.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/fortran/dump-parse-tree.cc b/gcc/fortran/dump-parse-tree.cc index 3b24bdc1a6c..f4490da6a19 100644 --- a/gcc/fortran/dump-parse-tree.cc +++ b/gcc/fortran/dump-parse-tree.cc @@ -3696,7 +3696,10 @@ get_c_type_name (gfc_typespec *ts, gfc_array_spec *as, const char **pre, if (c_interop_kinds_table[i].f90_type == ts->type && c_interop_kinds_table[i].value == ts->kind) { + /* Skip over 'c_'. */ *type_name = c_interop_kinds_table[i].name + 2; + if (strcmp (*type_name, "long_long") == 0) + *type_name = "long long"; if (strcmp (*type_name, "signed_char") == 0) *type_name = "signed char"; else if (strcmp (*type_name, "size_t") == 0)