Re: Fortran 15.0.1 treats "shiftl" as impure

2025-04-16 Thread Steve Kargl
On Wed, Apr 16, 2025 at 04:44:23AM +, ZAPART CHRISTOPHER ANDREW wrote: > > After a recent upgrade from Fedora 41 to 42 the gfortran got updated from 14 > to 15.0.1: > > [chris@fedora FITSWEBQLSE]$ gfortran --version > GNU Fortran (GCC) 15.0.1 20250329 (Red Hat 15.0.1-0) > > The new version

Re: GSoC[Fortran Runtime argument check ] Draft of Proposal and some doubts about the needs

2025-04-07 Thread Steve Kargl
On Mon, Apr 07, 2025 at 02:42:10PM +0800, Gwen Fu wrote: > Thanks for your reply ! > >The word "parameter" has very a specific meaning in Fortran. The > >entity that is passed into a function or subroutine is an "actual > >argument". The entity within the functions associated with the > >"actual ar

Re: GSoC[Fortran Runtime argument check ] Draft of Proposal and some doubts about the needs

2025-04-06 Thread Steve Kargl
On Sat, Apr 05, 2025 at 03:16:45PM +0800, Gwen Fu wrote: > My doubt : > 1.Does the compilation option only need to support fortran versions above > 9, o5r does it also need to support fortran 77? gfortran started life as a Fortran 95 compiler. It should support anything that is Fortran 95 or late

Re: GSoC Fortran – 2018/202x – Inquiry About Project Scope

2025-04-05 Thread Steve Kargl
On Thu, Mar 27, 2025 at 03:43:49PM +, Yuao Ma wrote: > > Thanks for sharing more details. I’ve realized that implementing half-cycle > trig functions can be quite tricky. If I get the chance to refine the patch, > I’d like to go through each function one by one (if the reviewers don’t mind), >

Re: porting-to update request

2025-04-04 Thread Steve Kargl
On Fri, Apr 04, 2025 at 02:40:06AM -0400, NightStrike wrote: > > Is this email list still active? :) Are you subscribed to the list? First reply: https://gcc.gnu.org/pipermail/fortran/2025-March/061963.html Second reply: https://gcc.gnu.org/pipermail/fortran/2025-March/061981.html -- Steve

Re: GSoC 2025 - Draft Proposal for Fortran 2018/202x - RFC

2025-03-31 Thread Steve Kargl
On Sun, Mar 30, 2025 at 02:06:31PM +, Yuao Ma wrote: > > I have uploaded a draft proposal for the 'Fortran – 2018/202x' project to the > platform. You can also find a PDF version at this Google Drive link: > https://drive.google.com/file/d/1cSRPuWpXWHMwHdNItQluEYspLfylqZcU. I rarely follow ra

Re: porting-to update request

2025-03-28 Thread Steve Kargl
On Fri, Mar 28, 2025 at 02:02:03PM -0400, NightStrike wrote: > > Should I open a bugzilla PR about this? > Submit the 3-character patch to fix the error to point to -fallow-invalid-boz instead of the negative form -fno-allow-invalid-boz, which seems to have led to a manner of confusion. Other th

Re: GSoC Fortran – 2018/202x – Inquiry About Project Scope

2025-03-26 Thread Steve Kargl
starting point for the project! > > Yuao > ____ > From: Steve Kargl > Sent: Tuesday, March 25, 2025 2:25 > To: Yuao Ma > Cc: fortran@gcc.gnu.org > Subject: Re: GSoC Fortran – 2018/202x – Inquiry About Project Scope > > I've already written a prototype of the half-cycl

Re: porting-to update request

2025-03-25 Thread Steve Kargl
TL;DR version: fix your code. On Tue, Mar 25, 2025 at 11:04:52AM -0400, NightStrike wrote: > Between GCC 9 and 10, the following code now errors out: > Did you read the Release Notes for 10.1? Under the Fortran header: The handling of a BOZ literal constant has been reworked to provide

Re: [GSoC]Fortran – run-time argument checking

2025-03-25 Thread Steve Kargl
On Tue, Mar 25, 2025 at 08:34:51PM +0800, Gwen Fu wrote: > I found out that "-fcheck=*" is an option for runtime checking, but the > relevant options are commented out. > OPT_fcheck_ = 1070,/* -fcheck= */ > /* OPT_fcheck_assert = 1071, *//* -fcheck=assert */

Re: [Patch, Fortran] C prototypes for functions returning C function pointers

2025-03-24 Thread Steve Kargl
On Mon, Mar 24, 2025 at 09:40:38PM +0100, Thomas Koenig wrote: > > Regression-tested. Again no test case because I don't know > how. During testing, I also found that vtabs were dumped, > this is also corrected. > > OK for trunk? Thanks for working on this, but ... > > /* This section deals

Re: GSoC Fortran – 2018/202x – Inquiry About Project Scope

2025-03-24 Thread Steve Kargl
On Mon, Mar 24, 2025 at 08:46:50PM +0200, Janne Blomqvist wrote: > On Mon, Mar 24, 2025 at 8:25 PM Steve Kargl > wrote: > > > > I've already written a prototype of the half-cycle trig > > functions. > > > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=1131

Re: GSoC Fortran – 2018/202x – Inquiry About Project Scope

2025-03-24 Thread Steve Kargl
I've already written a prototype of the half-cycle trig functions. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113152 There are two issues that need to be address. First, some operating systems provide half-cycle trig functions in their libm. The initial patch tries to use libm functions if f

