[Bug c++/118530] [OpenMP] declare_variant - non-arg variant with non-template return value type not selected

2025-01-17 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118530 Tobias Burnus changed: What|Removed |Added Depends on||112810 --- Comment #3 from Tobias Burnu

[Bug fortran/118321] [OpenMP] declare_variant's 'adjust_args' yields wrong code if the result is passed by argument

2025-01-17 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118321 --- Comment #5 from Tobias Burnus --- > Fixed the main Fortran issue. And now also the 'this' pointer issue for C++. * * * Still to do: * Possibly add more test cases, e.g., static member function in C++ or ... * Check whether we want/have

[Bug c++/118530] [OpenMP] declare_variant - non-arg variant with non-template return value type not selected

2025-01-17 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118530 --- Comment #2 from Tobias Burnus --- Related variant, again by waffl3x, which fails with both GCC and Clang, but works when changing the base-functions 'auto' to 'int'. For GCC, the error is [SIC!]: : In substitution of 'template auto base(T)

[Bug middle-end/118496] [OpenMP] "omp unroll" parsed — but not active

2025-01-17 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118496 --- Comment #4 from Tobias Burnus --- Too many open tabs → the last comment, comment 3, was supposed to go to PR 118530. Sorry for the spam :-/

[Bug c++/118530] [OpenMP] declare_variant - non-arg variant with non-template return value type not selected

2025-01-17 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118530 --- Comment #1 from Tobias Burnus --- Clang-19 -fopenmp prints for this also an error: foo.C:4:29: error: variant in '#pragma omp declare variant' with type '' is incompatible with type 'void ()' 4 | #pragma omp declare variant(variant) mat

[Bug middle-end/118496] [OpenMP] "omp unroll" parsed — but not active

2025-01-17 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118496 --- Comment #3 from Tobias Burnus --- Clang-19 -fopenmp prints for this also an error: foo.C:4:29: error: variant in '#pragma omp declare variant' with type '' is incompatible with type 'void ()' 4 | #pragma omp declare variant(variant) mat

[Bug c++/118530] New: [OpenMP] declare_variant - non-arg variant with non-template return value type not selected

2025-01-17 Thread burnus at gcc dot gnu.org via Gcc-bugs
Keywords: openmp, rejects-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, waffl3x at protonmail dot com Target

[Bug c++/118488] [OpenMP] Return types and templates with 'declare variant' mishandled

2025-01-17 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118488 --- Comment #1 from Tobias Burnus --- > Cf. discussion at OpenMP spec Issue […] Got that wrong; the correct OpenMP spec issue number is: 4446.

[Bug fortran/118321] [OpenMP] declare_variant's 'adjust_args' yields wrong code if the result is passed by argument

2025-01-16 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118321 --- Comment #3 from Tobias Burnus --- Fixed the main Fortran issue. Still to do: * Fix C++ issue ('this' pointer), comment 1 * For Fortran, we may want to check for ENTRY master functions ...

[Bug fortran/118441] [15 Regression] [openmp] ICE with assignment of PACK of string array

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

[Bug fortran/118441] [15 Regression] [openmp] ICE with assignment of PACK of string array

2025-01-15 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118441 --- Comment #5 from Tobias Burnus --- >if (sym->formal_ns > + && sym->attr.proc != PROC_INTRINSIC // temporary hack I am afraid that this might break /usr/include/finclude/math-vector-fortran.h which contains lines like: !GCC$

[Bug middle-end/118496] [OpenMP] "omp unroll" parsed — but not active

2025-01-15 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118496 --- Comment #1 from Tobias Burnus --- Variant — for GCC, you need to switch to 'gcc (trunk)': https://godbolt.org/z/Yce7rqdrW

[Bug middle-end/118496] New: [OpenMP] "omp unroll" parsed — but not active

