[Bug libgomp/120444] [OpenMP][6.0] Add omp_target_memset/omp_target_memset_async

2025-06-02 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120444 Tobias Burnus changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug fortran/120505] New: [OpenMP] Fortran deep mapping of alloc comp + component mapping like 'map(var%arr(1)%alloc)' in target (enter/exit) data

2025-06-02 Thread burnus at gcc dot gnu.org via Gcc-bugs
oduct: gcc Version: 16.0 Status: UNCONFIRMED Keywords: openmp, wrong-code Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- Created

[Bug c/120180] [OpenMP] ICE in C (c_parser_consume_token) / C++ cp_parser_skip_to_pragma_eol in error recovery for metadirective

2025-06-01 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120180 --- Comment #7 from Tobias Burnus --- The ICE is now fixed (GCC mainline/16 + GCC 15). [Thanks!] Open are the issues (or "issues") → comment 3 * non-executable directives (like 'omp nothing' or 'omp error at(compile)') as intervening code [Ope

[Bug libgomp/93226] OpenACC 2.6: acc_memcpy_device runtime function missing

2025-05-29 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93226 Tobias Burnus changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libgomp/93226] OpenACC 2.6: acc_memcpy_device runtime function missing

2025-05-28 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93226 Tobias Burnus changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug libgomp/120444] New: [OpenMP][6.0] Add omp_target_memset/omp_target_memset_async

2025-05-27 Thread burnus at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: libgomp Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: jakub at gcc dot gnu.org Target Milestone: --- omp_target_memset and omp_target_memset_async should be implemented. This requires on the

[Bug c++/120413] [12/13/14/15/16 Regression] C++ OpenMP 'target' SIGSEGV in 'gcc/cp/semantics.cc:finish_omp_target_clauses_r'

2025-05-26 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120413 --- Comment #5 from Tobias Burnus --- ICE FIXED so far for mainline (GCC 16) and GCC 15. * * * Reading: > There is also BIND_EXPR_VARS, dunno if that should be walked instead > or in addition. The current code is about adding map clauses for

[Bug target/120435] New: [New INSN][GCN] Add half-cycle trigonometric INSNs pattern (sinpi, cospi, …)

2025-05-26 Thread burnus at gcc dot gnu.org via Gcc-bugs
: missed-optimization Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: ams at gcc dot gnu.org Target Milestone: --- C23 (and Fortran 2023) added sinpi

[Bug middle-end/118694] OpenMP: target/metadirective/teams directive nesting gives error

2025-05-26 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118694 --- Comment #9 from Tobias Burnus --- STATUS: * 'target teams' handles the target part differently, depending whether a 'teams' follows or not. Thus, the host (launching the offload kernel) has to know whether a 'teams' follows or not. *

[Bug libgomp/93226] OpenACC 2.6: acc_memcpy_device runtime function missing

2025-05-26 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93226 --- Comment #1 from Tobias Burnus --- Created attachment 61519 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61519&action=edit Draft patch for 'acc_memcpy_device' - (only) missing are testcases (and possibly a bit cleanup/testing) This is

[Bug c++/120413] [12/13/14/15/16 Regression] C++ OpenMP 'target' SIGSEGV in 'gcc/cp/semantics.cc:finish_omp_target_clauses_r'

2025-05-23 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120413 --- Comment #2 from Tobias Burnus --- Cf. https://gcc.gnu.org/pipermail/gcc-patches/2025-May/684581.html for draft patch + discussion about whether BIND_EXPR_VARS needs to be handled as well.

[Bug c++/120413] [12/13/14/15/16 Regression] C++ OpenMP 'target' SIGSEGV in 'gcc/cp/semantics.cc:finish_omp_target_clauses_r'

2025-05-23 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120413 Tobias Burnus changed: What|Removed |Added Summary|C++ OpenMP 'target' SIGSEGV |[12/13/14/15/16 Regression]

[Bug c++/120413] C++ OpenMP 'target' SIGSEGV in 'gcc/cp/semantics.cc:finish_omp_target_clauses_r'

2025-05-23 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120413 --- Comment #1 from Tobias Burnus --- Technically, this is a [12/13/14/15/16 Regressions], unsurprising as the code has been added in GCC 12. * * * The resulting code for the target regions like: struct array arr; <; try

