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

2025-03-24 Thread Janne Blomqvist
rather than always using some fallback implementation that ends up calling the "normal" trig functions. Not sure how that should be implemented, maybe some kind of weak symbol trickery to use the libgfortran fallback implementations in case libm doesn't provide it? -- Janne Blomqvist

Re: PRs 88052 and 88190

2024-09-09 Thread Janne Blomqvist
between "benign" extensions and dangerous ones, though there might be improvements to be made of how the bitflags are handled and passed to the runtime. I can sympathize with the desire to make the standard behavior the default, but the reality is probably that you'll drown in bug rep

Re: Updated Sourceware infrastructure plans

2024-04-18 Thread Janne Blomqvist
e template for every type and export the symbol void matmul_r4(gfc_array_r4* a, gfc_array_r4* b, gfc_array_r4* c, ...) { matmul(a, b, c, ...); } // And so on for other types } -- Janne Blomqvist

Re: [Fortran] half-cycle trig functions and atan[d] fixes

2024-01-24 Thread Janne Blomqvist
e target libm includes those or not they are then included in the exported symbol list. It's possible to override this to look for specific symbol versions etc., but that probably goes deep into the weeds of target-specific stuff (e.g. are we looking for cospi@FBSD_1.7, cospi@GLIBC_X.Y.Z, or something else?). I'm sure you don't wanna go there. -- Janne Blomqvist

Re: [Fortran] half-cycle trig functions and atan[d] fixes

2024-01-23 Thread Janne Blomqvist
on. We could generate that code directly in the front-end, couldn’t > we? The frontend generally doesn't know what the target libm implements, hence it's better to just generate the call, and if necessary have a barebones implementation in libgfortran if libm doesn't implement it properly. -- Janne Blomqvist

Re: [PATCH][stage1] Remove conditionals around free()

2023-03-04 Thread Janne Blomqvist via Fortran
pet added then which is still there. Per analysis done then, it seems SunOS 4 was the last system where free() of a NULL pointer didn't behave per the spec. Also in Jim's patch intl/ and zlib/ directories were not touched as those are imported from other upstreams. -- Janne Blomqvist

Re: Team Collaboration Considerations

2022-12-13 Thread Janne Blomqvist via Fortran
king on the compiler outright, could be a way of growing the open source Fortran programmer base, which could eventually grow into contributors to the compiler itself? In particular if they want to use some newfangled Fortran feature that doesn't work in GFortran; scratching your own itch is always a good motivator! -- Janne Blomqvist

Re: [PATCH 3/5] Fortran: Narrow return types [PR78798]

2022-11-13 Thread Janne Blomqvist via Fortran
8 mentions changing int to bool, where appropriate, which I think is uncontroversial, but this? -- Janne Blomqvist

Re: Handling of large stack objects in GPU code generation -- maybe transform into heap allocation?

2022-11-11 Thread Janne Blomqvist via Fortran
I'm not personally working on GFortran at this time so somebody else would have to pick it up. -- Janne Blomqvist

Re: is there a way to find out gfortran version and/or options from a given binary?

2022-06-03 Thread Janne Blomqvist via Fortran
for pointing out that -g does not make the code slower. > > Is there an option that prevents the sourcecode to be included when -g is > > used? You might try -frecord-gcc-switches. There's also -grecord-gcc-switches (which puts the info somewhere in the debug data), which is enabled b

Re: is there a way to find out gfortran version and/or options from a given binary?

2022-06-02 Thread Janne Blomqvist via Fortran
On Thu, Jun 2, 2022 at 10:33 PM Kay Diederichs wrote: > Am 02.06.22 um 21:06 schrieb Janne Blomqvist: > > As an alternative approach, make a command-line option (say, "-v") > > that prints the version number of the program, name of the author and > > other pertin

Re: is there a way to find out gfortran version and/or options from a given binary?

2022-06-02 Thread Janne Blomqvist via Fortran
e program, name of the author and other pertinent information, as well as the output of compiler_version() and compiler_options(), and then exits. That would ensure that those calls won't be optimized away. -- Janne Blomqvist