Re: [COMMITTED] libgfortran/intrinsics: Fix build for targets with int32_t=long int

2025-03-24 Thread Steve Kargl
On Sun, Mar 23, 2025 at 10:09:46AM +0100, Thomas Koenig wrote: > Hi Paul, > > > By the way, the standard just specifies integer for 'dim' in reduce, > > which I take to mean it should be default_integer_kind. > > Hmm... I'm not sure that this is actually the case; I believe it > can actually be a

Re: [PATCH] Fortran: fix bogus bounds check for reallocation on assignment [PR116706]

2025-03-19 Thread Steve Kargl
On Wed, Mar 19, 2025 at 11:08:58PM +0100, Harald Anlauf wrote: > > the attached patch addresses an actually very long-standing issue > with bogus bounds checks for components of nested derived types in > assignments when an intermediate level has the POINTER attribute > instead of the ALLOCATABLE

Re: [patch, Fortran] Fix PR 119157, regression with -Wexternal-argument-mismatch

2025-03-08 Thread Steve Kargl
On Sat, Mar 08, 2025 at 01:52:06PM +0100, Thomas Koenig wrote: > > the attached patch fixes an ICE regresseion where undo state was not > handled properly when generating formal from actual arguments, which > occurred under certain conditions with the newly introduced > -Wexternal-argument-mismatc

Re: [Ping, Patch, www-docs, Fortran, Coarray-ABI] Announce coarray-ABI changes in gfortran-15

2025-03-06 Thread Steve Kargl
Andre, Here's a bit of wordsmith. I removed the abbreviation "Esp." I'm not sure if there is additional markup needed; especially, with the "-fcoarray=single" I inserted. Coarray support has been reworked to allow access to components in derived types that have not been compiled with coarray

Re: [PATCH] Fortran: improve checking of substring bounds [PR119118]

2025-03-06 Thread Steve Kargl
On Thu, Mar 06, 2025 at 10:49:08PM +0100, Harald Anlauf wrote: > > Thanks for the speedy review! > It was a bit easier than normal. After I submitted the PR, I started to poke around in fortran/resolve.cc to see if I could deal with the issue. I saw that you grab the PR last night, and left yo

Re: [PATCH] Fortran: improve checking of substring bounds [PR119118]

2025-03-06 Thread Steve Kargl
On Thu, Mar 06, 2025 at 10:04:08PM +0100, Harald Anlauf wrote: > > this patch fixes an interesting regression that prevented substring > bounds checks from being generated if the substring start was not a > variable, but rather a constant or an expression. > > The fix I chose turned out to be a l

Re: [Fortran, Patch, PR77872, v1] Fix ICE when getting caf-token from abstract class type.

2025-03-03 Thread Steve Kargl
On Mon, Mar 03, 2025 at 03:58:24PM +0100, Andre Vehreschild wrote: > > attached patches fix a 12-regression, when a caf token is requested from an > abstract class-typed dummy. The token was not looked up in the correct spot. > Due the class typed object getting an artificial variable for direct d

Re: [PATCH] Fortran: fix front-end memleak after failure during parsing of NULLIFY

2025-03-01 Thread Steve Kargl
On Sat, Mar 01, 2025 at 03:56:21PM +0100, Harald Anlauf wrote: > > the attached patch fixes a front-end memleak that is seen when > running f951 under valgrind and while parsing invalid uses of > NULLIFY. > > I had this in my tree for some time without any problems, in an > attempt to further red

Re: [patch, Fortran] Fix PR 118862, overwide shft

2025-02-16 Thread Steve Kargl
On Sun, Feb 16, 2025 at 09:36:20AM +0100, Thomas Koenig wrote: > > this patch is a variation of Jakub's patch in the PR, which > avoids overflow on the mask used for exponentiation and > fixes unsigned HOST_WIDE_INT. I tried testing this on > a POWER machine, but --with-build-config=bootstrap-ubs

Re: [PATCH] Fortran: fix initialization of allocatable non-deferred character [PR59252]

2025-02-07 Thread Steve Kargl
On Fri, Feb 07, 2025 at 09:31:12PM +0100, Harald Anlauf wrote: > > Regtested on x86_64-pc-linux-gnu. OK for mainline? > Looks reasonable. > While it is a really old bug but wrong code, I'd like to backport > this also at least to 14-branch. Any reservations? If it passes regression testing,

Re: How to do a seek (nonadvancing read) on a stream file?

2025-02-03 Thread Steve Kargl
On Mon, Feb 03, 2025 at 01:34:09PM -0500, Andi McClure wrote: > > open(10,file=path,access='stream',form='unformatted',action='read',iostat=file_error) You opened the file with form='unformatted'. > READ (iu,"()", ADVANCE='NO', POS=file_pos) ! iu is file unit You then try to use a format statem

Re: gfortran not following deferred initialization rules for get_command_argument

2025-02-02 Thread Steve Kargl
> Summary: It is my opinion from the FORTRAN 2023 spec that the first test > program above should have worked and the additional steps in the second > test program should not have been necessary. Have I misread the spec, is > there something wrong with my code, or have I identified a bug in gfortra

Re: [PATCH] Fortran: different character lengths in array constructor [PR93289]