[Bug middle-end/118694] OpenMP: target/metadirective/teams directive nesting gives error

2025-05-21 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118694 --- Comment #6 from Tobias Burnus --- > Are we required to diagnose this as an error > or is it allowable to permit this as an extension? Answer "no" and "yes" - but the problem is that in general it does not work. (Potential wrong code issues,

[Bug testsuite/120167] [16 Regression] FAIL: libgomp.graphite/force-parallel-1.c by r16-372-g064cac730f88dc

2025-05-19 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120167 Tobias Burnus changed: What|Removed |Added CC||burnus at gcc dot gnu.org --- Comment

[Bug fortran/120225] [F2023] Use mpfr_sinu etc. with mpfr 4.2.0+ for degree trigonometric functions

2025-05-14 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120225 Tobias Burnus changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug fortran/113413] ATAND(Y,X) is unsupported

2025-05-13 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113413 Tobias Burnus changed: What|Removed |Added CC||burnus at gcc dot gnu.org

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

2025-05-13 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108577 Bug 108577 depends on bug 113413, which changed state. Bug 113413 Summary: ATAND(Y,X) is unsupported https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113413 What|Removed |Added -

[Bug fortran/113152] Fortran 2023 half-cycle trigonometric functions

2025-05-12 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113152 --- Comment #20 from Tobias Burnus --- And for the condition, I think the proper way is to write: #if MPFR_VERSION >= MPFR_VERSION_NUM(4,2,0) ... = mpfr_sinpi ( ... ) #else fallback #endif

[Bug other/120237] New: /pub/gcc/infrastructure/ + contrib/download_prerequisites: Update MPFR for C23 / Fortran 2023 functions

2025-05-12 Thread burnus at gcc dot gnu.org via Gcc-bugs
Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: rguenth at gcc dot gnu.org Target Milestone: --- contrib

[Bug fortran/120179] [15 Regression] Failure with do concurrent and semicolon

2025-05-12 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120179 --- Comment #9 from Tobias Burnus --- (In reply to Thomas Schwinge from comment #8) > > * gfortran.dg/do_concurrent_basic.f90: Extend testcase. > > I noticed this removed execution and torture testing; maybe unintentionally? I thin

[Bug fortran/120225] New: [F2023] Use mpfr_sinu etc. with mpfr 4.2.0+ for decimal trigonometric functions

2025-05-11 Thread burnus at gcc dot gnu.org via Gcc-bugs
Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- New in mpfr 4.2.0: "New functions mpfr_cosu, mpfr_sinu, mpfr_tanu, mpfr_acosu, mpfr_asinu, mpfr_atanu and mpfr_a

[Bug fortran/113152] Fortran 2023 half-cycle trigonometric functions

2025-05-11 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113152 Tobias Burnus changed: What|Removed |Added CC||burnus at gcc dot gnu.org --- Comment

[Bug libgomp/120194] USM offloading vs. 'libgomp.c++/declare_target-1.C'

2025-05-10 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120194 --- Comment #4 from Tobias Burnus --- Hmm, actually, it looks as if I have already implemented (B.2) in GCC 15+ in libgomp/target.c's gomp_load_image_to_device: if (is_link_var && (omp_requires_mask & (GOMP_REQUIRE

[Bug libgomp/120194] USM offloading vs. 'libgomp.c++/declare_target-1.C'

2025-05-10 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120194 --- Comment #3 from Tobias Burnus --- > ... this is ill-formed OpenMP? For 'requires unified_shared_memory', you are in the realm of un(der)specified behavior as OpenMP does not even mention how this case is handled. If you do (A) - or (B.1) +

[Bug c/120180] [OpenMP] ICE in C (c_parser_consume_token) / C++ cp_parser_skip_to_pragma_eol in error recovery for metadirective

2025-05-09 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120180 Tobias Burnus changed: What|Removed |Added Keywords||rejects-valid --- Comment #3 from Tobia

[Bug libgomp/120194] USM offloading vs. 'libgomp.c++/declare_target-1.C'

2025-05-09 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120194 --- Comment #1 from Tobias Burnus --- Without having looked at it in depth, I think part of the problem is that 'varX' and 'varY' are in static memory. Thus, by construction, there is a device and a host version. Solution: (a) Ensure the date

