[Bug fortran/93924] ICE in gfc_class_len_get at trans_expr.c:231 with function returning a procedure pointer

2021-01-26 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93924 Thomas Koenig changed: What|Removed |Added CC||pault at gcc dot gnu.org --- Comment #5

[Bug fortran/93924] ICE in gfc_class_len_get at trans_expr.c:231 with function returning a procedure pointer

2021-01-26 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93924 --- Comment #6 from Thomas Koenig --- This actually segfaults at runtime.

[Bug fortran/93924] [OOP] ICE with procedure pointer

2021-01-26 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93924 Thomas Koenig changed: What|Removed |Added Summary|[OOP] segfault with |[OOP] ICE with procedure

[Bug fortran/94408] Spurious error: ‘rw_nl_grid’ must be a module procedure or an external procedure

2021-01-26 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94408 Thomas Koenig changed: What|Removed |Added CC||tkoenig at gcc dot gnu.org

[Bug fortran/67539] Segmentation fault with elemental defined assignment and scalar function at the RHS

2021-01-26 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
|--- |FIXED CC||tkoenig at gcc dot gnu.org --- Comment #2 from Thomas Koenig --- Works now, fixed by I don't know what commit. Test case committed as https://gcc.gnu.org/g:80198c701a7fc09e736ccffe470ee5033ca59a69 , closing. Thanks fo

[Bug fortran/93524] [ISO C Binding][F2018] CFI_allocate – elem_size mishandled + sm wrongly set?

2021-01-27 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93524 Thomas Koenig changed: What|Removed |Added CC||tkoenig at gcc dot gnu.org --- Comment

[Bug fortran/83927] Type-Bound Procedure on element of Derived Type PARAMETER Array

2021-01-28 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
||tkoenig at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |tkoenig at gcc dot gnu.org --- Comment #4 from Thomas Koenig --- Seems fixed... I'll try to commit the test case this evening.

[Bug fortran/98903] New: [Coarray, F2018] Implement TEAM_NUMBER in image-selector-spec

2021-01-31 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- The following is currently rejected: program main use, intrinsic :: iso_fortran_env type (team_type) :: odd_even integer :: me

[Bug tree-optimization/99199] New: [9/10/11 Regression] Very large boolean expression leads to quite a few return statements

2021-02-22 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- Created attachment 50233 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50233&acti

[Bug tree-optimization/99199] [9/10/11 Regression] Very large boolean expression leads to quite a few return statements

2021-02-22 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99199 Thomas Koenig changed: What|Removed |Added Version|unknown |11.0 Target Milestone|---

[Bug rtl-optimization/100622] New: Conversion to smaller unsigned type in loop