2025-02-01 Thread Steve Kargl
On Sat, Feb 01, 2025 at 09:49:17PM +0100, Harald Anlauf wrote: > Am 01.02.25 um 21:03 schrieb Steve Kargl: > > On Sat, Feb 01, 2025 at 07:25:51PM +0100, Harald Anlauf wrote: > > > > > > the attached patch downgrades different constant character lengths in an > >

Re: [PATCH] Fortran: different character lengths in array constructor [PR93289]

2025-02-01 Thread Steve Kargl
On Sat, Feb 01, 2025 at 07:25:51PM +0100, Harald Anlauf wrote: > > the attached patch downgrades different constant character lengths in an > array constructor from a GNU to a legacy extension, so that users get a > warning with -std=gnu. We continue to generate an error when standard > conforman

Re: [Patch, fortran] PR108434 - [12/13/14/15 Regression] ICE in class_allocatable, at fortran/expr.cc:5000

2025-01-13 Thread Steve Kargl
On Mon, Jan 13, 2025 at 01:23:58AM +0100, Manfred Schwarb wrote: > Am 11.01.25 um 07:36 schrieb Steve Kargl: > > On Fri, Jan 10, 2025 at 05:19:34PM +, Paul Richard Thomas wrote: > >> > >> As of today, Gerhard Steinmetz has no fewer than 33 regressions to his name &g

Re: [Patch, fortran] PR108434 - [12/13/14/15 Regression] ICE in class_allocatable, at fortran/expr.cc:5000

2025-01-10 Thread Steve Kargl
On Fri, Jan 10, 2025 at 05:19:34PM +, Paul Richard Thomas wrote: > > As of today, Gerhard Steinmetz has no fewer than 33 regressions to his name > out of a total of 54 for fortran and libgfortran. It's time that some of > these bugs are swatted, I think :-) > PR 70949 appears to have been fi

Re: [Patch, fortran] PR108434 - [12/13/14/15 Regression] ICE in class_allocatable, at fortran/expr.cc:5000

2025-01-10 Thread Steve Kargl
On Fri, Jan 10, 2025 at 05:19:34PM +, Paul Richard Thomas wrote: > > As of today, Gerhard Steinmetz has no fewer than 33 regressions to his name > out of a total of 54 for fortran and libgfortran. It's time that some of > these bugs are swatted, I think :-) > This patch fixes PR71844. As th

Re: [PATCH] Fortran: implement F2018 intrinsic OUT_OF_RANGE [PR115788]

2025-01-10 Thread Steve Kargl
On Fri, Jan 10, 2025 at 09:41:13PM +, Harald Anlauf wrote: > > There is one question to the reviewer(s), or those knowing better > than me how to handle IEEE infinity and NaN: with -Ofast, I needed > to add "-fno-finite-math-only" to the new testcase > gfortran.dg/ieee/out_of_range.f90, as the

Re: [Patch, fortran] PR108434 - [12/13/14/15 Regression] ICE in class_allocatable, at fortran/expr.cc:5000

2025-01-10 Thread Steve Kargl
On Fri, Jan 10, 2025 at 05:19:34PM +, Paul Richard Thomas wrote: > > As of today, Gerhard Steinmetz has no fewer than 33 regressions to his name > out of a total of 54 for fortran and libgfortran. It's time that some of > these bugs are swatted, I think :-) > When I was much more active in a

Re: [PATCH] fortran: Bump MOD_VERSION to "16" [PR118337]

2025-01-08 Thread Steve Kargl
On Wed, Jan 08, 2025 at 10:33:53AM +0100, Jakub Jelinek wrote: > > As mentioned in the PR, there is a *.mod incompatibility between GCC 14 and > GCC 15, at least when using iso_c_binding or iso_fortran_env intrinsic > modules, because new entries have been added to those modules in the middle, > c

Re: [patch, doc, Fortran] Further documentation of UNSIGNED

2025-01-07 Thread Steve Kargl
On Tue, Jan 07, 2025 at 03:28:31PM +0100, Thomas Koenig wrote: > Hello world, > > the attached patch does what it says in the ChangeLog entry. > > Tested with "make dvi" and "make pdf". > > OK for trunk? > OK. -- Steve

Re: [PATCH] Fortran: potential aliasing of complex pointer inquiry references [PR118120]

2024-12-19 Thread Steve Kargl
I'm ok withi your patch. It seems to also catch PR113928. You may want to give others a chance to chime in. -- steve On Thu, Dec 19, 2024 at 09:34:38PM +, Harald Anlauf wrote: > > the check for potential aliasing of lhs and rhs currently shortcuts > if the types differ. This is a problem

Re: [Fortran, Patch, PR117643] Implement F_C_STRING()

2024-12-18 Thread Steve Kargl
On Wed, Dec 18, 2024 at 10:09:26AM -0800, Jerry D wrote: > On 12/18/24 4:11 AM, Harald Anlauf wrote: > > Hi Steve, > > > > thanks for the draft patch. > > > > I haven't looked close enough, but you may have to add support > > for 'asis' being an optional dummy variable.  The following > > example

Re: [Fortran, Patch, PR117643] Implement F_C_STRING()

2024-12-18 Thread Steve Kargl
On Wed, Dec 18, 2024 at 01:11:14PM +0100, Harald Anlauf wrote: > > I haven't looked close enough, but you may have to add support > for 'asis' being an optional dummy variable. The following > example crashes here with a segfault: > (program snipped for brevity) > > There are other intrinsics

[Fortran, Patch, PR117643] Implement F_C_STRING()