[Bug middle-end/118694] OpenMP: target/metadirective/teams directive nesting gives error

2025-05-09 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118694 --- Comment #3 from Tobias Burnus --- On mainline currently failing (for a GCC configured with nvptx offloading): libgomp.c-c++-common/metadirective-1.c:10:11: error: 'target' construct with nested 'teams' construct contains directives outsid

[Bug c/120180] [OpenMP] ICE in C (c_parser_consume_token) / C++ cp_parser_skip_to_pragma_eol in error recovery for metadirective

2025-05-08 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120180 --- Comment #1 from Tobias Burnus --- Created attachment 61369 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61369&action=edit C/C++ test case, compile with '-fopenmp' It is a bit UNCLEAR to me whether the attached TESTCASE is VALID OR N

[Bug c/120180] New: [OpenMP] C/C

2025-05-08 Thread burnus at gcc dot gnu.org via Gcc-bugs
at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: sandra at gcc dot gnu.org Target Milestone: ---

[Bug fortran/120173] New: [OpenACC][gcn-offload] wrong 'firstprivate' with 'acc parallel async' [modified libgomp.oacc-fortran/lib-13.f90]

2025-05-08 Thread burnus at gcc dot gnu.org via Gcc-bugs
c Version: 16.0 Status: UNCONFIRMED Keywords: openacc, wrong-code Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: ams at gcc

[Bug c++/118859] [OpenMP] dispatch accepts non-pointer template argument with adjust_args

2025-04-30 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118859 --- Comment #3 from Tobias Burnus --- This is (mostly) fixed by the two patches: * https://gcc.gnu.org/pipermail/gcc-patches/2025-April/681806.html * https://gcc.gnu.org/pipermail/gcc-patches/2025-April/682347.html TODO - besides those two pat

[Bug middle-end/120047] [OpenMP] adjust_args with Fortran 'optional' and C++ 'reference to pointer type'

2025-04-30 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120047 Tobias Burnus changed: What|Removed |Added Depends on||118859 Summary|[OpenMP] adju

[Bug middle-end/120047] New: [OpenMP] adjust_args with Fortran 'optional

2025-04-30 Thread burnus at gcc dot gnu.org via Gcc-bugs
ormal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: ---

[Bug fortran/119905] New: [OpenMP] Fortran deep mapping of allocatable components: Recursive types and FIRSTPRIVATE/PRIVATE not handled

2025-04-22 Thread burnus at gcc dot gnu.org via Gcc-bugs
Status: UNCONFIRMED Keywords: openmp, rejects-valid, wrong-code Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- Created

[Bug fortran/119904] New: [OpenMP] wrong code as map item sorting does not work - fails with: libgomp: Pointer target of array section wasn't mapped

2025-04-22 Thread burnus at gcc dot gnu.org via Gcc-bugs
: gcc Version: 15.0 Status: UNCONFIRMED Keywords: openmp, wrong-code Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- I think

[Bug target/119892] GCN: ROCm 6.4.0 compatibility

2025-04-22 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119892 Tobias Burnus changed: What|Removed |Added CC||burnus at gcc dot gnu.org --- Comment

[Bug c++/119736] rejected/ICEs when non type template parameter used as an argument to a const ref non type template parameter

2025-04-11 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119736 Tobias Burnus changed: What|Removed |Added CC||burnus at gcc dot gnu.org --- Comment

[Bug c++/119692] C++ 'typeinfo', 'vtable' vs. OpenACC, OpenMP 'target' offloading

2025-04-10 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119692 --- Comment #4 from Tobias Burnus --- Some generic remarks - regarding OpenMP to: > When still 'map'ping C++ 'typeinfo', 'vtable' at the OpenACC compute, > OpenMP 'target' construct Obviously, the type info etc. is required for all work on th

[Bug cobol/119302] cobol.3 manpage is installed without program_transform_name

2025-04-09 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119302 Tobias Burnus changed: What|Removed |Added CC||burnus at gcc dot gnu.org --- Comment

[Bug middle-end/119662] [OpenMP] Wrong-code for 'omp dispatch' with append_args clause and unhelpful debug line location

