[Bug fortran/116661] Undefined behavior when compiling interop-1.f90 gomp test

2024-09-12 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116661 --- Comment #6 from Tobias Burnus --- > FAIL: gfortran.dg/gomp/interop-1.f90 That's a known issue – there is a parsing issue that was (usually) hidden by the not properly initialized variable. Now it is exposed as consistent FAIL, which is muc

[Bug middle-end/116684] New: [vectorization][x86-64] dot_16x1x16_uint8_int8_int32 could be better optimized

2024-09-11 Thread burnus at gcc dot gnu.org via Gcc-bugs
: missed-optimization Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- Target: x86-64 Found at https://www.darpa.mil/attachments/MOCHA

[Bug lto/116535] LTO partitioning vs. offloading compilation

2024-09-03 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116535 --- Comment #9 from Tobias Burnus --- (In reply to Jan Hubicka from comment #7) > We treat first partition somewhat specially in other code too, so I > guess we could a test if the streamed partition is first one instad of > relying on free to h

[Bug lto/116535] LTO partitioning vs. offloading compilation

2024-09-02 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116535 --- Comment #4 from Tobias Burnus --- (In reply to Richard Biener from comment #3) > The forked processes may not write to any "global" data because forking > makes that data not global ... instead any such "global" data has to be > computed bef

[Bug lto/116535] LTO partitioning vs. offloading compilation

2024-08-30 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116535 --- Comment #2 from Tobias Burnus --- Namely, the following seems to be problematic if the code is run concurrently. The FORK part is actually quite old r207515 (Feb 2014) as is the following code with flag_wpa, which was added in r217489 (No

[Bug lto/116535] LTO partitioning vs. offloading compilation

2024-08-30 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116535 --- Comment #1 from Tobias Burnus --- I have problems reproducing it fully reliably – and my impression is that a global variable is not atomically set. The difference between -flto=1 and -flto=2 with -flto-partition=max is rather small. In eit

[Bug fortran/116269] [OpenACC] acc_on_device – compile-time optimization fails

2024-08-07 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116269 --- Comment #1 from Tobias Burnus --- Note regarding the compile-time optimization: Currently, gcc/gimple-fold.cc's gimple_fold_builtin_acc_on_device only handles: unsigned val_host = GOMP_DEVICE_HOST; unsigned val_dev = GOMP_DEVICE_NONE;

[Bug fortran/116269] New: [OpenACC] acc_on_device – compile-time optimization fails

2024-08-07 Thread burnus at gcc dot gnu.org via Gcc-bugs
, openacc Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- For C, both __builtin_acc_on_device and acc_on_device is defined, permitting compile-time

[Bug testsuite/115140] [15 regression] libgomp.oacc-c++/../libgomp.oacc-c-c++-common/acc_prof-kernels-1.c excess errors after r15-579-ga9251ab3c91c8c

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

[Bug fortran/116171] New: [OpenACC] 'acc declare' - 'readonly' modifier not stored in the module file

2024-08-01 Thread burnus at gcc dot gnu.org via Gcc-bugs
D Keywords: missed-optimization, openacc Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: cltang at gcc dot gnu.org, tschwinge at gcc dot gnu.or

[Bug middle-end/115637] gimple_regimplify_operands doesn't handle VALUE_EXPR inside a MEM_REF / OpenMP declare target link

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

[Bug middle-end/115637] gimple_regimplify_operands doesn't handle VALUE_EXPR inside a MEM_REF / OpenMP declare target link

2024-07-30 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115637 --- Comment #2 from Tobias Burnus --- Patch: https://gcc.gnu.org/pipermail/gcc-patches/2024-July/658737.html

[Bug fortran/115559] [OpenMP] 'link' clause of 'declare target' causes link errors

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

[Bug fortran/115577] [OpenMP] COMMON names rejected in MAP clauses

2024-07-29 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115577 --- Comment #1 from Tobias Burnus --- >From the other issue, now fixed: (B) Issues found when writing a testcase: * COMMON blocks: Using map(a,b,c) instead of map(/mycommon/) fails with: error: undefined symbol: mycommon_ TESTCASE: atta