2024-12-17 Thread Steve Kargl
All, First, I would like to thank both mikael and fx for providing help in my debugging of the in-lining in trans-intrinsic.cc. It seems I have forgotten much of what I once knew about trees. I have attached a patch that implements F2023 F_C_STRING() to https://gcc.gnu.org/bugzilla/show_bug.cgi?

Re: [Fortran, Patch, PR107635, Part 1] Rework handling of allocatable components in derived type coarrays.

2024-12-17 Thread Steve Kargl
On Mon, Dec 16, 2024 at 04:53:42AM -0800, Damian Rouson wrote: > including automatic GPU offloading. Then a few months ago, the death blow > that I couldn’t work around was robust support for kind type parameters. > gfortran doesn't have robust kind type parameters? % cat xx.f90 program foo

Re: insight needed on trans-* hacking

2024-12-15 Thread Steve Kargl
I have taken the attempt at inlining f_c_string() as far as I can. The WIP patch is attached to the PR along with the final issue that I cannot resolve. If anyone wants to finish the patch, feel free to do so. -- Steve

Re: insight needed on trans-* hacking

2024-12-13 Thread Steve Kargl
On Fri, Dec 13, 2024 at 03:09:57PM -0800, Steve Kargl wrote: > On Fri, Dec 13, 2024 at 10:54:03PM +0100, Mikael Morin wrote: > > Le 13/12/2024 à 21:55, Steve Kargl a écrit : > > > On Mon, Dec 09, 2024 at 06:39:19PM -0800, Steve Kargl wrote: > > > > > > > &

Re: insight needed on trans-* hacking

2024-12-13 Thread Steve Kargl
On Fri, Dec 13, 2024 at 10:54:03PM +0100, Mikael Morin wrote: > Le 13/12/2024 à 21:55, Steve Kargl a écrit : > > On Mon, Dec 09, 2024 at 06:39:19PM -0800, Steve Kargl wrote: > > > > > > I've an almost complete implementation of F_C_STRING, > > > but need

Re: insight needed on trans-* hacking

2024-12-13 Thread Steve Kargl
On Mon, Dec 09, 2024 at 06:39:19PM -0800, Steve Kargl wrote: > > I've an almost complete implementation of F_C_STRING, > but need a bit of insight on the inlining that I'm > trying to implement. In pseudo-code, F_C_STRING is > > case 1. f_c_string(string)

Re: insight needed on trans-* hacking

2024-12-10 Thread Steve Kargl
FX, You're likely correct that the creation of an expression for c_null_char is overkill. I copied the code from gfc_conv_concat_op() in trans-expr.cc to get the 'f_c_string(s) -> trim(s) // c_null_char'. This was the motivation of creating a string. If I look at the -fdump-tree-orginal for

Re: insight needed on trans-* hacking

2024-12-10 Thread Steve Kargl
On Tue, Dec 10, 2024 at 09:05:02AM +0100, FX Coudert wrote: > Hi Steve, > > > I've an almost complete implementation of F_C_STRING, > > but need a bit of insight on the inlining that I'm > > trying to implement. > > Maybe I can help. Can you send in your current patch? > FX, I've attached the

insight needed on trans-* hacking

2024-12-09 Thread Steve Kargl
All, I've an almost complete implementation of F_C_STRING, but need a bit of insight on the inlining that I'm trying to implement. In pseudo-code, F_C_STRING is case 1. f_c_string(string) = trim(string) // c_null_char case 2. f_c_string(string, asis=.false.) = trim(string) // c_n

Re: [PATCH] Fortran: passing inquiry ref of complex array to assumed rank dummy [PR117774]