2025-04-08 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119662 Tobias Burnus changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug libgomp/119677] New: [OpenMP][6.1] Support omp_default_device / Cleanup modify_call_for_omp_dispatch via GOMP_DEVICE_DEFAULT_OMP_61

2025-04-08 Thread burnus at gcc dot gnu.org via Gcc-bugs
: 15.0 Status: UNCONFIRMED Keywords: openmp Severity: normal Priority: P3 Component: libgomp Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: jakub at gcc dot gnu.org Target Milestone

[Bug libgomp/119676] New: [OpenMP] Move constant/kind/type documentation from gfortran to libgomp.texi + update/add C/C++

2025-04-08 Thread burnus at gcc dot gnu.org via Gcc-bugs
Keywords: documentation, openmp Severity: normal Priority: P3 Component: libgomp Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: jakub at gcc dot gnu.org, sandra at gcc dot gnu.org Target

[Bug middle-end/119662] [OpenMP] Wrong-code for 'omp dispatch' with append_args clause and unhelpful debug line location

2025-04-07 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119662 --- Comment #2 from Tobias Burnus --- For 'adjust_args': void f0(int *); #pragma omp declare variant(f0) match(construct={dispatch}) \ adjust_args(need_device_ptr: x) void f(int *x); void g(int *a, int dev) { #pragma omp dispat

[Bug middle-end/119662] [OpenMP] Wrong-code for 'omp dispatch' with append_args clause and unhelpful debug line location

2025-04-07 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119662 Tobias Burnus changed: What|Removed |Added Summary|[OpenMP] Unhelpful debug|[OpenMP] Wrong-code for

[Bug middle-end/119662] New: [OpenMP] Unhelpful debug line location for append_args call

2025-04-07 Thread burnus at gcc dot gnu.org via Gcc-bugs
-debug Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: sandra at gcc dot gnu.org Target Milestone: --- Assume: 66is_targetsync = 0; 67

[Bug middle-end/119559] [15 regression] GOMP: ICE in modify_call_for_omp_dispatch

2025-04-01 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119559 Tobias Burnus changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug middle-end/119559] [15 regression] GOMP: ICE in modify_call_for_omp_dispatch

2025-03-31 Thread burnus at gcc dot gnu.org via Gcc-bugs
||2025-03-31 Assignee|unassigned at gcc dot gnu.org |burnus at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Tobias Burnus --- Created attachment 60938 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60938&acti

[Bug c/113905] [OpenMP] Declare variant rejects variant-function re-usage

2025-03-31 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113905 --- Comment #6 from Tobias Burnus --- See also bug #118690 for some Fortran issues related to declare variant diagnostic.

[Bug fortran/118690] [OpenMP] declare_variant - multiple use for same procedure not diagnosed

2025-03-31 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118690 --- Comment #1 from Tobias Burnus --- The following (cf. Bug #113905) is related, invalid but probably not detected: !$omp declare target (f1 : f0) match(context={parallel}) !$omp declare target (f2 : f0) match(context={target}) This violates:

[Bug middle-end/119541] [15 Regression] asan: dynamic-stack-buffer-overflow in modify_call_for_omp_dispatch at gimplify.cc:3976

2025-03-31 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119541 Tobias Burnus changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug middle-end/119541] [15 Regression] asan: dynamic-stack-buffer-overflow in modify_call_for_omp_dispatch at gimplify.cc:3976

2025-03-30 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119541 --- Comment #2 from Tobias Burnus --- The following seems to be the cleanest & simplest, namely to add it to the if (nappend < ninterop) error handling: --- a/gcc/gimplify.cc +++ b/gcc/gimplify.cc @@ -3949,6 +3949,7 @@ modify_call_for_om

[Bug middle-end/119541] [15 Regression] asan: dynamic-stack-buffer-overflow in modify_call_for_omp_dispatch at gimplify.cc:3976

2025-03-30 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119541 Tobias Burnus changed: What|Removed |Added Target Milestone|--- |15.0

[Bug middle-end/119541] [15 Regression] asan: dynamic-stack-buffer-overflow in modify_call_for_omp_dispatch at gimplify.cc:3976