[Bug middle-end/116107] [OpenMP] Array-section mapping with 'declare target' link accesses the wrong data

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

[Bug middle-end/116107] New: [OpenMP] Array-section mapping with 'declare target' link accesses the wrong data

2024-07-26 Thread burnus at gcc dot gnu.org via Gcc-bugs
NCONFIRMED 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: jakub at gcc dot gnu.org Target Milestone: --- See also PR 1155

[Bug middle-end/112779] [OpenMP] Support omp Metadirectives

2024-07-24 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112779 --- Comment #1 from Tobias Burnus --- See also PR 107067 for a Fortran ICE with metadirectives (OG12 branch). See https://gcc.gnu.org/pipermail/gcc-patches/2024-July/657841.html for "[PATCH v3 00/12] Metadirective support + "declare variant"

[Bug fortran/115685] New: [OpenMP][5.1][OpenACC] Permit named constants ("PARAMETER") in firstprivate, shared and copyin clauses

2024-06-27 Thread burnus at gcc dot gnu.org via Gcc-bugs
sion: 15.0 Status: UNCONFIRMED Keywords: openacc, openmp, rejects-valid Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: jakub at gcc d

[Bug middle-end/115574] [OpenMP] Nested C function – 'declare target link(var)' leads to "referenced in offloaded code but hasn't been marked to be included in the offloaded code"

2024-06-25 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115574 --- Comment #2 from Tobias Burnus --- > #pragma declare target link(a,b) as Thomas pointed out (cf. comment 1), an 'omp' is missing. It also lacks, e.g. '#pragma omp target enter data map(a, b)' to be valid. Still, the real issue is '!is_globa

[Bug middle-end/115637] gimple_regimplify_operands doesn't handle VALUE_EXPR inside a MEM_REF / OpenMP declare target link

2024-06-25 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115637 --- Comment #1 from Tobias Burnus --- Created attachment 58512 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58512&action=edit WIP patch - shows the location but fails as DECL_P is not a is_gimple_stmt The attached patch handles MEM [

[Bug fortran/115559] [OpenMP] 'link' clause of 'declare target' causes link errors

2024-06-25 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115559 --- Comment #7 from Tobias Burnus --- (In reply to Tobias Burnus from comment #6) > FOLLOW-UP ISSUES: > * VARIABLE not AVAILABLE on the device: PR115637 - is an analysis of the 'arr2' issue.

[Bug middle-end/115637] New: gimple_regimplify_operands doesn't handle VALUE_EXPR inside a MEM_REF / OpenMP declare target link

2024-06-25 Thread burnus at gcc dot gnu.org via Gcc-bugs
tatus: 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: jakub at gcc dot gnu.org Target Milestone: --- Cr

[Bug fortran/115632] New: resolve.cc: FORALL check function is has wrong-code bugs

2024-06-25 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: --- The following doesn't make sense on multiple ways: (A) - find_forall_index (gfc_expr

[Bug fortran/115559] [OpenMP] 'link' clause of 'declare target' causes link errors

2024-06-21 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115559 --- Comment #6 from Tobias Burnus --- Fortran patch: https://gcc.gnu.org/pipermail/gcc-patches/2024-June/655386.html FOLLOW-UP ISSUES: * OFFSET issues with LINK clause: arr = [(i, i=1,N)] map(arr(10:N) and then in a device func

[Bug fortran/115559] [OpenMP] 'link' clause of 'declare target' causes link errors

2024-06-21 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115559 --- Comment #5 from Tobias Burnus --- Created attachment 58478 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58478&action=edit COMMON block testcase

[Bug fortran/115577] New: [OpenMP] COMMON names rejected in MAP clauses