2025-01-15 Thread burnus at gcc dot gnu.org via Gcc-bugs
ty: 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: --- Trying the following with GCC 15 still keeps the loop: void f() { #pragma

[Bug c++/118486] [OpenMP] declare_variant - bogus diagnostic 'not found' when only return-type is wrong

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

[Bug c++/118488] New: [OpenMP] Return types and templates with 'declare variant' mishandled

2025-01-15 Thread burnus at gcc dot gnu.org via Gcc-bugs
ds: openmp, rejects-valid Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- Cf. discussion at OpenMP spec Issue 4371. The following code compiles with clan

[Bug fortran/118478] [OpenMP][5.0] Use defined assignment for FIRSTPRIVATE etc., if available

2025-01-15 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118478 --- Comment #3 from Tobias Burnus --- > I don't believe we should do two copy constructors for target, > one on the host and one on the device. My understanding is that the (first)privatization happens twice. I am not saying that the implementa

[Bug c++/118486] [OpenMP] declare_variant - bogus diagnostic 'not found' when only return-type is wrong

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

[Bug c++/118486] [OpenMP] declare_variant - bogus diagnostic 'not found' when only return-type is wrong

2025-01-14 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118486 --- Comment #1 from Tobias Burnus --- For the first case, omp_declare_variant_finalize_one's 8550variant = finish_call_expr (variant, &args, /*disallow_virtual=*/false, has (gdb) p debug(variant) TARGET_EXPR But after 8555 var

[Bug c++/118486] New: [OpenMP] declare_variant - bogus diagnostic 'not found' when only return-type is wrong

2025-01-14 Thread burnus at gcc dot gnu.org via Gcc-bugs
NCONFIRMED Keywords: diagnostic, openmp 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 Target Milestone: --- GCC [12 to mainline

[Bug ipa/118484] New: ICE during IPA pass: cp in determine_versionability ipa-cp.cc:467

2025-01-14 Thread burnus at gcc dot gnu.org via Gcc-bugs
-valid-code Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: tschwinge at gcc dot gnu.org Target Milestone: --- Target: nvptx Created attachment

[Bug fortran/118478] [OpenMP][5.0] Use defined assignment for FIRSTPRIVATE etc., if available

2025-01-14 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118478 --- Comment #1 from Tobias Burnus --- Same Issue with C++ and the copy constructor. It seems as, technically, there are two new copies + assignments with !$omp target firstprivate(x) [Cf. OpenMP Spec Pull Req. 4435] - Namely: one when creat

[Bug fortran/118479] [OpenMP] Warn if a non-definable/INTENT(IN) appears in a 'from' clause or with a map-exiting map type (from, tofrom, or storage)

2025-01-14 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118479 --- Comment #1 from Tobias Burnus --- We also need to handle implicit mapping with INTENT(IN) – in which case it should decay a 'from' should decay to 'release' on map exiting.

[Bug fortran/118479] New: [OpenMP] Warn if a non-definable/INTENT(IN) appears in a 'from' clause or with a map-exiting map type (from, tofrom, or storage)

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

[Bug fortran/118478] New: [OpenMP][5.0] Use defined assignment for FIRSTPRIVATE etc., if available

2025-01-14 Thread burnus at gcc dot gnu.org via Gcc-bugs
: 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: --- While OpenMP 4.5 has: "2.15.3.4 firstprivate Clause" ... "If th

[Bug fortran/118471] Missed folding of descriptor span field for contiguous Fortran pointers

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

[Bug target/118418] [15 Regression][gcn] Compiler selftest ICE in assert_rtx_eq_at, at selftest-rtl.cc:57 / FAIL: ASSERT_RTX_EQ (val, folded) since r15-6777-g06c4cf398947b5

2025-01-13 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118418 --- Comment #2 from Tobias Burnus --- For GCN, when the assert occurs as follows. As code = LT it looks indeed closely related to STORE_FLAG_VALUE == 1 vs -1. (gdb) p debug_rtx(reg0_val) (const_int -1 [0x]) (gdb) p debug_rt

[Bug target/118418] New: [15 Regression][gcn] Compiler selftest ICE in assert_rtx_eq_at, at selftest-rtl.cc:57 / FAIL: ASSERT_RTX_EQ (val, folded) since r15-6777-g06c4cf398947b5

2025-01-11 Thread burnus at gcc dot gnu.org via Gcc-bugs
gcc dot gnu.org CC: ams at gcc dot gnu.org, rsandifo at gcc dot gnu.org Target Milestone: --- Target: gcn Since the commit r15-6777-g06c4cf398947b5 rtl: Remove invalid compare simplification [PR117186] the GCC build fails with the following ICE during the self test at

[Bug c++/118322] New: [OpenMP] OpenMP in constexpr not properly diagnosed

2025-01-07 Thread burnus at gcc dot gnu.org via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- OpenMP (up to 6.0) has a rather broad restriction: [C++] Directives may not appear in constexpr functions or in

[Bug fortran/118321] [OpenMP] declare_variant's 'adjust_args' yields wrong code if the result is passed by argument

2025-01-07 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118321 --- Comment #1 from Tobias Burnus --- The same problem exists for C++: D.3055 = __builtin_omp_get_mapped_ptr (a, D.3054); t::f (&s, D.3055, b, c); //- struct t { void f(int *x, int *y, int *z); #pragma

[Bug fortran/118321] New: [OpenMP] declare_variant's 'adjust_args' yields wrong code if the result is passed by argument

2025-01-07 Thread burnus at gcc dot gnu.org via Gcc-bugs
us: 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 CC: parras at gcc dot gnu.org Target Milestone: --

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

2025-01-07 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115271 --- Comment #2 from Tobias Burnus --- The same issue occurs in the same file when an INTERFACE is involved: module m interface integer function f () end integer function g () !$omp declare variant(f) match(construct={dispatch}) end

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

2025-01-03 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115271 --- Comment #1 from Tobias Burnus --- Testcase (already in the tree): libgomp/testsuite/libgomp.fortran/declare-variant-2.f90 libgomp/testsuite/libgomp.fortran/declare-variant-2-aux.f90 ... +! Test XFAILed due to https://gcc.gnu.org/PR115271

[Bug fortran/106692] [12/13/14/15 Regression] Cray pointer comparison wrongly optimized away

2025-01-01 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106692 --- Comment #13 from Tobias Burnus --- > What do others think? I am a bit unsure. Cray pointers are weird and it is not quite clear how they are used in real world code. Your modification causes a missed optimization for code like: var = N

[Bug middle-end/118157] New: [OpenMP] Variant function - build failed due to auto-tagged as 'declare target' but uncalled + not callable

2024-12-20 Thread burnus at gcc dot gnu.org via Gcc-bugs
sion: 15.0 Status: UNCONFIRMED Keywords: 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 d

[Bug driver/81358] libatomic not automatically linked with C11 code

2024-12-18 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81358 --- Comment #19 from Tobias Burnus --- (In reply to Rainer Orth from comment #18) > This patch broke Solaris bootstrap when linking libgdruntime.la (both sparc > and x86, most likely almost everywhere) in stage 1 already: See also patch submissi

[Bug middle-end/118108] New: generic.texi: documentation missing for some OMP_… DEFTREECODE

2024-12-18 Thread burnus at gcc dot gnu.org via Gcc-bugs
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: --- The doc/generic.texi lacks entries for the following

[Bug fortran/118080] OPTIONAL, VALUE mishandled: type(c_ptr) – hidden argument missing, ICE with derived type

2024-12-17 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118080 --- Comment #2 from Tobias Burnus --- > CLASS and DT were excepted because IMO there is no clear existing definition how to handle these. Then there should be a compile-time error ("SORRY"). Fortran (the spec) is quite open in terms of how it

[Bug fortran/118080] New: OPTIONAL, VALUE mishandled: type(c_ptr) – argument missing, ICE with derived type

2024-12-17 Thread burnus at gcc dot gnu.org via Gcc-bugs
Keywords: ice-on-valid-code, wrong-code Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- ONE.f90 is an interesting issue, for: call f(a) call f

[Bug c/26154] [12/13/14/15 Regression] OpenMP extensions to the C language is not documented or documented in the wrong spot

2024-12-15 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26154 --- Comment #38 from Tobias Burnus --- Regarding gfortran, besides generic manual updates there, I wonder whether https://gcc.gnu.org/onlinedocs/gfortran/OpenMP-Modules-OMP_005fLIB-and-OMP_005fLIB_005fKINDS.html should be moved to libgomp.texi by

[Bug fortran/82250] Fortran OpenACC acc_on_device early folding

2024-12-09 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82250 --- Comment #13 from Tobias Burnus --- I think the example was something like: #include void bogus_fn(); void f() { if (!acc_on_device (acc_device_host)) bogus_fn(); } And I do recall that the re

[Bug fortran/82250] Fortran OpenACC acc_on_device early folding

2024-12-06 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82250 --- Comment #11 from Tobias Burnus --- > Not the whole commit, but only one small hunk of it was reverted Which is enough to prevent the folding when the compiler has not been configured for offloading. If I recall correctly: before your commit,

[Bug fortran/82250] Fortran OpenACC acc_on_device early folding

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

[Bug c++/117803] [OpenMP] Rejects valid with TEMPLATES in DECLARE VARIANT resolution

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

[Bug c++/117803] New: [OpenMP] Rejects valid with TEMPLATES in DECLARE VARIANT resolution

2024-11-27 Thread burnus at gcc dot gnu.org via Gcc-bugs
, rejects-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 Target Milestone: --- https://godbolt.org/z/zjKshK35K - the example

[Bug target/117657] [15 Regression][gcn] ICE during in-tree newlib build: error: unrecognizable insn

2024-11-18 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117657 Tobias Burnus changed: What|Removed |Added Target Milestone|--- |15.0 --- Comment #5 from Tobias Burnus

[Bug target/117657] [15 Regression][gcn] ICE during in-tree newlib build: error: unrecognizable insn

2024-11-18 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117657 --- Comment #4 from Tobias Burnus --- (In reply to Robin Dapp from comment #3) > Is there a way to test it short of a cross compile? I guess not - but compiling shouldn't be difficult as no libraries are needed. Otherwise, I use for a full cr

[Bug target/117657] [15 Regression][gcn] ICE during in-tree newlib build: error: unrecognizable insn

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

[Bug target/117657] New: [15 Regression][gcn] ICE during in-tree newlib build: error: unrecognizable insn

2024-11-18 Thread burnus at gcc dot gnu.org via Gcc-bugs
Keywords: build, ice-on-valid-code 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: --- Target: gcn

[Bug fortran/107067] [OpenMP] ICE with metadirective block statements

2024-11-14 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107067 Tobias Burnus changed: What|Removed |Added Keywords||diagnostic, |

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

2024-11-13 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113905 --- Comment #5 from Tobias Burnus --- I have asked at OpenMP.org's lang mailing list. Alex replied: > This should be invalid (or so was the intent) as the > construct set doesn’t match. Thus, it seems as if GCC handles it correctly :-) (Or at

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

2024-11-10 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113905 --- Comment #3 from Tobias Burnus --- I bet that the spec writers ment the following (i.e. with the text written in brackets): “If a procedure is determined to be a function variant through more than one declare variant directive [for a given b

[Bug middle-end/115162] ICE in OpenMP target data map directive

2024-11-06 Thread burnus at gcc dot gnu.org via Gcc-bugs
||burnus at gcc dot gnu.org Resolution|--- |DUPLICATE --- Comment #1 from Tobias Burnus --- Should be the same as PR113724 *** This bug has been marked as a duplicate of bug 113724 ***

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

2024-11-06 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113724 Tobias Burnus changed: What|Removed |Added CC||Bert.Wesarg at googlemail dot com ---

[Bug bootstrap/117361] [15 Regression] GCC build fails with "gcc/opts-diagnostic.cc:599: test_output_arg_parsing: FAIL: ASSERT_STREQ (pt.get_diagnostic_text ()" when using some locales

2024-10-31 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117361 --- Comment #4 from Tobias Burnus --- BTW: In PR115203 it was solved differently compared to the proposal, i.e. by setting disable_event_localization See https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=2dbb1c124c1e585dc413132d7a8d4be62c6b7baa

[Bug bootstrap/117361] New: [15 Regression] GCC build fails with "gcc/opts-diagnostic.cc:599: test_output_arg_parsing: FAIL: ASSERT_STREQ (pt.get_diagnostic_text ()"

2024-10-30 Thread burnus at gcc dot gnu.org via Gcc-bugs
Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: build Severity: normal Priority: P3 Component: bootstrap Assignee: dmalcolm at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- Tha

[Bug target/117247] [OpenMP][nvptx] cuCtxSynchronize with 'omp target loop' + PRIVATE clause and -O1 (OpenMP_VV's teams_loop/test_target_teams_loop_private.c)

2024-10-21 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117247 --- Comment #1 from Tobias Burnus --- Follow up note: the following all fails (on nvptx with -Og, -Os, -O1 or higher); the first two are nearly identical on dump level: - omp loop - omp simd - omp for simd while the following works: - o

[Bug target/117247] New: [OpenMP][nvptx] cuCtxSynchronize with 'omp target loop' + PRIVATE clause and -O1 (OpenMP_VV's teams_loop/test_target_teams_loop_private.c)

2024-10-21 Thread burnus at gcc dot gnu.org via Gcc-bugs
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 analyzer/117109] New: [15 Regression] "make gcc.pot" fails with "emit_diagnostic used incompatibly" since r15-4081-g385a232229a5b4 (diagnostics: bulletproof opening of SARIF output)

2024-10-12 Thread burnus at gcc dot gnu.org via Gcc-bugs
nostics: bulletproof opening of SARIF output) Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: translation Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporte

[Bug middle-end/28614] gcc.c-torture/compile/20001226-1.c times out

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

[Bug c/116935] New: [OpenMP] Suggest '' header inclusion for OpenMP's omp_* routines and other definitions

2024-10-02 Thread burnus at gcc dot gnu.org via Gcc-bugs
us: UNCONFIRMED Keywords: diagnostic, openmp Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- It would be useful to add #include hints when using omp_… w

[Bug middle-end/116786] [OpenMP] ICE in install_var_field, at omp-low.cc:798 for C++ lambda

2024-09-19 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116786 --- Comment #1 from Tobias Burnus --- Variant: move 'x' into the function via 'static int x' inside the main function.

[Bug middle-end/116786] New: [OpenMP] ICE in install_var_field, at omp-low.cc:798 for C++ lambda

2024-09-19 Thread burnus at gcc dot gnu.org via Gcc-bugs
-valid-code, openmp 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: --- The following code fails to compile

[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

  1   2   3   4   5   6   7   8   9   10   >