2025-03-30 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119541 Tobias Burnus changed: What|Removed |Added CC||burnus at gcc dot gnu.org --- Comment

[Bug middle-end/118627] gcc/omp-general.cc:4197: The code looks like reading uninitialised data

2025-03-25 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118627 Tobias Burnus changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug middle-end/119325] [15 Regression] libgomp.c/simd-math-1.c (gcn offloading): timeout (for fmodf, remainderf) since r15-7257-g54bdeca3c62144

2025-03-25 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119325 --- Comment #23 from Tobias Burnus --- The patch has now landed: https://sourceware.org/git/?p=newlib-cygwin.git;a=commitdiff;h=2ef1a37e7823b21eda524972c006e0e8c26f97b3

[Bug target/119371] [15 Regression][OpenMP] accel/nvptx-none/lto1: ICE in in emit_move_insn, at expr.cc:4636

2025-03-20 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119371 --- Comment #2 from Tobias Burnus --- BTW: It seems as if none of the testcases in libgomp actually calls expand_GOMP_SIMT_XCHG_IDX! * * * The expansion happens in internal-fn.cc's static void expand_GOMP_SIMT_XCHG_IDX (internal_fn, gcall *st

[Bug middle-end/119325] [15 Regression] libgomp.c/simd-math-1.c (gcn offloading): timeout (for fmodf, remainderf) since r15-7257-g54bdeca3c62144

2025-03-20 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119325 --- Comment #21 from Tobias Burnus --- Andrew's patch to Newlib's newlib/libm/machine/amdgcn/amdgcn_veclib.h: * [PATCH] Fix GCN SIMD libm bug https://sourceware.org/pipermail/newlib/2025/021582.html

[Bug target/119371] [15 Regression][OpenMP] accel/nvptx-none/lto1: ICE in in emit_move_insn, at expr.cc:4636

2025-03-19 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119371 --- Comment #1 from Tobias Burnus --- Bisecting points at the following commit - but that seems to rather reveal the issue and not causing it: r15-3135-gcb51e0b236c7d4 lto: Don't check obj.found for offload section obj.found is the num

[Bug target/119371] New: [15 Regression][OpenMP] accel/nvptx-none/lto1: ICE in in emit_move_insn, at expr.cc:4636

2025-03-19 Thread burnus at gcc dot gnu.org via Gcc-bugs
Keywords: ice-on-valid-code, openmp Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: tschwinge at gcc dot gnu.org, vries at gcc dot gnu.org Target

[Bug c++/119370] [15 Regression][OpenMP] ICE in gimple_add_tmp_var, at gimplify.cc:834 for omptest's xt-declare-target-ctors since r15-2799

2025-03-19 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119370 --- Comment #3 from Tobias Burnus --- > Reduced testcase: > ... > S a[3]; Array size 1 is enough. My reduced testcase was: #pragma omp declare target struct SSD { SSD(); } sd[1]; #pragma omp end declare target input1.ii.018t.ompex

[Bug c++/119370] New: [15 Regression][OpenMP] ICE in gimple_add_tmp_var, at gimplify.cc:834 for omptest's xt-declare-target-ctors

2025-03-19 Thread burnus at gcc dot gnu.org via Gcc-bugs
tatus: UNCONFIRMED Keywords: ice-on-valid-code, openmp Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- This is a GCC 15 regression, at least G

[Bug target/119367] [15 Regression][gcn] libgomp.fortran/target1.f90 with '-O2 -g': '.2byte .LM6-.LM5' – error: ... out of range – since r15-8047-gadb14c7625178b

2025-03-19 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119367 --- Comment #1 from Tobias Burnus --- The diff for a.xamdgcn-amdhsa.mkoffload.270r.expand shows identical output. When glancing at the diff for a.xamdgcn-amdhsa.mkoffload.1.s, I noticed a large increase in the 'local vars size': - ; loca

[Bug target/119367] [15 Regression][gcn] libgomp.fortran/target1.f90 with '-O2 -g': '.2byte .LM6-.LM5' – error: ... out of range – since r15-8047-gadb14c7625178b

2025-03-19 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119367 --- Comment #4 from Tobias Burnus --- Quoted too few lines: 13001 dw2_asm_output_delta (2, line_label, prev_label, 13002 "from %s to %s", prev_label, line_label); which calls dw2_asm_output_delta