2024-06-21 Thread burnus at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- Using map(/common/) is rejected in gfortran but is valid: 10 |!$omp target enter data map(/mycommon

[Bug middle-end/115574] New: [OpenMP] Nested C function – 'declare target link(var)' leads to "referenced in offloaded code but hasn't been marked to be included in the offloaded code"

2024-06-21 Thread burnus at gcc dot gnu.org via Gcc-bugs
Reporter: burnus at gcc dot gnu.org CC: jakub at gcc dot gnu.org Target Milestone: --- C variant for the issue PR 115559. [Nested functions are a GNU extension - thus, we may decide not to fix this.] Nonetheless, the following compiles but fails during device LTO: foo.c

[Bug fortran/115559] [OpenMP] 'link' clause of 'declare target' causes link errors

2024-06-20 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115559 --- Comment #4 from Tobias Burnus --- NOTE to self: This code now adds the attribute unconditionally. For COMMON and MODULE it makes sense; but for programm/subroutine/function, it needs to be rechecked whether that variable is actually used. A

[Bug fortran/115559] [OpenMP] 'link' clause of 'declare target' causes link errors

2024-06-20 Thread burnus at gcc dot gnu.org via Gcc-bugs
dot gnu.org |burnus at gcc dot gnu.org Last reconfirmed||2024-06-20 Status|UNCONFIRMED |ASSIGNED --- Comment #3 from Tobias Burnus --- Created attachment 58472 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58472&acti

[Bug fortran/115559] [OpenMP] 'link' clause of 'declare target' causes link errors

2024-06-20 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115559 --- Comment #2 from Tobias Burnus --- For C, it is actually handled in the FE for tree at1 = lookup_attribute ("omp declare target", DECL_ATTRIBUTES (t)); tree at2 = lookup_attribute ("omp declare target link",

[Bug fortran/115559] [OpenMP] 'link' clause of 'declare target' causes link errors

2024-06-20 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115559 --- Comment #1 from Tobias Burnus --- Looks as if offload_vars is empty in case of Fortran; the variables are tagged as 'declare variant link' in the FE but varpool_node::get_create has: if ((flag_openacc || flag_openmp) && lookup_attri

[Bug fortran/115559] New: [OpenMP] 'link' clause of 'declare target' causes link errors

2024-06-20 Thread burnus at gcc dot gnu.org via Gcc-bugs
rds: 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 CC: jakub at gcc dot gnu.org Target Milestone: --- A C version of t

[Bug middle-end/115551] [missed optimization] "c1 << (a + c2)" not optimized into "(c1 << c2) << a"

2024-06-20 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115551 --- Comment #6 from Tobias Burnus --- Crossref: New Bug 11 is for the range analysis to deduce from 'x << a' that 'a' must be nonnegative.

[Bug middle-end/115555] New: [Ranger] deduce 'a >= 0' from 'b << a'

2024-06-20 Thread burnus at gcc dot gnu.org via Gcc-bugs
on Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: aldyh at gcc dot gnu.org Target Milestone: --- Stumbled over this when looking at PR 115551. C has for the

[Bug middle-end/115551] [missed optimization] "c1 << (a + c2)" not optimized into "(c1 << c2) << a"

2024-06-20 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115551 --- Comment #3 from Tobias Burnus --- As we want to have a >= 0, I tried to convey it differently for the example in comment 0: (a) __attribute__((assume(ch >= 0))); (b) 'unsigned ch' (instead of 'int ch') but it didn't help. Thus, it looks a

[Bug middle-end/115551] [missed optimization] "c1 << (a + c2)" not optimized into "(c1 << c2) << a"

2024-06-19 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115551 --- Comment #2 from Tobias Burnus --- > Thus we need some range info to do this optimization. Good point. It seems as if for c1 << (c2 * a + c3), C requires a >= -c3/c2 (read as float division; c2 ≠ 0) And the suggested optimization requires

[Bug fortran/115553] New: Memory leak in openmp.cc's gfc_free_expr_list - gfc_expr not freed

2024-06-19 Thread burnus at gcc dot gnu.org via Gcc-bugs
ormal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: jakub at gcc dot gnu.org Target Milestone: --- It looks as if a 'gfc_free_expr (list->expr)' is missing before

[Bug middle-end/115551] New: [missed optimization] "c1 << (a + c2)" not optimized into "(c1 << c2) << a"

2024-06-19 Thread burnus at gcc dot gnu.org via Gcc-bugs
Status: UNCONFIRMED Keywords: missed-optimization Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: pinskia at gcc dot gnu.org Target Mi

[Bug libgomp/109452] omp_init_lock_with_hint() and omp_init_nest_lock_with_hint() are undefined

2024-06-06 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109452 --- Comment #3 from Tobias Burnus --- The following is missing as well: --- a/gcc/omp-general.cc +++ b/gcc/omp-general.cc @@ -3316,3 +3316,5 @@ omp_runtime_api_procname (const char *name) "init_lock", + "init_lock_with_hint",

[Bug fortran/115301] New: [OpenMP] Fix handling spaces in OpenMP directives – optional in F90, deprecated in F

2024-05-31 Thread burnus at gcc dot gnu.org via Gcc-bugs
Keywords: diagnostic, openmp, rejects-valid Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- OpenMP permits in free-form Fortran: "One or more b

[Bug libgomp/109452] omp_init_lock_with_hint() and omp_init_nest_lock_with_hint() are undefined

2024-05-30 Thread burnus at gcc dot gnu.org via Gcc-bugs
|NEW Last reconfirmed||2024-05-30 CC||burnus at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Tobias Burnus --- Confirmed for * omp_init_lock_with_hint

[Bug middle-end/115279] New: [OpenMP] Fix USM/unified-shared memory handling of 'declare target enter(global_var)'

2024-05-29 Thread burnus at gcc dot gnu.org via Gcc-bugs
NCONFIRMED Keywords: openmp Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- Created attachment 58309 --> https://gcc.gnu.org/bugzilla/atta

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

2024-05-29 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 CC: parras at gcc dot gnu.org, sandra at gcc dot gnu.org Target Milestone: --- Assume: module m

[Bug fortran/115150] [12/13/14 Regression] SHAPE of zero-sized array yields a negative value

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

[Bug analyzer/115203] [15 Regression] Build fail with non LANG=C in analyzer self test: ICE in fail_formatted at selftest.cc:63 / tree-diagnostic-path.cc:2158: test_control_flow_5: FAIL: ASSERT_STREQ

2024-05-23 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115203 --- Comment #2 from Tobias Burnus --- Indeed, the suggestion was not to disable the translations in general. A similar issue shows up when running the testsuite. There is it solved by "setenv LANG C" and "setenv LANG C.ASCII" – while various scr

[Bug analyzer/115203] New: [15 Regression] Build fail with non LANG=C in analyzer self test: ICE in fail_formatted at selftest.cc:63 / tree-diagnostic-path.cc:2158: test_control_flow_5: FAIL: ASSERT_S

2024-05-23 Thread burnus at gcc dot gnu.org via Gcc-bugs
Reporter: burnus at gcc dot gnu.org Target Milestone: --- For some testing, I happened to build with LANG=de_DE.UTF-8 and that was also set when building GCC itself. That works fine until the analyzer self test - as the strings don't match: .../build-gcc-trunk-fast/./gcc/xgcc -B/hom

[Bug fortran/115151] New: procedure(acos) [,pointer] :: p - is wrongly rejected

2024-05-18 Thread burnus at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- IT looks as if the following is wrongly rejected: procedure(acos) [,pointer] :: p While the examples below are with 'po

[Bug fortran/115150] [12/13/14/15 Regression] SHAPE of zero-sized array yields a negative value

2024-05-18 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115150 Tobias Burnus changed: What|Removed |Added Target Milestone|--- |12.5 CC|

[Bug fortran/115150] New: [12/13/14/15 Regression] SHAPE of zero-sized array yields a negative value

2024-05-18 Thread burnus at gcc dot gnu.org via Gcc-bugs
: wrong-code Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- GCC 11.4 has: Shape: 0 0 Shape: 0 3 0

[Bug fortran/44744] Missing -fcheck=bounds diagnostic for function assignment with tmp array

2024-05-18 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44744 --- Comment #5 from Tobias Burnus --- (In reply to Tobias Burnus from comment #4) > Another variant from lsdalton – or rather the BTW: I have not verified that the cause is the same (temporary variable), but it seems to be likely. When replacing

[Bug fortran/44744] Missing -fcheck=bounds diagnostic for function assignment with tmp array

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

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

2024-05-17 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113905 --- Comment #1 from Tobias Burnus --- Ups, testcase was lost. Re-written from scratch: --- int var1() { return 1; } int var2() { return 2; } #pragma omp declare variant (var1) match(construct={target}) #pragma omp declare varian

[Bug fortran/104621] [OpenMP] Issues with 'declare variant'

2024-05-17 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104621 --- Comment #1 from Tobias Burnus --- This got fixed for OpenMP 6 via OpenMP spec pull request #3383, adding: * A declarative directive must be specified in the specification part after all 'USE', 'IMPORT' and 'IMPLICIT' statements. * If a dec

[Bug fortran/114825] [11/12/13/14 Regression] Compiler error using gfortran and OpenMP since r5-1190

2024-04-23 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114825 --- Comment #2 from Tobias Burnus --- The difference between the failing program and a working program (pointer-assignment in 'sub' comment out) is: failing: 'type' in gfc_omp_clause_default_ctor is '

[Bug middle-end/114754] New: [OpenMP] Missing 'uses_allocators' diagnostic

2024-04-17 Thread burnus at gcc dot gnu.org via Gcc-bugs
ic, openmp Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- Cf. https://github.com/SOLLVE/sollve_vv/pull/802 "LLVM error: error: allocator must be s

[Bug fortran/103496] [F2018][TS29113] C_SIZEOF – rejects now valid args with 'must be an interoperable data entity'

2024-04-12 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103496 --- Comment #4 from Tobias Burnus --- (In reply to anlauf from comment #3) > The code in comment#0 compiles at r14-9893-gded646c91d2c0f > and gives the indicated results. which is the commit: Fortran: fix argument checking of intrinsics C_SIZE

[Bug middle-end/113006] OpenMP 5 - lvalue parsing support for map/to/from clause

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

[Bug libfortran/114304] [13/14 Regression] libgfortran I/O – bogus "Semicolon not allowed as separator with DECIMAL='point'"

2024-04-08 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114304 --- Comment #30 from Tobias Burnus --- (In reply to rguent...@suse.de from comment #29) > Might be for \r\n line endings? New lines are handled slightly differently – and \f and \v don't seem to be handled at all. Comparing the result with ifo

[Bug libfortran/114304] [13/14 Regression] libgfortran I/O – bogus "Semicolon not allowed as separator with DECIMAL='point'"

2024-04-08 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114304 --- Comment #28 from Tobias Burnus --- Created attachment 57896 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57896&action=edit Testcase It seems as if 'tabs' cause problems, e.g. for: profile_single_file= .true. where the

[Bug middle-end/114596] [OpenMP] "declare variant" scoring seems incorrect for construct selectors

2024-04-05 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114596 --- Comment #6 from Tobias Burnus --- (In reply to sandra from comment #5) > Tobias, it looks to me like you missed the connection ... No, I didn't - I did link it (cf. top of comment 3) — but I just cannot read :-/ Hence, for (1) *teams* *pa

[Bug middle-end/114596] [OpenMP] "declare variant" scoring seems incorrect for construct selectors

2024-04-05 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114596 --- Comment #4 from Tobias Burnus --- > For selector construct = {teams, parallel, for} > score1 = 29 score2 = 29 > --- > > The constructs[i]'s score look fine. > > But I wonder why score == 29 and not 28. Answer: omp_context_co

[Bug middle-end/114596] [OpenMP] "declare variant" scoring seems incorrect for construct selectors

2024-04-05 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114596 --- Comment #3 from Tobias Burnus --- The scoring is according to TR12: > Each trait selector for which the corresponding trait appears > in the construct trait set in the OpenMP context is given the > value 2^(p−1) where p is the position of t

[Bug middle-end/114596] [OpenMP] "declare variant" scoring seems incorrect for construct selectors

2024-04-05 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114596 --- Comment #2 from Tobias Burnus --- Crossref to the OpenMP spec discussions [not publicly available] related to the scoring: * Jakub asked about this testcase in an omp-lang in the email 2019/016447.html (w/o getting a reply. * He then opened

[Bug other/111966] GCN '--with-arch=[...]' not considered for 'mkoffload' default 'elf_arch'

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

[Bug libgomp/114445] New: [OpenMP] indirect - potential race when creating reverse-offload hash

2024-03-23 Thread burnus at gcc dot gnu.org via Gcc-bugs
, wrong-code 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: --- It looks as if when starting two kernels

[Bug target/114419] [GCC < 14] amdgcn offload compiler fails to build with amdgcn tools based on LLVM 18

2024-03-22 Thread burnus at gcc dot gnu.org via Gcc-bugs
, ||burnus at gcc dot gnu.org Summary|amdgcn offload compiler |[GCC < 14] amdgcn offload |fails to build with amdgcn |compiler fails to build |tools based on LLVM 18 |with amdgcn tools based

[Bug libgomp/114335] OpenACC: use of accelerator constant/read-only memory for "readonly" modifier mappings

2024-03-14 Thread burnus at gcc dot gnu.org via Gcc-bugs
, ||openacc CC||burnus at gcc dot gnu.org --- Comment #1 from Tobias Burnus --- It likewise applies for OpenMP for code such as: omp target firstprivate(array) allocate(omp_const_mem_alloc : array)

[Bug libfortran/114304] [13/14 Regression] libgfortran I/O – bogus "Semicolon not allowed as separator with DECIMAL='point'"

2024-03-14 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114304 --- Comment #19 from Tobias Burnus --- Regarding the LAPACK issue: Actually, I am inclined to * regard it as LAPACK bug * that was also fixed upstream, see comment 6, to make g95 happy. as ';' is not a value separator - while ' ;' is fine, wher

[Bug fortran/105473] semicolon allowed when list-directed read integer with decimal='point'

2024-03-14 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105473 Tobias Burnus changed: What|Removed |Added Attachment #57693|0 |1 is obsolete|

[Bug fortran/105473] semicolon allowed when list-directed read integer with decimal='point'

2024-03-14 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105473 --- Comment #34 from Tobias Burnus --- Created attachment 57693 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57693&action=edit Extended testcase; comment shows results for gfortran(trunk),ifort,ifx,flang See PR114304 for some related is

[Bug libfortran/114304] [13/14 Regression] libgfortran I/O – bogus "Semicolon not allowed as separator with DECIMAL='point'"

2024-03-12 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114304 --- Comment #14 from Tobias Burnus --- Created attachment 57680 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57680&action=edit Testcase with decimal=COMMA, passes with ifort/ifx/flang - fails with gfortran > commit r14-9432-g0c179654c31

[Bug libfortran/114304] [14 Regression] libgfortran I/O – bogus "Semicolon not allowed as separator with DECIMAL='point'"

2024-03-11 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114304 --- Comment #6 from Tobias Burnus --- [For completeness: The LAPACK testsuite change Richard mentioned in comment 2 is https://github.com/Reference-LAPACK/lapack/commit/64e8a7500d817869e5fcde35afd39af8bc7a8086 - That's for g95 and was applied 20

[Bug libfortran/114304] [14 Regression] libgfortran I/O – bogus "Semicolon not allowed as separator with DECIMAL='point'"

2024-03-11 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114304 Tobias Burnus changed: What|Removed |Added Keywords||wrong-code Summary|[14 Regre

[Bug fortran/105473] semicolon allowed when list-directed read integer with decimal='point'

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

[Bug libfortran/114304] [14 Regression] Rejects lapack test

2024-03-11 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114304 --- Comment #4 from Tobias Burnus --- Created attachment 57668 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57668&action=edit Testcase Testresults of the attached testcase: See also https://godbolt.org/z/q4rG61EvW The attached testc

[Bug libfortran/114304] [14 Regression] Rejects lapack test

2024-03-11 Thread burnus at gcc dot gnu.org via Gcc-bugs
|--- CC||burnus at gcc dot gnu.org, ||jvdelisle at gcc dot gnu.org --- Comment #3 from Tobias Burnus --- I think the semicolon is not permitted as item separator but if I have as input

[Bug fortran/114283] New: [OpenMP] Dummy procedures/proc pointers and 'defaultmap', 'default', 'firstprivate' etc.

2024-03-08 Thread burnus at gcc dot gnu.org via Gcc-bugs
Status: UNCONFIRMED Keywords: openmp Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- See also OpenMP specification Issue #3823 [and sligh

[Bug middle-end/114282] New: [OpenMP] Implicit mapping of function/procedure pointers should use 'firstprivate'

2024-03-08 Thread burnus at gcc dot gnu.org via Gcc-bugs
NCONFIRMED Keywords: missed-optimization, openmp Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- For C/C++ function pointers and Fortran dummy

[Bug c++/110347] [OpenMP] private/firstprivate of a C++ member variable mishandled

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

[Bug middle-end/113436] [OpenMP] 'allocate' clause has no effect for (first)private on 'target' directives

2024-03-01 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113436 --- Comment #2 from Tobias Burnus --- As mentioned in comment 0, PR110347's testcase (r14-9257-g4f82d5a95a244d) contains '#if 0' code which has to be enabled once this bug is fixed. Please remember to take care of: * libgomp/testsuite/libgomp.c

[Bug libgomp/113867] [14 Regression][OpenMP] Wrong code with mapping pointers in structs

2024-02-21 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113867 --- Comment #5 from Tobias Burnus --- For: int *q; #pragma omp target device(y5) map(q, q[:5]) GCC currently generates: map(tofrom:q [len: 8]) map(tofrom:*q.4_1 [len: 20]) map(attach:q [bias: 0]) Expected: 'alloc:' instead of 'attach:

[Bug fortran/114002] New: [OpenACC][OpenACC 3.3] Add 'acc_attach'/'acc_detach' routine

2024-02-19 Thread burnus at gcc dot gnu.org via Gcc-bugs
Keywords: openacc Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- Created attachment 57466 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57466&

[Bug fortran/113997] Bogus 'Warning: Interface mismatch in global procedure' with C binding

2024-02-19 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113997 --- Comment #3 from Tobias Burnus --- > Anyway, renaming the binding label, like >subroutine acc_attach_c(x) bind(C, name="acc_attach_renamed") > makes the code compile. Well, the code *does* compile as it is only a warning. * * * I think

[Bug fortran/113997] New: Bogus 'Warning: Interface mismatch in global procedure' with C binding

2024-02-19 Thread burnus at gcc dot gnu.org via Gcc-bugs
Keywords: diagnostic Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- The following warning is bogus, unless -fno-leading-underscore is us

[Bug target/113331] AMDGCN: Compilation failure due to duplicate .LEHB/.LEHE symbols

2024-02-16 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113331 Tobias Burnus changed: What|Removed |Added CC||burnus at gcc dot gnu.org --- Comment

[Bug middle-end/113904] [OpenMP][5.0][5.1] Dynamic context selector 'user={condition(expr)}' not handled

2024-02-13 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113904 --- Comment #3 from Tobias Burnus --- See comment 1 for remaining to-do items. I also note that the Fortran resolution comes too early - during parsing - as the following shows: module m implicit none contains subroutine test !$omp declare v

[Bug middle-end/113904] [OpenMP][5.0][5.1] Dynamic context selector 'user={condition(expr)}' not handled

2024-02-13 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113904 --- Comment #1 from Tobias Burnus --- Patch for rejecting non-const arguments in Fortran (wrong-code bit) to bring it in line with C/C++: https://gcc.gnu.org/pipermail/gcc-patches/2024-February/645488.html * * * TODO as follow up: * Permit n

[Bug middle-end/113906] New: [OpenMP][5.2] 'construct' context selectors lack many constructs

2024-02-13 Thread burnus at gcc dot gnu.org via Gcc-bugs
ds: openmp, rejects-valid 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: --- GCC only accepts the those const

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

2024-02-13 Thread burnus at gcc dot gnu.org via Gcc-bugs
-valid Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: jakub at gcc dot gnu.org, parras at gcc dot gnu.org, sandra at gcc dot gnu.org Target

[Bug middle-end/113904] New: [OpenMP][5.0][5.1] Dynamic context selector 'user={condition(expr)}' not handled

2024-02-13 Thread burnus at gcc dot gnu.org via Gcc-bugs
NCONFIRMED Keywords: accepts-invalid, openmp, rejects-valid, wrong-code Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: parras at gcc dot gnu.org, sandra

[Bug libgomp/113867] [14 Regression][OpenMP] Wrong code with mapping pointers in structs

2024-02-13 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113867 --- Comment #4 from Tobias Burnus --- Also not handled: struct s { int *p; } s1; ... #pragma omp target map(s1.p[:N]) p[0] = p[N-1] = 99; Here, the pointer attachment is missing. See also PR113724 's attachment 57407 for a testcase f

[Bug middle-end/113724] [14 Regression][OpenMP] ICE (segfault) when mapping a struct in omp_gather_mapping_groups_1

2024-02-13 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113724 --- Comment #6 from Tobias Burnus --- Created attachment 57407 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57407&action=edit C testcase – passes with patch (except for '#if 0'ed PR113867 issues) DejaGNU-ified testcase for this PR and (

[Bug libgomp/113867] [14 Regression][OpenMP] Wrong code with mapping pointers in structs

2024-02-12 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113867 --- Comment #3 from Tobias Burnus --- Created attachment 57398 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57398&action=edit Patch - handling the libgomp issue Possible patch - lightly tested. This fixes the issue in libgomp. While al

[Bug libgomp/113867] [14 Regression][OpenMP] Wrong code with mapping pointers in structs

2024-02-12 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113867 Tobias Burnus changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |burnus at gcc dot gnu.org

[Bug middle-end/113724] [14 Regression][OpenMP] ICE (segfault) when mapping a struct in omp_gather_mapping_groups_1

2024-02-10 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113724 --- Comment #5 from Tobias Burnus --- The runtime issue is now PR113867.

[Bug middle-end/113867] [14 Regression][OpenMP] Wrong code with mapping pointers in structs

2024-02-10 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113867 --- Comment #1 from Tobias Burnus --- Created attachment 57382 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57382&action=edit Fortran testcase, kind of, as pointer + pointee mapping cannot be split (working) For completeness, a Fortran

[Bug middle-end/113867] New: [14 Regression][OpenMP] Wrong code with mapping pointers in structs

2024-02-10 Thread burnus at gcc dot gnu.org via Gcc-bugs
, wrong-code Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: jakub at gcc dot gnu.org Target Milestone: --- Created attachment 57381 --> ht

[Bug middle-end/113724] [14 Regression][OpenMP] ICE (segfault) when mapping a struct in omp_gather_mapping_groups_1

2024-02-10 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113724 --- Comment #4 from Tobias Burnus --- Created attachment 57377 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57377&action=edit Fixes the ICE – might paper over a real issue; doesn't fix the run-time issue → TODO + 'data'-issue in PR comme

[Bug fortran/113840] New: [OpenACC] !$acc loop seq – bogus rejection of Fortran's EXIT/CYCLE + C/C++ break/continue

2024-02-08 Thread burnus at gcc dot gnu.org via Gcc-bugs
IRMED Keywords: openacc, rejects-valid Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: tschwinge at gcc dot gnu.org Target Milestone: --- OpenACC see

[Bug middle-end/113724] [14 Regression][OpenMP] ICE (segfault) when mapping a struct in omp_gather_mapping_groups_1

2024-02-07 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113724 --- Comment #3 from Tobias Burnus --- Inside omp_build_struct_sibling_lists, the following assignment: 11654 grp->grp_start = new_next; has on the LHS the [3] array with value: (gdb) p *grp $147 = {grp_start = 0x771f9688, grp_en

  1   2   3   4   5   6   7   8   9   10   >