2024-11-25 Thread Steve Kargl
On Mon, Nov 25, 2024 at 10:05:49PM +, Harald Anlauf wrote: > Dear all, > > the attached patch fixes an ICE when passing an inquiry reference of a complex > array to an assumed-rank dummy argument by terminating the search for the > array reference before we hit the inquiry reference. (The arr

Re: *PING* [PATCH 0/7] fortran: Inline MINLOC/MAXLOC with DIM [PR90608]

2024-11-18 Thread Steve Kargl
On Fri, Nov 01, 2024 at 01:01:39PM +0100, Mikael Morin wrote: > Le 30/10/2024 à 23:00, Harald Anlauf a écrit : > > > > given that Jakub changed lots of whitespace in r15-4624-g50332a4fdd3243, > > you may want to rebase your patches onto HEAD of trunk. > > > > May I also suggest to attach the patc

Re: [patch, Fortran, committed] Handle unsigned constants in modules

2024-11-16 Thread Steve Kargl
On Sat, Nov 16, 2024 at 02:55:11PM +0100, Thomas Koenig wrote: > > Steve found a test case where unsigned constants were not handled > in a module. Single-line patch committed as obvious and simple, > r15-5341-g66096151afc6631f8f2a3458b154c5daa822b963 . > > Best regards > > Thomas > Than

Re: Complex arithmetic in Fortran

2024-11-13 Thread Steve Kargl
On Wed, Nov 13, 2024 at 05:33:20PM +0100, Thomas Koenig wrote: > Am 13.11.24 um 15:55 schrieb Toon Moene: > > > > Since the Fortran 95 Standard it does (in the current Standard: 7.4.3.2 > > Real type): > > > > The real type includes a zero value. Processors that distinguish between > > positive a

Re: [patch, Fortran] Fix -mod(unsigned, unsigned)

2024-11-01 Thread Steve Kargl
On Fri, Nov 01, 2024 at 10:00:29AM +0100, Thomas Koenig wrote: > > during testing, I noticed that parameters of the form > - mod(u1,u2) were rejected with an unknown type. The fix > is straightforward, but required an adjustment to another > test case. > > Regression-tested. OK for trunk? > Ye

Re: [Patch, fortran] PR115700 - comment 5: uninitialized string length in ASSOCIATE

2024-10-30 Thread Steve Kargl
On Wed, Oct 30, 2024 at 04:41:40PM +, Paul Richard Thomas wrote: > This wrinkle to PR115700 came about because the associate-name string > length was not being initialized, when an array selector had a substring > reference with non-constant start or end. This, of course, caused > subsequent re

Re: ptype on deferred-length character arrays return empty(?) result

2024-10-29 Thread Steve Kargl
On Tue, Oct 29, 2024 at 04:47:24PM +0900, Kazuyoshi Furutaka wrote: > I've filed a report, and immediately it was marked as a duplicate > of https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101826 > Thanks. I was unaware that someone had reported a similar bug report. Sorry about the extra effort

Re: ptype on deferred-length character arrays return empty(?) result

2024-10-28 Thread Steve Kargl
On Mon, Oct 28, 2024 at 06:00:18PM +0900, Kazuyoshi Furutaka wrote: > Dear gfortran experts... > > The attached program runs OK, but `ptype`ing using gdb > on the deferred-length character array returns empty(?) > result, as the following (the results for integer and > real arrays are correct ): >

Re: [patch, Fortran, doc] Update descriptions for UNSIGNED

2024-10-26 Thread Steve Kargl
On Sat, Oct 26, 2024 at 05:16:54PM +0200, Thomas Koenig wrote: > > OK for trunk? > OK, but see below. > +@item @code{SUM}, @pxref{SUM} > +@item @code{TRANSPOSE}, @pxref{TRANSPOSE} > +@item @code{TRANSFER}, @pxref{TRANSFER} > @end itemize > + > +The following intrincis are enabled with @option{

Re: [RFC] Change conversion function for unsigned from UINT to UNSIGNED

2024-10-25 Thread Steve Kargl
On Thu, Oct 24, 2024 at 07:46:28PM +0200, Thomas Koenig wrote: > > Peter Klausler noted in the discussion on github that Sun Fortran, > from which the UNSIGNED proposal was drawn, used UNSIGNED instead > of UINT for conversion of other types to UNSIGNED > (see https://docs.oracle.com/cd/E19205-01/

Re: [RFC] Change conversion function for unsigned from UINT to UNSIGNED

2024-10-25 Thread Steve Kargl
On Thu, Oct 24, 2024 at 10:22:29PM +0200, Thomas Koenig wrote: > > > I'll note that match.cc(gfc_match_type_spec) has to deal with > > REAL as a possible intrinsic function. See the comment > > > >/* REAL is a real pain because it can be a type, intrinsic subprogram, > > or list item i

Re: 8.260 STAT example fails if compiled with -std=f2008

2024-10-20 Thread Steve Kargl
On Sat, Oct 19, 2024 at 05:38:30PM +, Wyche, George G PW wrote: > > My Fortran project is based on -std=f2008. The GNU Fortran (For GCC version > 15.0.0) manual's 8.260 STAT example does not link if -std=f2008 is on the > command line: gfortran -std=f2008 test_st

Re: How to document intrinsics with UNSIGNED arguments...

2024-10-18 Thread Steve Kargl
On Fri, Oct 18, 2024 at 09:51:21PM +0200, Thomas Koenig wrote: > Am 18.10.24 um 19:11 schrieb Thomas Koenig: > > Hello world, > > > > I am thinking how to add UNSIGNED to the documentation of the > > intrinsics.  Taking BGT, the alphabetically first one, one > > could > > ... send the e-mail too

Re: Jubilado

2024-10-18 Thread Steve Kargl
On Fri, Oct 18, 2024 at 11:35:40AM +0200, Arjen Markus wrote: > > The current version of the standard is Fortran 2018 ... > The current version of the Fortran standard is ISO/IEC 1539-1:2023; more commonly known as Fortran 2023. -- Steve

Re: possible bug in Windows version from Gfortran 11.3.0 when using omp_set_num_threads

2024-10-06 Thread Steve Kargl
On Sun, Oct 06, 2024 at 07:16:18PM +1100, John Campbell wrote: > > I can confirm that the bug is not evident in equation.com's Gfortran 11.1.0 This is your problem. > and earlier, but is present from Gfortran 11.3.0. Program seems to wo

Re: [patch, Fortran] FINDLOC for unsigned

2024-09-28 Thread Steve Kargl
On Sat, Sep 28, 2024 at 08:32:00PM +0200, Thomas Koenig wrote: > Hello world, > > here's another small patch for FINDLOC for unsigned. > > OK for trunk? > OK. Other than UNSIGNED being a new experimental feature, this patch almost qualifies as "Obvious". -- Steve

Re: [patch, Fortran] CSHIFT and EOSHIFT for unsigned

2024-09-28 Thread Steve Kargl
OK. Thanks for the patch. -- steve On Sat, Sep 28, 2024 at 09:33:20AM +0200, Thomas Koenig wrote: > > this patch, consisting almost entirely of the test cases, implements > CSHIFT and EOSHIFT for unsigneds. > > OK for trunk? > > Implement CSHIFT and EOSHIFT for unsigned. > > gcc/for

Re: [Fortran, Patch, PR81265, v1] Fix passing coarrays always w/ descriptor

2024-09-27 Thread Steve Kargl
On Fri, Sep 27, 2024 at 08:12:01PM +0200, Andre Vehreschild wrote: > > the testcase is in the coarray directory, where tests are executed mit > -fcoarray=single and lib. I don't know about none. Because the code stops > compiling when it encounters a coarray with no single or lib. Therefore I > su

Re: [Fortran, Patch, PR81265, v1] Fix passing coarrays always w/ descriptor

2024-09-27 Thread Steve Kargl
On Fri, Sep 27, 2024 at 03:20:43PM +0200, Andre Vehreschild wrote: > > attached patch fixes a runtime issue when a coarray was passed as > parameter to a procedure that was itself a parameter. The issue here > was that the coarray was passed as array pointer (i.e. w/o descriptor) > to the function

Re: *PING* [PATCH v3 10/10] fortran: Add -finline-intrinsics flag for MINLOC/MAXLOC [PR90608]

2024-09-14 Thread Steve Kargl
On Sat, Sep 14, 2024 at 11:02:42AM -0700, Steve Kargl wrote: > > While I understand the intent of 'positive form' vs 'negative form', the > above might be clearer as > >Usage of intrinsics can be implemented either by generating a call >to the libgf

Re: *PING* [PATCH v3 10/10] fortran: Add -finline-intrinsics flag for MINLOC/MAXLOC [PR90608]

2024-09-14 Thread Steve Kargl
On Fri, Sep 13, 2024 at 12:27:07PM +0200, Mikael Morin wrote: > > > > gcc/fortran/ChangeLog: > > > > * invoke.texi(finline-intrinsics): Document new flag. > > * lang.opt (finline-intrinsics, finline-intrinsics=, > > fno-inline-intrinsics): New flags. > > * options.cc (gfc_post_opt

Re: *PING* [PATCH] fortran: Remove useless nested end of scalarization chain handling

2024-09-13 Thread Steve Kargl
OK. Sorry about dropping the balli on a review. I thought it had already been approved and committed. -- steve On Fri, Sep 13, 2024 at 12:19:48PM +0200, Mikael Morin wrote: > Ping: > > https://gcc.gnu.org/pipermail/fortran/2024-July/060640.html > > Maybe I could argue that I can self approve,

Re: PRs 88052 and 88190

2024-09-10 Thread Steve Kargl
, relative to F2003, and I > suggest that, in memory of Reinhold, this continue as a DIN > proposal. @Thomas, are you willing to carry this forward or should I > transfer it to being a UK proposal? > > Best regards > > Paul > > > On Mon, 9 Sept 2024 at 18:34, Steve Kargl &

Re: PRs 88052 and 88190

2024-09-09 Thread Steve Kargl
On Mon, Sep 09, 2024 at 12:26:53AM -0700, Damian Rouson wrote: > On Sat, Sep 7, 2024 at 22:26 Steve Kargl > wrote: > > > On Sat, Sep 07, 2024 at 08:17:42PM -0700, Jerry D wrote: > > > > > > I personally would like to see -std=f2023 made the default. > >

Re: PRs 88052 and 88190

2024-09-07 Thread Steve Kargl
On Sat, Sep 07, 2024 at 08:17:42PM -0700, Jerry D wrote: > Steve and others > > We continue to run into issues with PRs like this. I would like to close > these out. I completely hate the mechanisms we have for the options. Why? > Because every time I look at it I have to think it through ten w

Re: New version of unsiged patch

2024-09-06 Thread Steve Kargl
On Sun, Aug 18, 2024 at 12:10:18PM +0200, Thomas Koenig wrote: > Hello world, > > this version of the patch includes DOT_PRODUCT, MATMUL and quite > a few improvements for simplification. > All, I have gone through Thomas's current patch and sent a few emails with comments to him. To keep thin

Re: New version of unsiged patch

2024-09-06 Thread Steve Kargl
On Thu, Sep 05, 2024 at 09:07:20AM +0200, Thomas Koenig wrote: > Ping (a little bit)? > > With another weekend coming up, I would have some time to > work on incorporating any feedback, or on putting in > more intrinsics. > Last comment as I've made it to the end of the patch. Your testcases ar

Re: New version of unsiged patch

2024-09-06 Thread Steve Kargl
On Thu, Sep 05, 2024 at 09:07:20AM +0200, Thomas Koenig wrote: > Ping (a little bit)? > > With another weekend coming up, I would have some time to > work on incorporating any feedback, or on putting in > more intrinsics. > In the documentation, you have +Generally, unsigned integers are only p

Re: [PATCH] Fortran: downgrade use associated namelist group name to, legacy extension

2024-08-30 Thread Steve Kargl
ault) to a legacy extension (warning by default). > > The feature is tested in at least 4 gfortran testcases. I adjusted > the pattern of one of these tests to check for the downgrade. > > Regtested on x86_64-pc-linux-gnu. OK for mainline? > > Thanks, > Harald > >

Re: [PATCH, pushed] Fortran: fix ICE with use with rename of namelist member [PR116530]

2024-08-30 Thread Steve Kargl
On Fri, Aug 30, 2024 at 06:46:47PM +0200, Harald Anlauf wrote: > Am 30.08.24 um 18:33 schrieb Steve Kargl: > > On Thu, Aug 29, 2024 at 10:05:35PM +0200, Harald Anlauf wrote: > > > > > > > > > Should we downgrade this extension to GFC_STD_LEGACY? > >

Re: [PATCH, pushed] Fortran: fix ICE with use with rename of namelist member [PR116530]

2024-08-30 Thread Steve Kargl
On Thu, Aug 29, 2024 at 10:05:35PM +0200, Harald Anlauf wrote: > > Am 29.08.24 um 21:53 schrieb Steve Kargl: > > Thanks for the patch. If you have not already opened a new PR for the > > other issue with C8107, I'll open one later today. It's likely that > > w

Re: [PATCH, pushed] Fortran: fix ICE with use with rename of namelist member [PR116530]

2024-08-29 Thread Steve Kargl
Thanks for the patch. If you have not already opened a new PR for the other issue with C8107, I'll open one later today. It's likely that we need to check the namelist-group-name for USE association in match.cc:gfc_match_namelist. Hmmm, it seems we already catch the error, but accept it as an ex

Re: New version of unsiged patch

2024-08-27 Thread Steve Kargl
On Tue, Aug 27, 2024 at 06:46:08PM +0200, Thomas Koenig wrote: > Steve, > > > On Sun, Aug 18, 2024 at 12:10:18PM +0200, Thomas Koenig wrote: > > > > > > this version of the patch includes DOT_PRODUCT, MATMUL and quite > > > a few improvements for simplification. > > > > Thomas, > > > > Your upd

Re: [Fortran, Patch, PR86468, v1] Follow up: Remove obsolete VIEW_CONVERT

2024-08-21 Thread Steve Kargl
On Wed, Aug 21, 2024 at 12:17:46PM +0200, Andre Vehreschild wrote: > > attached small patch removes a VIEW_CONVERT that I erroneously inserted during > patching pr110033. PR86468 fixes the (co-)rank computation and therefore this > VIEW_CONVERT is IMO obsolete. I think it may cause hard to find ru

Re: New version of unsiged patch

2024-08-19 Thread Steve Kargl
On Sun, Aug 18, 2024 at 12:10:18PM +0200, Thomas Koenig wrote: > > this version of the patch includes DOT_PRODUCT, MATMUL and quite > a few improvements for simplification. Thomas, Your updated patch applied cleanly on top-of-tree gcc. Bootstrap and regression testing on amd64-*-freebsd comple

Re: [PATCH 0/8] fortran: Inline MINLOC/MAXLOC without DIM argument [PR90608]

2024-08-08 Thread Steve Kargl
On Thu, Aug 08, 2024 at 11:09:10AM +0200, Mikael Morin wrote: > > These patches are about inlining, there is no manipulation of the parse > tree. So I would rather use a separate option (-finline-intrinsics?). I've only followed the discussion from afar, but gcc already supports a -finline and -

Re: Ping: [Patch, fortran] PR115070 (and PR115348) - [13/14/15 Regression] ICE using IEEE_ARITHMETIC in a derived type method with class, intent(out)

2024-07-19 Thread Steve Kargl
Thanks for the patch and chasing down the magic. Path is ok to commit. -- steve On Fri, Jul 19, 2024 at 05:32:26PM +0100, Paul Richard Thomas wrote: > Hi All, > > Ping! > > I understand now why this works. The scope of the block is merged and so > all the previous declarations that would othe

unsigned type

2024-06-28 Thread Steve Kargl
FYI, For those that do not follow J3, their meeting just finished this week. One noteworthy paper that passed was 24-166.txt, "A modest proposal for adding an UNSIGNED type to Fortran". The paper appears to have been author by Thomas (tkoening@). Big "Thank You" to Thomas. I have wanted an unsi

Re: [PATCH] Fortran: fix ALLOCATE with SOURCE of deferred character length [PR114019]

2024-06-28 Thread Steve Kargl
On Fri, Jun 28, 2024 at 10:00:53PM +0200, Harald Anlauf wrote: > > the attached patch fixes an ICE occuring for ALLOCATE with SOURCE > (or MOLD) of deferred character length in the scalar case, which > looked obscure because the ICE disappears at -O1 and higher. > > The dump tree suggests that it

Re: [pushed] readings: Drop FORTRAN 77 test suite at itl.nist.gov

2024-06-18 Thread Steve Kargl
On Tue, Jun 18, 2024 at 09:13:23AM +0200, Gerald Pfeifer wrote: > The original subsite has disappeared and we couldn't find it elsewhere. > https://github.com/gklimowicz/FCVS gklimowicz is a flang developer and member of J3. -- Steve

Re: [GOMP, Fortran] RFC: Issues with gomp-fortran tests

2024-06-07 Thread Steve Kargl
I don't know too much about the testsuite infrastructure. You'll likely need to ping jakub or tobias, who seem to be the most active gomp contributors. On my FreeBSD system, I have my sources in gcc/gccx, build in gcc/objx, and install into $HOME/work/x. For building and testing, I have a script

Re: [GOMP, Fortran] RFC: Issues with gomp-fortran tests

2024-06-06 Thread Steve Kargl
Andre, I have not seen an answer to your email. I just built gcc/gfortran with a build directory named objx/. My 'make -j6 check-fortran' completed without issues (other than the usual broken libsaniziter tests and confusion of gmake versus make and $MAKE). From your description, it would certa

Re: [PATCH 2/4] fortran: Teach get_real_kind_from_node for Power 128 fp modes [PR112993]g

2024-05-09 Thread Steve Kargl
On Thu, May 09, 2024 at 01:37:32PM +0800, Kewen.Lin wrote: > > > > > That said, Fortran has the concept of model numbers, which > > are set in arith.c. Does this change give the expected > > value for ibm128? For example, with "REAL(16) X", one > > has "DIGITS(X) = 113", which is the precision

Re: [PATCH 2/4] fortran: Teach get_real_kind_from_node for Power 128 fp modes [PR112993]g

2024-05-08 Thread Steve Kargl
On Wed, May 08, 2024 at 01:27:53PM +0800, Kewen.Lin wrote: > > Previously effective target fortran_real_c_float128 never > passes on Power regardless of the default 128 long double > is ibmlongdouble or ieeelongdouble. It's due to that TF > mode is always used for kind 16 real, which has precisio

Re: Recommended developer options when building GCC from source

2024-04-10 Thread Steve Kargl
On Sat, Apr 06, 2024 at 05:54:43PM -0600, Neil Carlson wrote: > What are the recommended options to use (e.g., --enable-libsanitize) when > building GCC from source for the purpose of locating gfortran bugs? I'm > trying to pin down a runtime memory corruption error, and I recall seeing > at variou

Re: [PATCH] fortran: Fix specification expression check in submodules [PR114475]

2024-03-27 Thread Steve Kargl
On Wed, Mar 27, 2024 at 04:30:42PM +0100, Mikael Morin wrote: > Hell(o), > > it didn't take long for my recent patch for PR111781 to show a regression. > The fix proposed here is actually the one Harald posted in the PR. > I can't imagine a case where it wouldn't do the right thing. > Regression t

Re: [PATCH] Fortran: add two small F2023 features

2024-03-19 Thread Steve Kargl
On Tue, Mar 19, 2024 at 04:17:32PM +0100, FX Coudert wrote: > > These two (independent) patches add two tiny Fortran 2023 features: new > ISO_FORTRAN_ENV named constants and SELECTED_LOGICAL_KIND intrinsic. > > Bootstrapped and regtested on x86_64-pc-linux-gnu. > Please review, and let me know i

Re: Can't link assembly routines

2024-03-13 Thread Steve Kargl
On Wed, Mar 13, 2024 at 12:05:16PM +, Ken Woolridge wrote: > > When I attempt to link my test program (FF.F90) which calls UPPER_CASE (an > assembly routine) I get the following error: > > C:/Program > Files/GCC/bin/../lib/gcc/i686-pc-mingw32/13.2.0/../../../../i686-pc-mingw32/bin/ld.exe: >

Re: [patch, libgfortran] Part 2: PR105456 Child I/O does not propage iostat

2024-03-05 Thread Steve Kargl
On Tue, Mar 05, 2024 at 08:06:10PM -0800, Jerry D wrote: > On 3/5/24 1:51 PM, Harald Anlauf wrote: > > Hi Jerry, > > > > on further thought, do we sanitize 'child_iomsg'? > > We pass it to snprintf as format. > > > > Wouldn't a strncpy be sufficient? > > > > Harald > > > > > > Just to be safe

Re: [patch, libgfortran] Part 2: PR105456 Child I/O does not propage iostat

2024-02-29 Thread Steve Kargl
On Thu, Feb 29, 2024 at 10:28:19AM -0800, Jerry D wrote: > On 2/29/24 10:13 AM, Steve Kargl wrote: > > On Thu, Feb 29, 2024 at 09:36:43AM -0800, Jerry D wrote: > > > On 2/29/24 1:47 AM, Bernhard Reutner-Fischer wrote: > > > > > > > And, just for my own educa

Re: [patch, libgfortran] Part 2: PR105456 Child I/O does not propage iostat

2024-02-29 Thread Steve Kargl
On Thu, Feb 29, 2024 at 09:36:43AM -0800, Jerry D wrote: > On 2/29/24 1:47 AM, Bernhard Reutner-Fischer wrote: > > > And, just for my own education, the length limitation of iomsg to 255 > > chars is not backed by the standard AFAICS, right? It's just our > > STRERR_MAXSZ? > > Yes, its what we ha

Re: Question regarding compiling modules

2024-02-28 Thread Steve Kargl
On Wed, Feb 28, 2024 at 10:42:36PM +, Ken Woolridge wrote: > A little background: I have Intel's Fortran90 compiler which > I used for years. However, I recently had to reinstall it > and found that the key was no longer valid. Intel did not > have the decency to return my emails so I looked

Rejects ASSOCIATE and a complex part%ref when target is a function

2024-02-27 Thread Steve Kargl
All, Consider, ! { dg-do run } program foo implicit none real y associate (x => log(cmplx(-1,0))) y = x%im if (int(100*y)-314 /= 0) stop 1 end associate end program % gfcx -c a.f90 a.f90:6:13: 6 | y = x%im | 1 Error: Symbol 'x' at (1) has no I

Re: [PATCH, v2] Fix fortran/PR114024

2024-02-23 Thread Steve Kargl
On Fri, Feb 23, 2024 at 10:15:17PM +0100, Harald Anlauf wrote: > Hi Steve, all, > > here's an updated patch with an enhanced testcase that also > checks MOLD= besides SOURCE=. > > Regtested on x86_64-pc-linux-gnu. Is it OK for mainline? > >From my viewpoint, yes. Thanks for finding a better s

  1   2   3   >