[Bug target/119367] [15 Regression][gcn] libgomp.fortran/target1.f90 with '-O2 -g': '.2byte .LM6-.LM5' – error: ... out of range – since r15-8047-gadb14c7625178b

2025-03-19 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119367 --- Comment #3 from Tobias Burnus --- (In reply to Andrew Pinski from comment #2) > https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/dwarf2out.cc; > h=a2acfd1d35654827492b69ec35b571accf2263a4;hb=HEAD#l12994 Namely, output_one_line_info_table: 1

[Bug target/119367] New: [15 Regression][gcn] libgomp.fortran/target1.f90 with '-O2 -g': '.2byte .LM6-.LM5' – error: ... out of range – since r15-8047-gadb14c7625178b

2025-03-19 Thread burnus at gcc dot gnu.org via Gcc-bugs
8047-gadb14c7625178b Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: openmp, wrong-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org

[Bug middle-end/119325] [15 Regression] libgomp.c/simd-math-1.c (gcn offloading): timeout (for fmodf, remainderf) since r15-7257-g54bdeca3c62144

2025-03-18 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119325 --- Comment #19 from Tobias Burnus --- (In reply to Richard Biener from comment #15) > maybe > > #define RESIZE_VECTOR(to_t, from) \ > ({ \ >__auto_type __from = (from); \ >to_t __to; >memcpy (&__to, &__from, MIN (sizeof (to_t), si

[Bug middle-end/119325] [15 Regression] libgomp.c/simd-math-1.c (gcn offloading): timeout (for fmodf, remainderf) since r15-7257-g54bdeca3c62144

2025-03-18 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119325 --- Comment #12 from Tobias Burnus --- BTW, I added some diagnostic to the 'if' clause showing: v64sf_fmod.c:147:109: warning: ‘__from’ (‘v2sf’ {aka ‘__vector(2) float’}): size = 8, align = 64 v64sf_fmod.c:147:198: warning: ‘__from’ (‘v2sf’ {ak

[Bug middle-end/119325] [15 Regression] libgomp.c/simd-math-1.c (gcn offloading): timeout (for fmodf, remainderf) since r15-7257-g54bdeca3c62144

2025-03-18 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119325 --- Comment #11 from Tobias Burnus --- > Can you attach preprocessed source of the libm function? BTW: The relevant newlib source files are (newlib/libm/machine/amdgcn/) the following; looking at those is much more readable: * amdgcn_veclib.h

[Bug middle-end/119325] [15 Regression] libgomp.c/simd-math-1.c (gcn offloading): timeout (for fmodf, remainderf) since r15-7257-g54bdeca3c62144

2025-03-18 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119325 --- Comment #9 from Tobias Burnus --- Created attachment 60801 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60801&action=edit libm_a-v64sf_fmod.i - as requested in comment 8

[Bug middle-end/119325] [15 Regression] libgomp.c/simd-math-1.c (gcn offloading): timeout (for fmodf, remainderf) since r15-7257-g54bdeca3c62144

2025-03-17 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119325 --- Comment #7 from Tobias Burnus --- I was wondering whether setting GCN_STACK_SIZE= would help; default is 32*1024. Answer: it does not seem to help, but I noticed that from time to time, it succeeds. I have a couple in a semi-row, but then 2

[Bug middle-end/119325] [15 Regression] libgomp.c/simd-math-1.c (gcn offloading): timeout (for fmodf, remainderf) since r15-7257-g54bdeca3c62144

2025-03-17 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119325 --- Comment #6 from Tobias Burnus --- Some more testing: Copying gfx908/libm.a of the 'failing' build directory to the install directory + re-compiling will make the binary fail, copying from the 'working' build directory, it will work. Thus,

[Bug fortran/119330] New: [OpenMP] GCC wrongly rejects depend(out:var%a(1:10))

