From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by sourceware.org (Postfix) with ESMTPS id 9A2B63858D37 for ; Wed, 9 Mar 2022 10:39:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9A2B63858D37 X-IronPort-AV: E=McAfee;i="6200,9189,10280"; a="242387776" X-IronPort-AV: E=Sophos;i="5.90,167,1643702400"; d="scan'208";a="242387776" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2022 02:39:27 -0800 X-IronPort-AV: E=Sophos;i="5.90,167,1643702400"; d="scan'208";a="554067237" Received: from labpcdell3650-003.iul.intel.com (HELO localhost) ([172.28.49.87]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2022 02:39:26 -0800 From: Nils-Christian Kempke To: gdb-patches@sourceware.org Subject: [PATCH 00/11] Improve Fortran intrinsic types and procedures Date: Wed, 9 Mar 2022 11:39:11 +0100 Message-Id: <20220309103922.3257803-1-nils-christian.kempke@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Mar 2022 10:39:31 -0000 This series completes some of the current intrinsics handling in the Fortran language part. Mainly, it adds the KIND parameter overload to all currently implemented intrinsic procedures (in patch #9). In doing so it refactors the overload handling in f-exp.y. It also improves some of the Fortran type handling and adds a few missing types and changes the default Locical type to be of KIND=4. Lastly, it adds two sections to the documentation that (hopefully) clearly describe which Fortran intrinsic procedures and types are available in GDB. All changes only affect the Fortran language part of GDB. Any feedback is highly appreciated. Thanks! Nils Nils-Christian Kempke (11): gdb/f-lang: add Integer*1 to Fortran builtin types gdb/f-lang: remove hidden ^L characters gdb/fortran: fix complex type in Fortran builtin types gdb/fortran: reformat build_fortran_types in f-lang.c gdb/fortran: change default logical type to builtin_logical gdb/fortran: clean-up Fortran intrinsic types gdb/fortran: Change GDB print for fortran default types gdb/fortran: rename f77_keywords to f_keywords gdb/fortran: rewrite intrinsic handling and add some missing overloads gdb/fortran/testsuite: add complex from integers test gdb/doc: add section about fortran intrinsic functions and types gdb/doc/gdb.texinfo | 138 ++++++- gdb/f-exp.h | 182 +++++++-- gdb/f-exp.y | 394 ++++++++++++++------ gdb/f-lang.c | 267 +++++++++---- gdb/f-lang.h | 7 +- gdb/std-operator.def | 10 +- gdb/testsuite/gdb.fortran/complex.exp | 10 +- gdb/testsuite/gdb.fortran/complex.f90 | 7 +- gdb/testsuite/gdb.fortran/intrinsics.exp | 46 ++- gdb/testsuite/gdb.fortran/lbound-ubound.F90 | 49 ++- gdb/testsuite/gdb.fortran/lbound-ubound.exp | 27 +- gdb/testsuite/gdb.fortran/size.exp | 84 ++++- gdb/testsuite/gdb.fortran/size.f90 | 213 ++++++++--- gdb/testsuite/gdb.fortran/type-kinds.exp | 2 + gdb/testsuite/gdb.fortran/types.exp | 34 +- 15 files changed, 1151 insertions(+), 319 deletions(-) -- 2.25.1 Intel Deutschland GmbH Registered Address: Am Campeon 10, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928