2021-05-16 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- Consider unsigned int foo(unsigned int *a, int n) { int i; unsigned int res = 0; for (i=0; i: 0: 00 00 04 2c cmpwi r4,0 4: 30 00 81

[Bug rtl-optimization/100622] Conversion to smaller unsigned type in loop

2021-05-17 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100622 Thomas Koenig changed: What|Removed |Added Status|UNCONFIRMED |SUSPENDED Last reconfirmed|

[Bug rtl-optimization/100622] Conversion to smaller unsigned type in loop

2021-05-17 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100622 Thomas Koenig changed: What|Removed |Added Status|SUSPENDED |UNCONFIRMED Ever confirmed|1

[Bug rtl-optimization/100622] Conversion to smaller unsigned type in loop

2021-05-17 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100622 --- Comment #4 from Thomas Koenig --- Yes, the masking should be only performed at the end. However, the inner loop could be further simplified to label: lwzu r8,4(r10) add r3,r8,r3 bdnz label without the need to do anything with

[Bug target/79173] add-with-carry and subtract-with-borrow support (x86_64 and others)

2021-05-28 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79173 Thomas Koenig changed: What|Removed |Added CC||tkoenig at gcc dot gnu.org Last

[Bug fortran/100989] Bogus internal VOLATILE attribute for ASYNCHRONOUS

2021-06-09 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100989 Thomas Koenig changed: What|Removed |Added Last reconfirmed||2021-06-09 Ever confirmed|0

[Bug fortran/100989] Bogus internal VOLATILE attribute for ASYNCHRONOUS

2021-06-09 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100989 Thomas Koenig changed: What|Removed |Added Severity|normal |enhancement

[Bug middle-end/34678] Optimization generates incorrect code with -frounding-math option (#pragma STDC FENV_ACCESS not implemented)

2023-01-07 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=34678 --- Comment #48 from Thomas Koenig --- Clang gets this right, even without the pragma; the original test case is compiled to pushq %r14 pushq %rbx subq$24, %rsp movq%rsi, %r14 movq%rdi, %rb

[Bug middle-end/34678] Optimization generates incorrect code with -frounding-math option (#pragma STDC FENV_ACCESS not implemented)

2023-01-07 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=34678 --- Comment #49 from Thomas Koenig --- (In reply to Thomas Koenig from comment #48) > Clang gets this right, even without the pragma; The "even without the pragma" part is wrong.

[Bug fortran/108329] New: IEEE_SET_ROUNDING_MODE ineffective with common subexpression elimination

2023-01-07 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- Split from https://gcc.gnu.org/bugzilla/show_bug.cgi?id=34678#c47 . The test case $ cat y.f90 module y implicit none

[Bug fortran/108329] IEEE_SET_ROUNDING_MODE ineffective with common subexpression elimination

2023-01-07 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108329 Thomas Koenig changed: What|Removed |Added Version|unknown |13.0 Depends on|

[Bug fortran/108329] IEEE_SET_ROUNDING_MODE ineffective with common subexpression elimination

2023-01-07 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108329 --- Comment #2 from Thomas Koenig --- (In reply to Thomas Koenig from comment #1) > As long as PR 36678 That should be PR 34678 .

[Bug fortran/108329] IEEE_SET_ROUNDING_MODE ineffective with common subexpression elimination

2023-01-07 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
||2023-01-07 Assignee|unassigned at gcc dot gnu.org |tkoenig at gcc dot gnu.org Status|UNCONFIRMED |ASSIGNED

[Bug fortran/108329] IEEE_SET_ROUNDING_MODE ineffective with common subexpression elimination

2023-01-09 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108329 Thomas Koenig changed: What|Removed |Added Status|ASSIGNED|NEW Assignee|tkoenig at gcc

[Bug tree-optimization/31756] -floop-interchange is not working on some fortran loops

2023-01-10 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31756 Thomas Koenig changed: What|Removed |Added CC||mehdi.chinoune at hotmail dot com --- C

[Bug other/89204] -floop-interchange has no effect on Fortran code

2023-01-10 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89204 Thomas Koenig changed: What|Removed |Added Resolution|INVALID |DUPLICATE --- Comment #8 from Thomas Koe

[Bug libgcc/108279] Improved speed for float128 routines

2023-01-12 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108279 --- Comment #6 from Thomas Koenig --- (In reply to Michael_S from comment #5) > Hi Thomas > Are you in or out? Depends a bit on what exactly you want to do, and if there is a chance that what you want to do will be incorporated into gcc. If yo

[Bug libgcc/108279] Improved speed for float128 routines

2023-01-14 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108279 --- Comment #9 from Thomas Koenig --- Created attachment 54273 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54273&action=edit matmul_r16.i Here is matmul_r16.i from a relatively recent trunk.

[Bug libgcc/108279] Improved speed for float128 routines

2023-01-14 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108279 --- Comment #10 from Thomas Koenig --- What we would need for incorporation into gcc is to have several functions, which would then called depending on which floating point options are in force at the time of invocation. So, let's go through th

[Bug libgcc/108279] Improved speed for float128 routines

2023-01-15 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108279 --- Comment #13 from Thomas Koenig --- I tried compiling your tests on Apple silicon using Asahi Linux, but without success. A first step was rather easy; replacing __float128 by _Float128 was required. I then bootstrapped gcc on that machine a

[Bug libgcc/108279] Improved speed for float128 routines

2023-01-15 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108279 --- Comment #14 from Thomas Koenig --- Seems that libquadmath is not built on that particular Linux/CPU variant, for whatever reason. At last I cannot find any '*quadmath* files in the build directory. /proc/cpuinfo tells me that processor

[Bug fortran/108577] New: [meta-bug] Fortran 2023 support

2023-01-27 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- A meta-bug to hang Fortran 2023 support PRs on.

[Bug fortran/103506] [10/11/12/13 Regression] ICE in gfc_free_namespace, at fortran/symbol.c:4039 since r10-2798-ge68a35ae4a65d2b3

2023-01-27 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103506 --- Comment #12 from Thomas Koenig --- (In reply to anlauf from comment #11) > (In reply to Jerry DeLisle from comment #8) > > Doing the search in bugzilla, 137 bugs are marked as ic-on-invalid-code. I > > suggest we make all of these P5 or Won

[Bug fortran/108592] In IF statements -Winteger-division is repeated 4 times

2023-01-30 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108592 --- Comment #2 from Thomas Koenig --- (In reply to anlauf from comment #1) > @Thomas: do you remember the reason you chose the "_now" version? I'm not sure any more. It's been a few years :-)

[Bug fortran/108665] New: Depenency checking: Run-time loop reversal instead of creating a temporary

2023-02-03 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
: enhancement Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- In the Fortran front end, we could sometimes reverse loops at runtime if dependency analysis shows that either a

[Bug tree-optimization/108710] New: Recognizing "rounding down to the nearest power of two"

2023-02-07 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
nhancement Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- In the code #include #include #include uint64_t foo (uint64_t x) { x = x | (x >> 1); x = x | (x >

[Bug tree-optimization/108710] Recognizing "rounding down to the nearest power of two"

2023-02-08 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108710 --- Comment #1 from Thomas Koenig --- Actually, register allocation is OK for an architecture with destructive shifts only.

[Bug rtl-optimization/108826] New: Inefficient address generation on POWER and RISC-V

2023-02-16 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- For the code (reduced from embench) struct { unsigned int table[4][100]; } * _nettle_aes_decrypt_T; unsigned int _nettle_aes_decrypt_w1; void

[Bug tree-optimization/108839] New: Option for rerolling loops

2023-02-17 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- Code sometimes contains manual unrolling. For example, the BLAS reference implementation, subroutine DSCAL, has IF (INCX.EQ.1) THEN * *code for increment

[Bug tree-optimization/108844] New: sincos opportunity missed

2023-02-18 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- Two related test cases (which do the same, but are handled differently). This is code for calculating a Jacobian, a frequent task in solving non-linear systems of equations

[Bug tree-optimization/108863] New: Unrolling could use range information

2023-02-20 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- Created attachment 54497 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54497&action=edit Assembly code generated by test case Looking a bit more at t

[Bug tree-optimization/108863] Unrolling could use range information

2023-02-20 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108863 Thomas Koenig changed: What|Removed |Added Severity|normal |enhancement Keywords|

[Bug rtl-optimization/109019] New: Failure to optimize b + c -1

2023-03-03 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- Looks like a general RTL issue, I see this on POWER, RV64 and ARM64 (the latter two on godbolt). [tkoenig@gcc135 ~]$ cat c.c long foo (long b, long c) { return b + c

[Bug rtl-optimization/109019] Failure to optimize b + c -1

2023-03-03 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109019 Thomas Koenig changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug tree-optimization/109075] New: [13 Regression] rnflow hangs at -O3

2023-03-08 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- rnflow from the pb11 Polyhedron benchmark hangs at -O3 with recent trunk, gcc-Version 13.0.1 20230308 (experimental) [master revision e87559d202d:f4e6da6e8ac

[Bug tree-optimization/109075] [13 Regression] rnflow hangs at -O3

2023-03-08 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109075 --- Comment #1 from Thomas Koenig --- Created attachment 54617 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54617&action=edit rnflow.f90

[Bug tree-optimization/109075] [13 Regression] rnflow hangs at -O3

2023-03-08 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109075 --- Comment #2 from Thomas Koenig --- Created attachment 54618 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54618&action=edit Header file needed for compilation

[Bug tree-optimization/109075] [13 Regression] rnflow hangs at -O3

2023-03-08 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109075 --- Comment #3 from Thomas Koenig --- Created attachment 54619 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54619&action=edit Compressed input file

[Bug tree-optimization/109075] [13 Regression] rnflow hangs at -O3

2023-03-08 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109075 Thomas Koenig changed: What|Removed |Added Keywords||needs-bisection Target Milestone|---

[Bug tree-optimization/109075] [13 Regression] rnflow hangs at -O3

2023-03-09 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109075 --- Comment #5 from Thomas Koenig --- Might be invalid code, see https://gcc.gnu.org/pipermail/fortran/2023-March/059062.html That appears to be a problem with widely used old-style linear congruential random number generators, which expect ov

[Bug tree-optimization/109075] [13 Regression] rnflow hangs at -O3

2023-03-09 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109075 Thomas Koenig changed: What|Removed |Added Known to work||12.2.0 --- Comment #7 from Thomas Koeni

[Bug fortran/104811] maxloc/minloc cannot accept character arguments without `dim` optional argument.

2022-03-08 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104811 Thomas Koenig changed: What|Removed |Added CC||tkoenig at gcc dot gnu.org --- Comment

[Bug libquadmath/105101] New: incorrect rounding for sqrtq

2022-03-29 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- IEEE mandates correct rounding of square roots, and sqrtq rounds incorrectly for some values: #include #include #define MPFR_WANT_FLOAT128 #include #include #define NDIG 113

[Bug fortran/102043] [9/10/11/12 Regression] Wrong array types used for negative stride accesses, gfortran.dg/vector_subscript_1.f90 FAILs

2022-03-29 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102043 --- Comment #39 from Thomas Koenig --- (In reply to Richard Biener from comment #37) > The issue itself is long latent so we probably have to live with GCC 12 > exposing slightly more cases of it in the real world (I have yet to see > one there

[Bug fortran/105105] New: Fortran IEEE support

2022-03-30 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- A meta-bug for Fortran IEEE support.

[Bug libquadmath/105101] incorrect rounding for sqrtq

2022-04-09 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105101 --- Comment #5 from Thomas Koenig --- There is another, much worse, problem, reported and analyzed by "Michael S" on comp.arch. The code has #ifdef HAVE_SQRTL { long double xl = (long double) x; if (xl <= LDBL_MAX && xl >= LDBL_MIN)

[Bug libquadmath/105101] incorrect rounding for sqrtq

2022-04-09 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105101 --- Comment #7 from Thomas Koenig --- (In reply to Jakub Jelinek from comment #6) > (In reply to Thomas Koenig from comment #5) > > There is another, much worse, problem, reported and analyzed by "Michael S" > > on comp.arch. The code has > > >

[Bug fortran/93256] Assumed-shape unlimited polymorphic variable passes values incorrectly

2022-04-21 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93256 --- Comment #2 from Thomas Koenig --- Works for 12.0., fails with 9.4.0. So, I assume this has been fixed in the meantime, it would be interesting to see when.

[Bug fortran/93256] Assumed-shape unlimited polymorphic variable passes values incorrectly

2022-04-22 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93256 Thomas Koenig changed: What|Removed |Added Status|WAITING |NEW Keywords|

[Bug libfortran/105361] New: Incorrect end-of-file condition for derived-type I/O

2022-04-23 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
Component: libfortran Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- The following test case module x implicit none type foo real :: r end type foo interface read(formatted) module procedure read_formatted end

[Bug libfortran/105361] Incorrect end-of-file condition for derived-type I/O

2022-04-24 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105361 --- Comment #1 from Thomas Koenig --- This "fixes" the bug in question, but is almost certainly entirely incorrect for a lot of other cases. Will have to look a bit further. --- a/libgfortran/io/list_read.c +++ b/libgfortran/io/list_read.c @@

[Bug libfortran/105361] Incorrect end-of-file condition for derived-type I/O

2022-04-24 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105361 --- Comment #2 from Thomas Koenig --- As expected: FAIL: gfortran.dg/list_read_8.f90 -O0 execution test FAIL: gfortran.dg/list_read_8.f90 -O1 execution test FAIL: gfortran.dg/list_read_8.f90 -O2 execution test FAIL: gfortran.dg/list_re

[Bug fortran/78054] gfortran.dg/pr70673.f90 FAILs at -O0

2022-04-26 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
||tkoenig at gcc dot gnu.org --- Comment #7 from Thomas Koenig --- (In reply to Steve Kargl from comment #6) > On Wed, Apr 27, 2022 at 12:03:54AM +, hp at gcc dot gnu.org wrote: > > > > --- Comment #5 from Hans-Peter Nilsson --- > > (In reply to

[Bug fortran/78054] gfortran.dg/pr70673.f90 FAILs at -O0

2022-04-27 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78054 Thomas Koenig changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |tkoenig at gcc dot gnu.org

[Bug fortran/78054] gfortran.dg/pr70673.f90 FAILs at -O0

2022-04-27 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78054 --- Comment #10 from Thomas Koenig --- (In reply to anlauf from comment #9) > (In reply to Thomas Koenig from comment #8) > > Fixed on trunk by > > > > https://gcc.gnu.org/pipermail/gcc-cvs/2022-April/362724.html . > > Thomas, > > you'd bette

[Bug fortran/104382] Finalization of parent components not compliant with standard

2022-08-10 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104382 Thomas Koenig changed: What|Removed |Added CC||tkoenig at gcc dot gnu.org --- Comment

[Bug fortran/106576] New: Finalization of temporaries from functions not occuring

2022-08-10 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- Test case: $ cat g2.f90 module y implicit none type foo integer :: n contains final :: cleanup end type foo interface

[Bug fortran/106576] Finalization of temporaries from functions not occuring

2022-08-10 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106576 --- Comment #1 from Thomas Koenig --- There currently is a c.l.f. thread on this, with this test case. Although what nagfor and xlf are doing makes sense, it does not (to me) follow from the language of the standard. https://groups.google.com/g

[Bug fortran/106576] Finalization of temporaries from functions not occuring

2022-08-13 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
dot gnu.org |tkoenig at gcc dot gnu.org Last reconfirmed||2022-08-13 Status|UNCONFIRMED |ASSIGNED --- Comment #2 from Thomas Koenig --- Created attachment 53451 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53451&acti

[Bug rtl-optimization/106678] New: Inefficiency in long integer multiplication

2022-08-18 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- The code from PR 103109 #include void Long_multiplication( uint64_t multiplicand[], uint64_t multiplier

[Bug tree-optimization/104265] Missed vectorization in 526.blender_r

2022-08-30 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104265 Thomas Koenig changed: What|Removed |Added CC||tkoenig at gcc dot gnu.org --- Comment

[Bug fortran/41453] use INTENT(out) for optimization

2022-09-25 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41453 --- Comment #16 from Thomas Koenig --- (In reply to Mikael Morin from comment #15) > Status update: A lot of progress :-) > (In reply to Thomas Koenig from comment #5) > > Still missing: To clobber > > > > - variables passed by reference to th

[Bug fortran/107317] [10/11/12/13 Regression] ICE in emit_redzone_byte, at asan.cc:1508

2022-10-20 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107317 --- Comment #3 from Thomas Koenig --- As this is invalid code (and in Fortran), should this actually be P2?

[Bug fortran/107317] [10/11/12/13 Regression] ICE in emit_redzone_byte, at asan.cc:1508

2022-10-22 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107317 Thomas Koenig changed: What|Removed |Added Priority|P2 |P3

[Bug target/103109] New: madd not used for multiply add on POWER9

2021-11-06 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
: target Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- The following code #include void Long_multiplication( uint64_t multiplicand[], uint64_t multiplier[], uint64_t sum

[Bug fortran/103054] [f18] Gfortran accepts invalid and rejects valid co_reduce argument keyword name

2021-11-07 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
|RESOLVED CC||tkoenig at gcc dot gnu.org --- Comment #6 from Thomas Koenig --- Fixed by https://gcc.gnu.org/g:962ff7d2849e1fa6a1fe0535aa2dec5c2b9a32a6 Thanks for the bug report!

[Bug fortran/103043] gfortran can not write to files (macOS Monterey GCC 11.2.0)

2021-11-11 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103043 Thomas Koenig changed: What|Removed |Added CC||tkoenig at gcc dot gnu.org --- Comment

[Bug libfortran/95177] error: array subscript has type char

2021-11-11 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95177 --- Comment #13 from Thomas Koenig --- (In reply to anlauf from comment #12) > Any reason not to use the macros from safe-ctype.h? Can we actually use it? This is part of libiberty, AFAIK, and I am not sure that we link libgfortran against it.

[Bug fortran/102043] Wrong array types used for negative stride accesses

2021-11-12 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102043 --- Comment #11 from Thomas Koenig --- (In reply to Richard Biener from comment #10) > Is there any case where the frontend would make 'data' point into the > middle of the array and iteration over the array would end up accessing > elements on

[Bug fortran/102043] Wrong array types used for negative stride accesses

2021-11-13 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102043 --- Comment #13 from Thomas Koenig --- (In reply to Mikael Morin from comment #12) > (In reply to Thomas Koenig from comment #11) > > (In reply to Richard Biener from comment #10) > > > > > Is there any case where the frontend would make 'data'

[Bug fortran/102043] Wrong array types used for negative stride accesses

2021-11-14 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102043 Thomas Koenig changed: What|Removed |Added CC||sandra at codesourcery dot com --- Comm

[Bug fortran/102043] Wrong array types used for negative stride accesses

2021-11-14 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102043 --- Comment #20 from Thomas Koenig --- (In reply to Mikael Morin from comment #19) > (In reply to Thomas Koenig from comment #15) > > One possibility would be to extend the patch Sandra posted at > > https://gcc.gnu.org/pipermail/fortran/2021-Ja

[Bug fortran/103115] [12 Regression] reallocation of character array fails when appending a constant size 4 array

2021-11-15 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
||tkoenig at gcc dot gnu.org --- Comment #2 from Thomas Koenig --- I can confirm the bug with gcc 9 (didn't check any other version). Current trunk gives me .f90:10:13: 10 | ] | 1 interner Compiler-Fehler: tree check: expected integer_cst, have save_ex

[Bug fortran/103115] [12 Regression] reallocation of character array fails when appending a constant size 4 array

2021-11-16 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103115 --- Comment #4 from Thomas Koenig --- (In reply to Jürgen Reuter from comment #3) > Thomas, are you sure? I cannot see an ICE, neither with the master from > September 21 nor with the master from yesterday. I see the ICE with gcc version 12.0

[Bug fortran/103115] [12 Regression] reallocation of character array fails when appending a constant size 4 array

2021-11-16 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103115 --- Comment #5 from Thomas Koenig --- I can confirm the ICE with current trunk both on x86_64 and on POWER. x86_64: $ gfortran -v Es werden eingebaute Spezifikationen verwendet. COLLECT_GCC=gfortran COLLECT_LTO_WRAPPER=/home/ig25/libexec/gcc/x

[Bug fortran/103115] [12 Regression] reallocation of character array fails when appending a constant size 4 array

2021-11-17 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103115 --- Comment #7 from Thomas Koenig --- (In reply to Jürgen Reuter from comment #6) > Really interesting, I don't get an ICE with the following setup: > ../configure --prefix=/usr/local/ --with-gmp=/usr/local/ > --with-mpfr=/usr/local/ --with-mp=

[Bug c/103323] New: Front end simplifies sin although no header included

2021-11-18 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- $ cat a.c double sin(double x) { return x/2 + x; } double foo(double x) { return 1 - sin(-x); } $ gcc -S -fdump-tree-original a.c $ cat a.c.005t.original

[Bug c/103323] Front end simplifies sin although no header included

2021-11-18 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103323 Thomas Koenig changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c/51437] GCC should warn on the use of reserved identifier/macro names

2021-11-18 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
||tkoenig at gcc dot gnu.org Last reconfirmed||2021-11-18 Status|UNCONFIRMED |NEW --- Comment #15 from Thomas Koenig --- There should at least be a warning for code like double sin(double x) { return x/2 + x; } double foo

[Bug target/103476] New: --enable-maintainer-mode fails with "invalid separator" in libgfortran on POWER

2021-11-29 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
NCONFIRMED Severity: blocker Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- Created attachment 51899 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51899&action=edit po

[Bug target/103476] --enable-maintainer-mode fails with "invalid separator" in libgfortran on POWER

2021-11-29 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103476 Thomas Koenig changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug tree-optimization/103683] New: Redundant !__builtin_isnan not removed with -fno-signaling-nans

2021-12-13 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- If x is a NaN, then x > 1 will fail, so the __builtin_isnan function could be removed in comparisons l

[Bug fortran/103707] New: Stray "Array operands are incommensurate"

2021-12-14 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- Just stumbled across this... module prec implicit none private public :: wp integer, parameter :: dp = selected_real_kind(15) integer, param

[Bug fortran/103707] Stray "Array operands are incommensurate"

2021-12-14 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103707 --- Comment #1 from Thomas Koenig --- This is with gcc 11, no time to further reduce / try with trunk right now.

[Bug fortran/103707] Stray "Array operands are incommensurate"

2021-12-14 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103707 --- Comment #5 from Thomas Koenig --- Thanks for the quick reduction, Gerhard. This originally came from something like program p real, parameter :: fmin(1) = 0. real, parameter :: fmax(1) = 1. real :: x(1) where (fmin <= 0)

[Bug fortran/102079] Misleading -Wlto-type-mismatch warning on wrong float type to C function

2021-09-26 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102079 Thomas Koenig changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug libfortran/102992] fortran: redirecting standard out to a file does not work on macOS 12.0

2021-11-01 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102992 --- Comment #13 from Thomas Koenig --- Here is a complete strace of a "Hello, world" program on Linux, compiled with -static-libgfortran (to remove some of the shared library loading :-) and executed with $ strace ./a.out > hello.dat execve(".

[Bug libfortran/102992] fortran: redirecting standard out to a file does not work on macOS 12.0

2021-11-01 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102992 --- Comment #14 from Thomas Koenig --- (In reply to Iain Sandoe from comment #6) > I had a brief look at some new fails on macOS12 / Darwin21 for gcov. > > It seems that .mod_term_funcs entries are not being run - so if libgfortran > relies on

[Bug libfortran/102992] fortran: redirecting standard out to a file does not work on macOS 12.0

2021-11-01 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102992 --- Comment #15 from Thomas Koenig --- Hmm, to test this further: What does program main use, intrinsic :: iso_fortran_env, only: output_unit write (*,'(A)') 'Hello, world!' flush output_unit end program main yield, does that create the

[Bug libfortran/102992] fortran: redirecting standard out to a file does not work on macOS 12.0

2021-11-01 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102992 --- Comment #19 from Thomas Koenig --- (In reply to Jürgen Reuter from comment #18) > write(0x1, " Hello, world!\\n\n\0", 0x11) = 17 0 Hmm, was this actually the string that you put into the Fortran program, or is something very s

<    30   31   32   33   34   35   36   37   38   >