2025-03-17 Thread burnus at gcc dot gnu.org via Gcc-bugs
: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- The following is rejected by gfortran with: 12 | !$omp task depend(out:var%a(1:10

[Bug fortran/119330] [OpenMP] GCC wrongly rejects depend(out:var%a(1:10)) - likewise for C/C++'s s.a[1:10]

2025-03-17 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119330 Tobias Burnus changed: What|Removed |Added Summary|[OpenMP] GCC wrongly|[OpenMP] GCC wrongly

[Bug middle-end/119325] [15 Regression] libgomp.c/simd-math-1.c (gcn offloading): timeout (for fmodf, remainderf) since r15-7257-g54bdeca3c62144

2025-03-17 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119325 --- Comment #5 from Tobias Burnus --- For both the reduced and the full example: If I write the pragma as: #pragma omp target map(to:a,b) map(from:res) #pragma omp for simd (i.e. I remove the 'parallel' before 'for simd') the code starts

[Bug middle-end/119325] [15 Regression] libgomp.c/simd-math-1.c (gcn offloading): timeout (for fmodf, remainderf) since r15-7257-g54bdeca3c62144

2025-03-17 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119325 Tobias Burnus changed: What|Removed |Added Summary|[15 Regression] |[15 Regression] |libg

[Bug middle-end/119325] [15 Regression] libgomp.c/simd-math-1.c (gcn offloading): timeout (for fmodf, remainderf) since r15-7284-g6b56e645a7b481

2025-03-17 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119325 --- Comment #2 from Tobias Burnus --- (In reply to Richard Biener from comment #1) > The bisection is quite odd I am re-testing. Somehow mixed full rebuilds and incremental builds, which affect whether newlib (libm) is rebuild or not. I am now

[Bug middle-end/119325] New: [15 Regression] libgomp.c/simd-math-1.c (gcn offloading): timeout (for fmodf, remainderf) since r15-7284-g6b56e645a7b481

2025-03-17 Thread burnus at gcc dot gnu.org via Gcc-bugs
Version: 15.0 Status: UNCONFIRMED Keywords: openmp, wrong-code Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: ams at gcc dot

[Bug fortran/115271] [OpenMP] Declare variant not stored in Fortran module file

2025-03-15 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115271 Tobias Burnus changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug middle-end/115076] [OpenMP] "declare variant" scoping rules and visibility

2025-03-14 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115076 --- Comment #3 from Tobias Burnus --- The testcase mentioned in PR 115271 comment 1, i.e., the existing (xfailed): libgomp/testsuite/libgomp.fortran/declare-variant-2.f90 libgomp/testsuite/libgomp.fortran/declare-variant-2-aux.f90 is interes

[Bug fortran/119288] New: [OpenMP] declare variant - adjust_args only detects invalid use when invoked

2025-03-14 Thread burnus at gcc dot gnu.org via Gcc-bugs
: accepts-invalid, diagnostic, openmp Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- Assume the following, created for PR115271. * As written, the

[Bug middle-end/119036] New: [OpenMP] dispatch with interop(obj) clause and obj == omp_interop_none should not set default-device-var ICV

2025-02-26 Thread burnus at gcc dot gnu.org via Gcc-bugs
: UNCONFIRMED Keywords: openmp Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: sandra at gcc dot gnu.org Target Milestone: --- OpenMP has

[Bug fortran/104651] [OOP] CLASS with assumed-size/assumed-rank array

2025-02-21 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104651 --- Comment #4 from Tobias Burnus --- Cf. also commit r15-7661-g8293b9e40f12e9 – especially the FIXME in in trans-types.cc's gfc_get_derived_type.

[Bug middle-end/118965] New: [OpenMP] require at least one target/targetsync with append_args' interop and 'interop's init clause

2025-02-21 Thread burnus at gcc dot gnu.org via Gcc-bugs
Status: UNCONFIRMED Keywords: accepts-invalid, diagnostic, openmp Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- GCC accepts: omp i

[Bug testsuite/113005] 'libgomp.fortran/rwlock_1.f90', 'libgomp.fortran/rwlock_3.f90' execution test timeouts

2025-02-20 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113005 --- Comment #19 from Tobias Burnus --- (In reply to Xi Ruoyao from comment #18) > I get warnings like below after building both libgomp and the test program > with tsan (following PR55561 comment 15): > > WARNING: ThreadSanitizer: lock-order-in

[Bug libfortran/118935] Segmentation fault in 'libgomp.fortran/rwlock_1.f90' when compiling libgfortran with '-O0'

2025-02-20 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118935 Tobias Burnus changed: What|Removed |Added Ever confirmed|1 |0 Status|WAITING

[Bug fortran/118937] New: DO CONCURRENT: Add a warning if 'SHARED' (or LOCAL(_INIT)) is not specified but multiple loop iterations modify a variable

2025-02-19 Thread burnus at gcc dot gnu.org via Gcc-bugs
oduct: gcc Version: 15.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- EXPECTED: Add

[Bug middle-end/118694] OpenMP: target/metadirective/teams directive nesting gives error

2025-02-18 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118694 --- Comment #2 from Tobias Burnus --- gcc/testsuite/gfortran.dg/gomp/metadirective-3.f90 also contains a testcase that triggers (if compiling with offload_nvptx enabled; xfailed).

[Bug fortran/115271] [OpenMP] Declare variant not stored in Fortran module file

2025-02-17 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115271 --- Comment #5 from Tobias Burnus --- Note the commit of comment 4 only fixes the INTERFACE issue of comment 2. The actual saving into/reading from .mod files has still to be implemented (comment 0, comment 1).

[Bug c++/118876] New: [15 Regression][OpenMP] ICE on valid code

2025-02-14 Thread burnus at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- omptests/xt-declare-target-ctors/test.cpp: In function ‘void __tcfsd(void*)’: omptests/xt-declare-target-ctors/test.cpp:103:5

[Bug middle-end/111042] [OpenMP] 'allocate' clause and combined directive - improve diagnostic, ICE because of missing diagnostic

2025-02-13 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111042 --- Comment #1 from Tobias Burnus --- Regarding Sollve_VV, that's now OpenMP_VV. The testcase is: tests/5.0/teams_loop/test_target_teams_loop_allocate.c And the pull request also migrated to: https://github.com/OpenMP-Validation-and-Verifica

[Bug c++/118859] [C++] dispatch accepts non-pointer template argument with adjust_args

2025-02-13 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118859 Tobias Burnus changed: What|Removed |Added Keywords||wrong-code --- Comment #1 from Tobias B

[Bug c++/118859] New: [C++] dispatch accepts non-pointer template argument with adjust_args

2025-02-13 Thread burnus at gcc dot gnu.org via Gcc-bugs
-invalid, diagnostic Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: parras at gcc dot gnu.org Target Milestone: --- Testcase: g++.dg/gomp/adjust-args-2.C

[Bug c++/118791] [15 Regression][OpenMP] declare variant messes up template instantiation with rvalue arguments

2025-02-12 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118791 --- Comment #11 from Tobias Burnus --- Just FYI without directly validity: clang++ (since 11.0 and up to main) accepts the attached testcase (comment 0 / attachment 60417) * * * Cross ref [vaguely related; C++ return-value + templates with Op

[Bug middle-end/118839] New: [OpenMP] Missing diagnostic when the variant is the same as the base name

2025-02-11 Thread burnus at gcc dot gnu.org via Gcc-bugs
: accepts-invalid, diagnostic, openmp Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- Clang prints: error: variant in '#pragma omp declare varian

[Bug c++/118791] [15 Regression][OpenMP] declare variant messes up template instantiation with rvalue arguments

2025-02-10 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118791 Tobias Burnus changed: What|Removed |Added Summary|declare variant messes up |[15 Regression][OpenMP]

[Bug c++/118791] declare variant messes up template instantiation with rvalue arguments

2025-02-09 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118791 Tobias Burnus changed: What|Removed |Added CC||jason at redhat dot com --- Comment #5

[Bug fortran/118740] [OpenMP] 'sorry' used without location data

2025-02-05 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118740 Tobias Burnus changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug fortran/118745] UBSAN: member access within null pointer of type 'struct gfc_omp_namelist' since r15-7285-gbea86e82146b9b

2025-02-05 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118745 Tobias Burnus changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug other/63426] [meta-bug] Issues found with -fsanitize=undefined

2025-02-05 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63426 Bug 63426 depends on bug 118745, which changed state. Bug 118745 Summary: UBSAN: member access within null pointer of type 'struct gfc_omp_namelist' since r15-7285-gbea86e82146b9b https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118745 Wh

  1   2   3   4   5   6   7   8   9   10   >