[Bug analyzer/112378] Missing -fanalizer diagnostics with glibc under _GNU_SOURCE

2023-11-04 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112378 --- Comment #1 from Rimvydas (RJ) --- The -fanalyzer does not seem to handle glibc __CONST_SOCKADDR_ARG definitions with transparent_unions that are used under -D_GNU_SOURCE (__USE_GNU). Minimal reduced testcase: $ cat test_sockaddr.c struct

[Bug analyzer/112378] New: Missing -fanalizer diagnostics with glibc under _GNU_SOURCE

2023-11-04 Thread rimvydas.jas at gmail dot com via Gcc-bugs
Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- Same vanishing diagnostics can be reproduced by running testsuite with: $ make check-gcc-c -k RUNTESTFLAGS="--target_board

[Bug libbacktrace/111315] libstdc++ stacktrace testsuite failures with --enable-default-pie

2023-11-03 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111315 --- Comment #6 from Rimvydas (RJ) --- (In reply to Xi Ruoyao from comment #5) > Maybe related to PR112263 but I'm not sure. Can confirm that with patch posted at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112263#c7 the stacktrace.cc

[Bug tree-optimization/111906] ICE: segfault during GIMPLE pass: dom in gsi_prev() testsuite torture/bitint-39.c with -O1 (expensive tests)

2023-10-24 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111906 --- Comment #5 from Rimvydas (RJ) --- ICE reproducible again outside check-gcc-c testing with gcc-14-4902 build: However it still passes with "-O1 -std=gnu2x" this time.

[Bug tree-optimization/111906] ICE: segfault during GIMPLE pass: dom in gsi_prev() testsuite torture/bitint-39.c with -O1 (expensive tests)

2023-10-22 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111906 Rimvydas (RJ) changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug tree-optimization/111906] New: ICE: segfault during GIMPLE pass: dom in gsi_prev() testsuite torture/bitint-39.c with -O1 (expensive tests)

2023-10-21 Thread rimvydas.jas at gmail dot com via Gcc-bugs
Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- Strange ICE does not happen with -O{0,2,3,s,g

[Bug libstdc++/111315] New: libstdc++ stacktrace testsuite failures with --enable-default-pie

2023-09-06 Thread rimvydas.jas at gmail dot com via Gcc-bugs
Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- The GCC configured with --enable-default-pie gives: === libstdc++ tests === Running target unix FAIL

[Bug fortran/111218] Conflict in BIND(C) INTERFACEs in two Modules leads to ICE.

2023-08-31 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111218 Rimvydas (RJ) changed: What|Removed |Added CC||rimvydas.jas at gmail dot com

[Bug fortran/110993] New: Possibly bogus diagnostic on renamed interface import

2023-08-11 Thread rimvydas.jas at gmail dot com via Gcc-bugs
Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- Spotted while checking why someone was manually mangling names with bind(c). $ cat foo.f90 module intfb_pack interface !subroutine bar(x) bind(c, name

[Bug fortran/110888] Missing optimization for trivial MATMUL cases, requires -fno-signed-zeros

2023-08-04 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110888 --- Comment #5 from Rimvydas (RJ) --- It is more like this problem: $ cat foo.c void foo_(double *x, double *y, double *z) { int i; __builtin_memset(z, 0, 8); /* z[0] = 0.0; */ for (i=0; i<1 ; i++) z[0] += x[0] * y[0]; } $ gcc -O2

[Bug fortran/110888] Missing optimization for trivial MATMUL cases, requires -fno-signed-zeros

2023-08-03 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110888 --- Comment #1 from Rimvydas (RJ) --- Created attachment 55680 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55680=edit possible fix With this patch an extra register is freed and compiler produces expected code on x86_64: movsd

[Bug fortran/110888] New: Missing optimization for trivial MATMUL cases, requires -fno-signed-zeros

2023-08-03 Thread rimvydas.jas at gmail dot com via Gcc-bugs
: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- $ cat foo.f90 subroutine foo(x,y,z) implicit none real(kind=selected_real_kind(9,99)) :: x(1), y(1,1), z(1) z

[Bug fortran/101919] Inconsistent -Wstringop-overread warning with -flto

2023-07-27 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101919 --- Comment #6 from Rimvydas (RJ) --- Additional reduced testcase. $ cat bar.F90 subroutine bar() implicit none character(len=80) :: base #ifdef V1 character(len=80),parameter :: f='longname_patterns.xml' integer,parameter :: k =

[Bug fortran/110350] New: Intrinsic handling inside nested associate blocks

2023-06-21 Thread rimvydas.jas at gmail dot com via Gcc-bugs
Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- $ cat test_iargc.f90 program foo implicit none integer :: iargc integer :: z associate(x=>z) associate(y=>z) if(iargc().lt.5) stop 5 end associat

[Bug fortran/109948] [13/14 Regression] ICE(segfault) in gfc_expression_rank() from gfc_op_rank_conformable()

2023-05-24 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109948 --- Comment #5 from Rimvydas (RJ) --- (In reply to anlauf from comment #4) > Can you check if this works for you? This patch allows to avoid issue on all other associate use cases (tried on gcc-13 branch). However it is a bit suspicious that

[Bug fortran/109948] ICE(segfault) in gfc_expression_rank() from gfc_op_rank_conformable()

2023-05-24 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109948 --- Comment #1 from Rimvydas (RJ) --- More trivial testcase resulting in similar ICE. $ cat test_associate2.f90 subroutine foo(grib) implicit none type b integer, allocatable :: k_2d(:) end type type(b) :: grib integer :: i

[Bug fortran/109948] New: ICE(segfault) in gfc_expression_rank() from gfc_op_rank_conformable()

2023-05-23 Thread rimvydas.jas at gmail dot com via Gcc-bugs
: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- Bisected down to recent g:611be07e48956c8b7371eb580eef124990114fd3 $ cat test_associate.f90 subroutine foo(y, x) implicit

[Bug tree-optimization/108705] [13 Regression] Unexpected CPU time usage with LTO in ranger propagation

2023-02-10 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108705 Rimvydas (RJ) changed: What|Removed |Added Resolution|--- |FIXED Status|WAITING

[Bug tree-optimization/108705] [13 Regression] Unexpected CPU time usage with LTO in ranger propagation

2023-02-10 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108705 --- Comment #9 from Rimvydas (RJ) --- (In reply to Andrew Macleod from comment #8) > This fix I just checked in for 108687 exhibited similar performance > characteristics, also in the same pass.. Perhaps it will fix your problem. Thank you!

[Bug tree-optimization/108705] [13 Regression] Unexpected CPU time usage with LTO in ranger propagation

2023-02-09 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108705 --- Comment #7 from Rimvydas (RJ) --- The original cases have over 65 long call cascades that take different small arrays to be packed. Because of geometric time growth for every next repeated call, the -flto -O2 is unusable in these specific

[Bug tree-optimization/108705] [13 Regression] Unexpected CPU time usage with LTO in ranger propagation

2023-02-09 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108705 --- Comment #6 from Rimvydas (RJ) --- Created attachment 54442 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54442=edit compressed output of gprof lto1 gmon.out profiled lto1 backend took 3829s to optimize 16 foo_() calls

[Bug tree-optimization/108705] [13 Regression] Unexpected CPU time usage with LTO in ranger propagation

2023-02-09 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108705 --- Comment #4 from Rimvydas (RJ) --- Interesting. I see failure even on online godbolt compiler x86-64 gfortran (trunk) with -O2: "Killed - processing time exceeded" Just rechecked on fresh arch linux with gcc 12.2.1 host: $ ./gcc/gfortran

[Bug fortran/108735] New: Wrong line reported on -Wmaybe-uninitialized false positive at -O2 and missing optimizations

2023-02-08 Thread rimvydas.jas at gmail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- Reduced testcase: $ cat ilev.f90 subroutine foo(lev,p,r) implicit none integer :: lev,i,j integer

[Bug tree-optimization/108705] [13 Regression] Unexpected CPU time usage with LTO in ranger propagation

2023-02-07 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108705 --- Comment #1 from Rimvydas (RJ) --- Using assumed shape arrays "p(:),s(:)" in bar() requires longer chain of calls to foo() and all time spent moves to "tree VRP", but produced assembly is more cluttered than with assumed size array

[Bug tree-optimization/108705] New: Unexpected CPU time usage with LTO in ranger propagation

2023-02-07 Thread rimvydas.jas at gmail dot com via Gcc-bugs
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- Very trivialized reduced testcase that still works with --enable-checking=release configured trunk. $ cat hog.f90 # foo

[Bug fortran/108686] New: Spurious -Wc-binding-type diagnostics when including omp_lib.h

2023-02-06 Thread rimvydas.jas at gmail dot com via Gcc-bugs
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- $ cat test.f90 subroutine foo include 'omp_lib.h' end subroutine $ gfortran -Wall -c test.f90 omp_lib.h:389:47: Warning: Variable

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

2023-01-29 Thread rimvydas.jas at gmail dot com via Gcc-bugs
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- $ cat intdiv.f90 program foo if (8 < (20/9)) stop 8 end program $ gfortran -Wall intdiv.f90 intdiv.f90:2:11: 2 | if (8 <

[Bug fortran/108349] New: LTO mismatch for __builtin_realloc between glibc and gfortran frontend

2023-01-10 Thread rimvydas.jas at gmail dot com via Gcc-bugs
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- $ cat foo.f90 program foo end program module buffer integer,allocatable :: mpi_ids(:) contains subroutine method(ids

[Bug fortran/107397] [10/11/12/13 Regression] ICE in gfc_arith_plus, at fortran/arith.cc:654

2022-12-18 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107397 --- Comment #10 from Rimvydas (RJ) --- Created attachment 54121 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54121=edit testcase fix

[Bug fortran/107397] [10/11/12/13 Regression] ICE in gfc_arith_plus, at fortran/arith.cc:654

2022-12-18 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107397 Rimvydas (RJ) changed: What|Removed |Added CC||rimvydas.jas at gmail dot com

[Bug fortran/81615] save-temps and gfortran produces *.f90 files instead of *.i or *i90 files

2022-12-11 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81615 Rimvydas (RJ) changed: What|Removed |Added CC||rimvydas.jas at gmail dot com

[Bug libfortran/108056] backward compatibility issue between 11 and 12

2022-12-11 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108056 Rimvydas (RJ) changed: What|Removed |Added CC||rimvydas.jas at gmail dot com

[Bug libstdc++/104019] Testsuite 17_intro/headers/c++2020/stdc++_multiple_inclusion.cc failures

2022-01-23 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104019 --- Comment #9 from Rimvydas (RJ) --- Also there are more possible teststuite failures when running with: $ make check-target-libstdc++-v3 -k RUNTESTFLAGS="conformance.exp=17_intro*

[Bug libstdc++/104019] Testsuite 17_intro/headers/c++2020/stdc++_multiple_inclusion.cc failures

2022-01-23 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104019 --- Comment #8 from Rimvydas (RJ) --- Thank you for the patches.  Testsuite now gives: PASS: 17_intro/headers/c++1998/stdc++.cc (test for excess errors)PASS: 17_intro/headers/c++1998/stdc++_multiple_inclusion.cc (test for excess errors) PASS:

[Bug c++/104134] Bootstrap on FreeBSD files compiling gcc/cp/error.cc

2022-01-19 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104134 Rimvydas (RJ) changed: What|Removed |Added CC||rimvydas.jas at gmail dot com

[Bug testsuite/104021] gcc.dg/vect/tsvc tests failures

2022-01-18 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104021 --- Comment #2 from Rimvydas (RJ) --- Created attachment 52225 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52225=edit Signed-off-by version

[Bug testsuite/104022] g++.dg/gcov/pr16855.C does not precleanup upon failures

2022-01-18 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104022 --- Comment #2 from Rimvydas (RJ) --- Created attachment 52224 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52224=edit proposed patch I do not have write access. Would Signed-off-by version be OK?

[Bug testsuite/104022] New: g++.dg/gcov/pr16855.C does not precleanup upon failures

2022-01-13 Thread rimvydas.jas at gmail dot com via Gcc-bugs
Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- Created attachment 52186 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52186=edit xfails Testsuite on x86_64-*-dragonfly gi

[Bug testsuite/104021] New: gcc.dg/vect/tsvc tests failures

2022-01-13 Thread rimvydas.jas at gmail dot com via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- Created attachment 52185 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52185=edit simple fix Testsuite on x86_64-*-dragonfly gives: $ gmake check-gcc-c -k RUNTESTFL

[Bug libstdc++/104019] New: Testsuite 17_intro/headers/c++2020/stdc++_multiple_inclusion.cc failures

2022-01-13 Thread rimvydas.jas at gmail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- Testsuite on x86_64-*-dragonfly gives: Running target unix FAIL: 17_intro/headers/c++1998/stdc

[Bug testsuite/102394] Gfortran testsuite could avoid target specific tests

2021-09-17 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102394 --- Comment #2 from Rimvydas (RJ) --- Also with updated toolchain to glibc-2.34 (still not sure if this was not happening before) noticed that very rarely one test in particular sometimes fail during parallel check-gcc-fortran. Running

[Bug testsuite/102394] Gfortran testsuite could avoid target specific tests

2021-09-17 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102394 --- Comment #1 from Rimvydas (RJ) --- Created attachment 51475 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51475=edit possible generalizations === gfortran Summary === -# of expected passes 60534 +# of

[Bug testsuite/102394] New: Gfortran testsuite could avoid target specific tests

2021-09-17 Thread rimvydas.jas at gmail dot com via Gcc-bugs
Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- Given latest gcc/testsuite/gfortran.dg/c-interop/ failures it might be a good time generalize most of gcc/testsuite/gfortran.dg/ tests for easier detection

[Bug fortran/102145] TKR mismatches with -pedantic: -fallow-argument-mismatch does not degrade errors to warnings

2021-09-12 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102145 --- Comment #11 from Rimvydas (RJ) --- (In reply to Steve Kargl from comment #10) > Yes, I know -std=legacy implies -fallow-argument-mismatch. The > option degrades an ERROR to a WARNING. That is all it does. > With -std=legacy, gfortran is

[Bug fortran/102145] TKR mismatches with -pedantic: -fallow-argument-mismatch does not degrade errors to warnings

2021-09-12 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102145 --- Comment #9 from Rimvydas (RJ) --- (In reply to Steve Kargl from comment #8) > Yes, it should behave like -pedantic-errors. Actually no, -pedantic is equivalent to -Wpedantic, while -pedantic-errors is -Werror=pedantic. Rest is

[Bug fortran/102145] TKR mismatches with -pedantic: -fallow-argument-mismatch does not degrade errors to warnings

2021-09-12 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102145 --- Comment #7 from Rimvydas (RJ) --- (In reply to kargl from comment #6) > Well, that's what it should do! Argument mismatch has never > been permitted by any Fortran standard. So, PEDANTICALLY > speaking it is an error to allow.

[Bug fortran/101918] LTO type mismatches for runtime library functions in mixed -fdefault-real-8 projects

2021-09-12 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101918 Rimvydas (RJ) changed: What|Removed |Added Attachment #51398|0 |1 is obsolete|

[Bug fortran/102145] TKR mismatches with -pedantic: -fallow-argument-mismatch does not degrade errors to warnings

2021-09-12 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102145 --- Comment #5 from Rimvydas (RJ) --- Created attachment 51441 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51441=edit old WIP for arg mismatch

[Bug fortran/102145] TKR mismatches with -pedantic: -fallow-argument-mismatch does not degrade errors to warnings

2021-09-12 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102145 Rimvydas (RJ) changed: What|Removed |Added CC||rimvydas.jas at gmail dot com

[Bug fortran/101918] LTO type mismatches for runtime library functions in mixed -fdefault-real-8 projects

2021-09-02 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101918 --- Comment #25 from Rimvydas (RJ) --- Created attachment 51401 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51401=edit testcase with ice deep in rtl code for sign extend

[Bug fortran/101918] LTO type mismatches for runtime library functions in mixed -fdefault-real-8 projects

2021-09-02 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101918 --- Comment #24 from Rimvydas (RJ) --- Created attachment 51400 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51400=edit alog() intrinsic testcases

[Bug fortran/101918] LTO type mismatches for runtime library functions in mixed -fdefault-real-8 projects

2021-09-02 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101918 --- Comment #23 from Rimvydas (RJ) --- Created attachment 51399 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51399=edit additional patch, for previous behavior

[Bug fortran/101918] LTO type mismatches for runtime library functions in mixed -fdefault-real-8 projects

2021-09-02 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101918 --- Comment #22 from Rimvydas (RJ) --- Created attachment 51398 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51398=edit proposed patch

[Bug fortran/101918] LTO type mismatches for runtime library functions in mixed -fdefault-real-8 projects

2021-09-02 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101918 --- Comment #21 from Rimvydas (RJ) --- After long poking with gdb the tree t1 and t2 structures in lto-symtab.c:warn_type_compatibility_p() just before "lev |5" is returned, it looks like trees are are almost identical except for

[Bug fortran/101918] LTO type mismatches for runtime library functions in mixed -fdefault-real-8 projects

2021-08-30 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101918 --- Comment #20 from Rimvydas (RJ) --- Full -fdump-tree-original foo.f90.005t.original from Comment #8 example: __attribute__((fn spec (". "))) void foo () { static real(kind=8) b[4] = {[0 ... 3]=1.0e+0}; real(kind=8) h[4]; { struct

[Bug fortran/101918] LTO type mismatches for runtime library functions in mixed -fdefault-real-8 projects

2021-08-30 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101918 --- Comment #18 from Rimvydas (RJ) --- (In reply to Steve Kargl from comment #17) > There is Fortran code in libgfortran that is compiled > by gfortran when the compiler is built. Whether that > code works as intended when someone uses

[Bug fortran/101918] LTO type mismatches for runtime library functions in mixed -fdefault-real-8 projects

2021-08-30 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101918 --- Comment #16 from Rimvydas (RJ) --- (In reply to Steve Kargl from comment #15) > I'm also the person that made these options work > for some definition of "work", and I have always considered > these options to be broken because of what you

[Bug fortran/101918] LTO type mismatches for runtime library functions in mixed -fdefault-real-8 projects

2021-08-30 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101918 --- Comment #14 from Rimvydas (RJ) --- (In reply to Steve Kargl from comment #13) > The -fdefault-* options change the storage association rules > in a way that breaks Fortran. Places of concern include, but > are not limited, to COMMON,

[Bug fortran/101918] LTO type mismatches for runtime library functions in mixed -fdefault-real-8 projects

2021-08-30 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101918 --- Comment #12 from Rimvydas (RJ) --- (In reply to kargl from comment #11) > One of these is no like the others. Yes, the behavior is documented, > and the unlike other result is likely the result that is no desired > unless the user enjoys

[Bug fortran/97571] long parsing phase for simple array constructor

2021-08-30 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97571 --- Comment #13 from Rimvydas (RJ) --- I agree that it is preferred to rewrite such look up table initialization, however it is not always possible due to licensing restrictions preventing making local modifications to the source code provided.

[Bug fortran/101918] LTO type mismatches for runtime library functions in mixed -fdefault-real-8 projects

2021-08-30 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101918 --- Comment #8 from Rimvydas (RJ) --- If we can agree that use of -fdefault-real-8 -fdefault-double-8 with -flto does not magically recompile intrinsic subroutines in runtime libgfortran.so library, it looks like it is a frontend issue not

[Bug fortran/101918] LTO type mismatches for runtime library functions in mixed -fdefault-real-8 projects

2021-08-30 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101918 --- Comment #7 from Rimvydas (RJ) --- The suggested removal of -fdefault-real-8 -fdefault-double-8 options would be very problematic for many climate modeling libraries where similar '-r8' option works as users expect in different compilers:

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

2021-08-26 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102079 --- Comment #1 from Rimvydas (RJ) --- On side note the gfortran -fc-prototypes-external do suggest (as documentation for gfortran v8 and newer) to use size_t type for hidden character array lengths that are passed by value instead of usual by

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

2021-08-26 Thread rimvydas.jas at gmail dot com via Gcc-bugs
: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- $ cat bar.c #include void bar_ (char *cdname, /*float*/ double *pkey, char *cdfile, size_t cdname_len, size_t

[Bug fortran/101919] New: Inconsistent -Wstringop-overread warning with -flto

2021-08-15 Thread rimvydas.jas at gmail dot com via Gcc-bugs
Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- $ cat gl_test.f90 program foo implicit none character(len=100) :: c =' ' if (c(1:12) == 'Accumulated ') c = c(13:len_trim(c)) end program $ gfortran -Wall

[Bug fortran/101918] LTO type mismatches for runtime library functions in mixed -fdefault-real-8 projects

2021-08-15 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101918 --- Comment #1 from Rimvydas (RJ) --- Also several programs report spurious warnings: : warning: type of '__builtin_realloc' does not match original declaration [-Wlto-type-mismatch] /opt/nwp/gcc11/include/stdlib.h:550:14: note: type mismatch

[Bug fortran/101918] New: LTO type mismatches for runtime library functions in mixed -fdefault-real-8 projects

2021-08-15 Thread rimvydas.jas at gmail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- $ cat bar.f90 program bar implicit none logical :: mask(2,3) integer :: ai(2,3), vi(5) real :: ar(2,3), vr

[Bug fortran/101917] New: Spurious -Wstringop-overread with -flto when passing zero sized arrays

2021-08-15 Thread rimvydas.jas at gmail dot com via Gcc-bugs
: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- $ cat bar.c void bar_(const int flag[], const int *num) { } $ cat foo.f90 program foo integer :: idummy(0) call bar

[Bug libstdc++/99270] New: Testsuite 27_io/headers/cstdio/types_std.cc failure on DragonFly

2021-02-25 Thread rimvydas.jas at gmail dot com via Gcc-bugs
Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- Testsuite on x86_64-*-dragonfly gives: Running target unix FAIL: 27_io/headers/cstdio/types_std.cc (test for excess errors

[Bug libstdc++/99265] New: Testsuite 17_intro/headers/c++2020/stdc++.cc failure after std::chrono changes

2021-02-25 Thread rimvydas.jas at gmail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- Testsuite on x86_64-*-dragonfly gives: Running target unix FAIL: 17_intro/headers/c++2020/stdc++.cc (test

[Bug bootstrap/98318] [11 Regression] libcody breaks DragonFly bootstrap

2021-02-24 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98318 --- Comment #14 from Rimvydas (RJ) --- Nathan, It has come to our attention that some of c++ modules tests are failing if the kernel has IPV6 support disabled as per bootstrap tools policies. Are there guarantees that local two stage bootstrap

[Bug bootstrap/98318] libcody breaks DragonFly bootstrap

2020-12-23 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98318 --- Comment #11 from Rimvydas (RJ) --- Nathan, there seem to be another issue for 'make check' invoke in top level dir: configure --enable-bootstrap ... gmake -j128 && gmake -j1 -k check gmake[2]: Leaving directory

[Bug bootstrap/98318] libcody breaks DragonFly bootstrap

2020-12-23 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98318 Rimvydas (RJ) changed: What|Removed |Added Resolution|INVALID |FIXED --- Comment #10 from Rimvydas

[Bug libstdc++/98344] New: Testsuite 17_intro/headers/c++2020/stdc++.cc failure

2020-12-17 Thread rimvydas.jas at gmail dot com via Gcc-bugs
Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- Testsuite on x86_64-*-dragonfly gives: Running target unix FAIL: 17_intro/headers/c++2020/stdc++.cc (test for excess errors) FAIL: 17_intro/headers/c++2020/stdc

[Bug bootstrap/98318] libcody breaks DragonFly bootstrap

2020-12-16 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98318 --- Comment #2 from Rimvydas (RJ) --- With configure fixed in g:6d972f5183d8d476cfb008b85e224aa9b90e628d only missing header issue remains in netclient.cc and netserver.cc: g++ -std=c++11 -g -fno-enforce-eh-specs -fno-stack-protector

[Bug bootstrap/98318] libcody breaks DragonFly bootstrap

2020-12-16 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98318 --- Comment #1 from Rimvydas (RJ) --- Could there be added configure option to disable use of libcody functionality globally like "./configure --disable-cody" or --disable-libstdcxx-modules?

[Bug bootstrap/98318] New: libcody breaks DragonFly bootstrap

2020-12-16 Thread rimvydas.jas at gmail dot com via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- Created attachment 49776 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49776=edit possible fix Since the introduction of libcody, gcc bootstrap is broken on DragonFly

[Bug c++/96504] [coroutines] test failures with glibc-2.32

2020-10-28 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96504 Rimvydas (RJ) changed: What|Removed |Added CC||rimvydas.jas at gmail dot com

[Bug libstdc++/70940] pmr::resource_adaptor requires optional allocator requirements and incorrectly aligns returned pointers.

2020-10-27 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70940 --- Comment #12 from Rimvydas (RJ) --- Missing #include in testsuite gives /z/gg/libstdc++-v3/testsuite/experimental/memory_resource/new_delete_resource.cc: In function 'bool aligned(void*)':

[Bug rtl-optimization/97554] ICE: during RTL pass: cprop /segfault in sbitmap

2020-10-26 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97554 --- Comment #3 from Rimvydas (RJ) --- The g:50f9e1f4d458e36d306b2449c689e45492847f68 applied on top of gcc-10.2 release tarball also allows to compile without segfault in reasonable amount of time. Could this fix be added to gcc-10 branch for

[Bug fortran/97571] New: long parsing phase for simple array constructor

2020-10-25 Thread rimvydas.jas at gmail dot com via Gcc-bugs
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- gcc version 11.0.0 20201025 (experimental) [master revision d7ddd287c:9f8172cd7:47d13acbda9a5d8eb57ff169ba74857cd54108e4] (GCC) x86_64-unknown-linux $ cat init.f90

[Bug libstdc++/96817] __cxa_guard_acquire unsafe against dynamically loaded pthread

2020-10-25 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96817 Rimvydas (RJ) changed: What|Removed |Added CC||rimvydas.jas at gmail dot com

[Bug libgomp/88707] Random failures of libgomp.c++/task-reduction-(8|10|11|13).C

2020-10-25 Thread rimvydas.jas at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88707 Rimvydas (RJ) changed: What|Removed |Added CC||rimvydas.jas at gmail dot com

[Bug rtl-optimization/97554] New: ICE: during RTL pass: cprop /segfault in sbitmap

2020-10-23 Thread rimvydas.jas at gmail dot com via Gcc-bugs
: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- Created attachment 49435 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49435=edit reduced testcase Attached is very reduced case from autogenera

[Bug c++/89766] [8 Regression] ICE: canonical types differ for identical types, -std=c++17

2019-03-20 Thread rimvydas.jas at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89766 --- Comment #10 from Rimvydas (RJ) --- Using 9.0.1 20190319 as reference several ICE cases reduce down to the same snippet (regression on trunk)? $ cat trunk_accepts_invalid.ii class a { constexpr a(); }; template struct b { static constexpr

[Bug c++/89766] [8 Regression] ICE: canonical types differ for identical types, -std=c++17

2019-03-19 Thread rimvydas.jas at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89766 --- Comment #8 from Rimvydas (RJ) --- Created attachment 45995 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45995=edit Compressed original case (3.3M).

[Bug c++/89766] [8 Regression] ICE: canonical types differ for identical types, -std=c++17

2019-03-19 Thread rimvydas.jas at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89766 --- Comment #4 from Rimvydas (RJ) --- @Martin: Yes, ICE happens for valid code too only if -fchecking=1. Reduced cases are invalid and rejected by 9.0.1 20190319 and 8.2.1 20181127. However 8.3.1 20190319 accepts them even for -fchecking=0.

[Bug c++/89766] New: ICE: canonical types differ for identical types, -std=c++17

2019-03-18 Thread rimvydas.jas at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- Using gcc-8 branch c++17 three different(?) ICEs with -fchecking while compiling boost: $ /opt/gcc8/bin/g++ --version # on DragonFlyBSD

[Bug c++/85092] New: ICE under -std=gnu++1z in build_over_call under, at cp/call.c:8149

2018-03-27 Thread rimvydas.jas at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- Recent regression. $ cat citra.cpp #include struct Part { Part(const std::int32_t& value) : value{std::to_string(v

[Bug c++/85045] New: ICE+SIGILL on valid C++ code: cxx_pretty_printer::postfix_expression(tree_node*) (), at cp/cxx-pretty-print.c:482

2018-03-23 Thread rimvydas.jas at gmail dot com
: 8.0.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- Trunk on openSUSE and DragonFly on x86_64. Reduced testcase

[Bug c/84063] New: Misleading diagnostic for ignored attributes under -Wattributes

2018-01-26 Thread rimvydas.jas at gmail dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- Created attachment 43253 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43253=edit testcase Wouldn't -Wignored-attribu

[Bug c/83955] New: false positive implicit-fallthrough warning on switch enum

2018-01-20 Thread rimvydas.jas at gmail dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- Created attachment 43199 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43199=edit testcase Attached testcase on openSUSE and Dragon

[Bug libfortran/81938] valgrind error message and heap-buffer-overflow on address sanitized libgfortran.so

2017-10-26 Thread rimvydas.jas at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81938 --- Comment #6 from Rimvydas (RJ) --- (In reply to Dominique d'Humieres from comment #4) > Thanks for working on this issue. > > The patch in comment 2 fixes this PR along with the failures for > gfortran.dg/fmt_cache_1.f and

[Bug libfortran/81938] valgrind error message and heap-buffer-overflow on address sanitized libgfortran.so

2017-10-25 Thread rimvydas.jas at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81938 --- Comment #3 from Rimvydas (RJ) --- fmt_cache_1.f in valgrind is reproducible on aarch64-suse-linux One scientific package has a tendency to crash in similar place. Program terminated with signal SIGSEGV, Segmentation fault. #0

[Bug libfortran/81938] valgrind error message and heap-buffer-overflow on address sanitized libgfortran.so

2017-10-25 Thread rimvydas.jas at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81938 Rimvydas (RJ) changed: What|Removed |Added CC||rimvydas.jas at gmail dot com

[Bug middle-end/78224] ICE at -O2(-O1 on gcc6) and above in verify_loop_structure, at cfgloop.c:1646

2016-11-06 Thread rimvydas.jas at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78224 --- Comment #1 from Rimvydas (RJ) --- Same ICE+segv is triggered at -O2 on: gcc version 4.9.2 (Debian 4.9.2-10) gcc version 4.8.5 (SUSE Linux) Works fine at -O3 on: $ CCVER=gcc47 g++ -v Using built-in specs. COLLECT_GCC=/usr/libexec/gcc47/g++

[Bug c++/78224] New: ICE at -O2(-O1 on gcc6) and above in verify_loop_structure, at cfgloop.c:1646

2016-11-06 Thread rimvydas.jas at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rimvydas.jas at gmail dot com Target Milestone: --- Created attachment 39972 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39972=edit bare minimum testcase, to s

[Bug libfortran/77473] New PRNG causes regressions on DragonFly BSD

2016-10-25 Thread rimvydas.jas at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77473 Rimvydas (RJ) changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug libfortran/77473] New PRNG causes regressions on DragonFly BSD

2016-10-01 Thread rimvydas.jas at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77473 --- Comment #4 from Rimvydas (RJ) --- Yes it is an issue in gthr-posix.h how presence of pthread is checked on DragonFly. libc contains pthread_cancel() stub and it is strange why we detected failures only now on testsuite after new PRNG in

[Bug libfortran/77473] New PRNG causes regressions on DragonFly BSD

2016-10-01 Thread rimvydas.jas at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77473 --- Comment #3 from Rimvydas (RJ) --- Created attachment 39730 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39730=edit possible variant to use libc internal status variable On DragonFly libpthread always brings libc so __isthreaded is

  1   2   >