[Bug libgomp/88288] [OpenACC, libgomp] Adjust offsets for present data clauses

2018-11-30 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88288 --- Comment #2 from cesar at gcc dot gnu.org --- Why not update goacc_parallel_keyed to use gomp_map_val instead computing devaddrs manually? That would help reduce the number of duplicate mystery formulas in libgomp.

[Bug fortran/77765] ICE in gfc_match_oacc_routine, at fortran/openmp.c:1781

2018-11-19 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77765 cesar at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED Resolution

[Bug fortran/72715] ICE in gfc_trans_omp_do, at fortran/trans-openmp.c:3164

2018-11-19 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72715 --- Comment #4 from cesar at gcc dot gnu.org --- This is still broken in trunk. Mentor probably has a fix for it in og8, but Thomas or someone else in their OpenACC team will need to port it over to trunk.

[Bug middle-end/70828] broken array-type subarrays inside acc data in openacc

2018-11-19 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70828 --- Comment #4 from cesar at gcc dot gnu.org --- I see that fix has been submitted to gomp-4_0-branch. Thomas, does Mentor have any pending patches to resolve this in trunk, if it is still relevant?

[Bug testsuite/87064] [9 regression] libgomp.oacc-fortran/reduction-3.f90 fails starting with r263751

2018-08-24 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87064 cesar at gcc dot gnu.org changed: What|Removed |Added CC||cesar at gcc dot gnu.org

[Bug middle-end/86757] New: [og8,nvptx] gangprivate related regressions

2018-07-31 Thread cesar at gcc dot gnu.org
-end Assignee: unassigned at gcc dot gnu.org Reporter: cesar at gcc dot gnu.org Target Milestone: --- The goacc_parlevel patches have been backported to openacc-gcc-8-branch in git revision 6781e2dd99. For the most part, the patches applied cleanly, however, I had to xfail

[Bug testsuite/86660] libgomp.c++/for-15.C ICEs with nvptx offloading

2018-07-25 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86660 --- Comment #9 from cesar at gcc dot gnu.org --- (In reply to Tom de Vries from comment #8) > Hmm, for me that minimizes to: > ... > extern "C" void abort (); > > #pragma omp declare target > int results[2000]; >

[Bug c++/86660] libgomp.c++/for-15.C ICEs with nvptx offloading

2018-07-24 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86660 --- Comment #1 from cesar at gcc dot gnu.org --- Created attachment 44431 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44431=edit LTO graceful abort patch With the LTO graceful abort patch, I now see this error: lto1: error: Miss

[Bug c++/86660] New: libgomp.c++/for-15.C ICEs with nvptx offloading

2018-07-24 Thread cesar at gcc dot gnu.org
++ Assignee: unassigned at gcc dot gnu.org Reporter: cesar at gcc dot gnu.org Target Milestone: --- I see the following ICE with libgomp.c++/for-15.C with nvptx-offloading: lto1: internal compiler error: in input_varpool_node, at lto-cgraph.c:1393 0xc1d8d5 input_varpool_node

[Bug tree-optimization/86263] [9 Regression] [nvptx] casesi, tablejump

2018-06-22 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86263 cesar at gcc dot gnu.org changed: What|Removed |Added CC||cesar at gcc dot gnu.org

[Bug fortran/85703] [openacc] ICE in resolve_fntype, at fortran/resolve.c:16313

2018-06-15 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85703 --- Comment #6 from cesar at gcc dot gnu.org --- Author: cesar Date: Fri Jun 15 14:03:00 2018 New Revision: 261631 URL: https://gcc.gnu.org/viewcvs?rev=261631=gcc=rev Log: PR fortran/85703 Backport from mainline 2018-06-13

[Bug fortran/85702] [openacc] ICE in gfc_format_decoder, at fortran/error.c:943

2018-06-15 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85702 --- Comment #4 from cesar at gcc dot gnu.org --- Author: cesar Date: Fri Jun 15 14:01:00 2018 New Revision: 261630 URL: https://gcc.gnu.org/viewcvs?rev=261630=gcc=rev Log: PR fortran/85702 Backport from mainline 2018-06-13

[Bug fortran/85701] [openacc] ICE in mark_scope_block_unused, at tree-ssa-live.c:364

2018-06-15 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85701 --- Comment #5 from cesar at gcc dot gnu.org --- Author: cesar Date: Fri Jun 15 13:59:14 2018 New Revision: 261629 URL: https://gcc.gnu.org/viewcvs?rev=261629=gcc=rev Log: PR fortran/85701 Backport from mainline 2018-06-05

[Bug fortran/85703] [openacc] ICE in resolve_fntype, at fortran/resolve.c:16313

2018-06-13 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85703 cesar at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED Resolution

[Bug fortran/85702] [openacc] ICE in gfc_format_decoder, at fortran/error.c:943

2018-06-13 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85702 cesar at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED Resolution

[Bug fortran/85703] [openacc] ICE in resolve_fntype, at fortran/resolve.c:16313

2018-06-13 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85703 --- Comment #4 from cesar at gcc dot gnu.org --- Author: cesar Date: Wed Jun 13 14:31:17 2018 New Revision: 261551 URL: https://gcc.gnu.org/viewcvs?rev=261551=gcc=rev Log: PR fortran/85703 gcc/fortran/ * parse.c

[Bug fortran/85702] [openacc] ICE in gfc_format_decoder, at fortran/error.c:943

2018-06-13 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85702 --- Comment #2 from cesar at gcc dot gnu.org --- Author: cesar Date: Wed Jun 13 14:29:04 2018 New Revision: 261550 URL: https://gcc.gnu.org/viewcvs?rev=261550=gcc=rev Log: PR fortran/85702 gcc/fortran/ * openmp.c

[Bug fortran/85701] [openacc] ICE in mark_scope_block_unused, at tree-ssa-live.c:364

2018-06-05 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85701 cesar at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED CC

[Bug fortran/85701] [openacc] ICE in mark_scope_block_unused, at tree-ssa-live.c:364

2018-06-05 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85701 --- Comment #3 from cesar at gcc dot gnu.org --- Author: cesar Date: Tue Jun 5 13:58:50 2018 New Revision: 261202 URL: https://gcc.gnu.org/viewcvs?rev=261202=gcc=rev Log: PR fortran/85701 gcc/fortran/ * openmp.c

[Bug middle-end/85879] [6/7/8/9 Regression] ICE in expand_debug_locations, at cfgexpand.c:5405

2018-05-31 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85879 --- Comment #4 from cesar at gcc dot gnu.org --- Author: cesar Date: Thu May 31 14:10:10 2018 New Revision: 261025 URL: https://gcc.gnu.org/viewcvs?rev=261025=gcc=rev Log: Fix PR middle-end/85879 gcc/ * gimplify.c

[Bug middle-end/85879] [6/7/8/9 Regression] ICE in expand_debug_locations, at cfgexpand.c:5405

2018-05-30 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85879 cesar at gcc dot gnu.org changed: What|Removed |Added Keywords||openacc --- Comment #3 from

[Bug c++/85782] acc loops with continue statements ICE in c++

2018-05-18 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85782 --- Comment #2 from cesar at gcc dot gnu.org --- Author: cesar Date: Fri May 18 15:46:56 2018 New Revision: 260370 URL: https://gcc.gnu.org/viewcvs?rev=260370=gcc=rev Log: PR c++/85782 Backport from mainline 2018-05-18 Cesar

[Bug c++/85782] acc loops with continue statements ICE in c++

2018-05-18 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85782 --- Comment #1 from cesar at gcc dot gnu.org --- Author: cesar Date: Fri May 18 15:43:09 2018 New Revision: 260369 URL: https://gcc.gnu.org/viewcvs?rev=260369=gcc=rev Log: PR c++/85782 gcc/cp/ * cp-gimplify.c (cp_genericize_r

[Bug c++/85782] New: acc loops with continue statements ICE in c++

2018-05-14 Thread cesar at gcc dot gnu.org
++ Assignee: unassigned at gcc dot gnu.org Reporter: cesar at gcc dot gnu.org Target Milestone: --- Created attachment 44130 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44130=edit test.cpp G++ ICEs when it encounters OpenACC loops that contains continue stateme

[Bug fortran/85742] New: sizeof allocatable arrays returning wrong value

2018-05-10 Thread cesar at gcc dot gnu.org
: fortran Assignee: unassigned at gcc dot gnu.org Reporter: cesar at gcc dot gnu.org Target Milestone: --- Created attachment 44113 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44113=edit sizeof test As of trunk revision 257065, the sizeof function is return

[Bug target/85381] [og7, nvptx, openacc] parallel-loop-1.c fails with default vector length 128

2018-04-12 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85381 cesar at gcc dot gnu.org changed: What|Removed |Added CC||cesar at gcc dot gnu.org

[Bug middle-end/84955] [7/8 Regression] Incorrect OpenACC tile expansion

2018-04-12 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84955 --- Comment #6 from cesar at gcc dot gnu.org --- I reverted that patch from trunk, and will revisit this issue during stage1. It should be noted that GCC also chokes with any empty OpenACC loop in general.

[Bug middle-end/85383] [8 regression] many ICE failures at gcc/toplev.c:325 starting with r259346

2018-04-12 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85383 --- Comment #3 from cesar at gcc dot gnu.org --- I ended up reverting the patch in r259351. It should be working now.

[Bug middle-end/85383] [8 regression] many ICE failures at gcc/toplev.c:325 starting with r259346

2018-04-12 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85383 --- Comment #1 from cesar at gcc dot gnu.org --- I'm building a power8 toolchain right now. If the fix isn't immediately obvious, I'll revert that patch for pr84955. After all, empty loops are uninteresting in OpenACC.

[Bug middle-end/84955] [7/8 Regression] Incorrect OpenACC tile expansion

2018-04-12 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84955 --- Comment #5 from cesar at gcc dot gnu.org --- Author: cesar Date: Thu Apr 12 13:15:45 2018 New Revision: 259346 URL: https://gcc.gnu.org/viewcvs?rev=259346=gcc=rev Log: PR middle-end/84955 gcc/ * lto-streamer-out.c

[Bug target/85056] [nvptx] wrong declaration of external arrays

2018-04-03 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85056 --- Comment #6 from cesar at gcc dot gnu.org --- Author: cesar Date: Tue Apr 3 14:04:22 2018 New Revision: 259032 URL: https://gcc.gnu.org/viewcvs?rev=259032=gcc=rev Log: PR target/85056 Backport from mainline 2018-03-27 Cesar

[Bug target/85056] [nvptx] wrong declaration of external arrays

2018-03-30 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85056 --- Comment #5 from cesar at gcc dot gnu.org --- Author: cesar Date: Fri Mar 30 15:47:23 2018 New Revision: 258978 URL: https://gcc.gnu.org/viewcvs?rev=258978=gcc=rev Log: PR target/85056 Backport from mainline 2018-03-27 Cesar

[Bug target/85056] [nvptx] wrong declaration of external arrays

2018-03-27 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85056 cesar at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED Resolution

[Bug target/85056] [nvptx] wrong declaration of external arrays

2018-03-27 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85056 --- Comment #3 from cesar at gcc dot gnu.org --- Author: cesar Date: Tue Mar 27 13:54:03 2018 New Revision: 258885 URL: https://gcc.gnu.org/viewcvs?rev=258885=gcc=rev Log: PR target/85056 gcc/ * config/nvptx/nvptx.c

[Bug middle-end/84955] [7/8 Regression] Incorrect OpenACC tile expansion

2018-03-23 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84955 --- Comment #4 from cesar at gcc dot gnu.org --- It fails in C with this: #pragma acc parallel loop tile(2,3) for (i = 1; i < 10; i++) for (j = 1; j < 10; j++) for (;;) ; It must be that empty loop that tripping up th

[Bug target/85056] [nvptx] wrong declaration of external arrays

2018-03-23 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85056 --- Comment #1 from cesar at gcc dot gnu.org --- Created attachment 43744 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43744=edit WIP patch It looks like nvptx_assmeble_decl_begin ignores the array type information. This patch reco

[Bug target/85056] New: [nvptx] wrong declaration of external arrays

2018-03-23 Thread cesar at gcc dot gnu.org
: target Assignee: unassigned at gcc dot gnu.org Reporter: cesar at gcc dot gnu.org Target Milestone: --- Created attachment 43743 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43743=edit test case The attached test case consists of two files, one containing a definit

[Bug libgomp/84871] New: libgomp examples-4/declare_target-[12].f90 fail with nvptx Titan V offloading

2018-03-14 Thread cesar at gcc dot gnu.org
: minor Priority: P3 Component: libgomp Assignee: unassigned at gcc dot gnu.org Reporter: cesar at gcc dot gnu.org CC: jakub at gcc dot gnu.org Target Milestone: --- Both libgomp.fortran/examples-4/declare_target-1.f90 and libgomp.fortran

[Bug target/84571] [og7, openacc, nvptx] 32-bit value passed in 64 bits to offloading function

2018-03-05 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84571 cesar at gcc dot gnu.org changed: What|Removed |Added CC||cesar at gcc dot gnu.org

[Bug target/84570] [og7, openacc, nvptx] Unused offloaded function parameters

2018-03-05 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84570 cesar at gcc dot gnu.org changed: What|Removed |Added CC||cesar at gcc dot gnu.org

[Bug target/80547] [6/7/8 Regression] nvptx back end ICE with OpenACC "reduction(OP:x)", "x = [...]"

2018-01-22 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80547 --- Comment #5 from cesar at gcc dot gnu.org --- I wasn't able to reproduce the nvptx ICE in og7. However, the host fallback does segfault at runtime in og7.

[Bug target/83790] Update nvptx target to work with cuda 9

2018-01-19 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83790 --- Comment #1 from cesar at gcc dot gnu.org --- Author: cesar Date: Fri Jan 19 14:21:08 2018 New Revision: 256891 URL: https://gcc.gnu.org/viewcvs?rev=256891=gcc=rev Log: [nvptx] Add support for CUDA 9 PR target/83790 gcc

[Bug target/83920] [nvptx] bad predicate reset

2018-01-18 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83920 --- Comment #10 from cesar at gcc dot gnu.org --- And here is the working code in -O2: { .reg.u32%x; mov.u32 %x, %tid.x; setp.ne.u32 %r71, %x, 0; } @%r71 bra

[Bug target/83920] [nvptx] bad predicate reset

2018-01-18 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83920 --- Comment #9 from cesar at gcc dot gnu.org --- I figured out why my patch does work. Here's the assembly code for your C test case at -O0: { .reg.u32%x; mov.u32 %x, %tid.x

[Bug target/83920] [nvptx] bad predicate reset

2018-01-18 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83920 --- Comment #8 from cesar at gcc dot gnu.org --- I tweaked your proposed fix as follows: diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c index 55c7e3cbf90..24625cd303f 100644 --- a/gcc/config/nvptx/nvptx.c +++ b/gcc/config/nvptx

[Bug target/83920] [nvptx] bad predicate reset

2018-01-17 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83920 --- Comment #1 from cesar at gcc dot gnu.org --- Created attachment 43165 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43165=edit assembly code

[Bug target/83920] New: [nvptx] bad predicate reset

2018-01-17 Thread cesar at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: cesar at gcc dot gnu.org Target Milestone: --- Created attachment 43164 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43164=edit gemm test case Here <https://gcc.gnu.org/ml/gcc-patches/2017-07/msg00516.html> Tom poste

[Bug middle-end/78266] broken openacc loop partitioning on nvptx offloading targets

2017-08-07 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78266 --- Comment #8 from cesar at gcc dot gnu.org --- Because num_gangs exceeds largest unsigned value that can be represented by the induction variable.

[Bug middle-end/78266] broken openacc loop partitioning on nvptx offloading targets

2017-08-07 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78266 --- Comment #6 from cesar at gcc dot gnu.org --- I'm not sure that solution is correct. A better solution would be to report an error/warning stating that num_workers exceeds the size of the induction variable. Also, in the case that user

[Bug gcov-profile/81442] error: verify_flow_info: REG_BR_PROB is set but cfg probability is not during RTL pass: outof_cfglayout

2017-07-17 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81442 cesar at gcc dot gnu.org changed: What|Removed |Added CC||cesar at gcc dot gnu.org

[Bug fortran/77765] ICE in gfc_match_oacc_routine, at fortran/openmp.c:1781

2017-06-29 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77765 --- Comment #3 from cesar at gcc dot gnu.org --- Author: cesar Date: Thu Jun 29 19:07:10 2017 New Revision: 249810 URL: https://gcc.gnu.org/viewcvs?rev=249810=gcc=rev Log: Backport fix for PR fortran/77765 gcc/fortran

[Bug fortran/77765] ICE in gfc_match_oacc_routine, at fortran/openmp.c:1781

2017-06-29 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77765 --- Comment #2 from cesar at gcc dot gnu.org --- Author: cesar Date: Thu Jun 29 19:03:43 2017 New Revision: 249809 URL: https://gcc.gnu.org/viewcvs?rev=249809=gcc=rev Log: PR fortran/77765 gcc/fortran/ * openmp.c

[Bug c++/80029] [6/7 Regression] valgrind error in new_omp_context(omp_region_type) (gimplify.c:400)

2017-03-22 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80029 cesar at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED Resolution

[Bug c++/80029] [6/7 Regression] valgrind error in new_omp_context(omp_region_type) (gimplify.c:400)

2017-03-22 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80029 --- Comment #4 from cesar at gcc dot gnu.org --- Author: cesar Date: Wed Mar 22 13:52:10 2017 New Revision: 246381 URL: https://gcc.gnu.org/viewcvs?rev=246381=gcc=rev Log: PR c++/80029 gcc/ * gimplify.c (is_oacc_declared

[Bug c++/80029] [6/7 Regression] valgrind error in new_omp_context(omp_region_type) (gimplify.c:400)

2017-03-20 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80029 --- Comment #3 from cesar at gcc dot gnu.org --- (In reply to Jakub Jelinek from comment #2) > That doesn't work, it is too early. > With: > --- gimplify.c.jj 2017-03-08 18:19:24.0 +0100 > +++ gimplify.c2017

[Bug ipa/78027] [6 Regression] ICE in new_oacc_loop_routine, at omp-low.c:19000

2017-02-05 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78027 --- Comment #7 from cesar at gcc dot gnu.org --- Last I heard in <https://gcc.gnu.org/ml/gcc-patches/2016-12/msg01050.html> Jakub was going to look for a better solution. My patch is still in trunk, but if necessary I could always revert it.

[Bug ipa/78027] [6/7 Regression] ICE in new_oacc_loop_routine, at omp-low.c:19000

2016-12-09 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78027 --- Comment #4 from cesar at gcc dot gnu.org --- Author: cesar Date: Fri Dec 9 14:45:54 2016 New Revision: 243488 URL: https://gcc.gnu.org/viewcvs?rev=243488=gcc=rev Log: PR ipa/78027 gcc/ * ipa-icf.c (sem_function

[Bug middle-end/78266] New: broken openacc loop partitioning on nvptx offloading targets

2016-11-08 Thread cesar at gcc dot gnu.org
Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: cesar at gcc dot gnu.org Target Milestone: --- Target: x86_64-linux-gnu, nvptx-none Created attachment 3 --> https://gcc.gnu.org/bugzi

[Bug fortran/72715] ICE in gfc_trans_omp_do, at fortran/trans-openmp.c:3164

2016-08-29 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72715 --- Comment #2 from cesar at gcc dot gnu.org --- Author: cesar Date: Mon Aug 29 21:16:04 2016 New Revision: 239845 URL: https://gcc.gnu.org/viewcvs?rev=239845=gcc=rev Log: PR fortran/72715 gcc/fortran/ * openmp.c

[Bug libfortran/74755] libgfortran: build breaks if localtime_r prototype is present, but definition is not

2016-08-24 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=74755 --- Comment #2 from cesar at gcc dot gnu.org --- The target is nvptx-none, specifically when it is built as an offloaded target for OpenACC. Thomas thinks the problem is in newlib rather than gcc though.

[Bug middle-end/70828] broken array-type subarrays inside acc data in openacc

2016-08-17 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70828 --- Comment #2 from cesar at gcc dot gnu.org --- Author: cesar Date: Thu Aug 18 01:12:15 2016 New Revision: 239554 URL: https://gcc.gnu.org/viewcvs?rev=239554=gcc=rev Log: PR middle-end/70828 gcc/ * gimplify.c (struct

[Bug fortran/74600] New: [openacc] duplicate data map error

2016-08-11 Thread cesar at gcc dot gnu.org
Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: cesar at gcc dot gnu.org CC: cesar at gcc dot gnu.org, tschwinge at gcc dot gnu.org Target Milestone: --- Target: x86_64-linux-gnu, nvptx-none Created attachment 39268

[Bug fortran/72741] Fortran OpenACC routine directive doesn't properly handle clauses specifying the level of parallelism

2016-08-10 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72741 --- Comment #6 from cesar at gcc dot gnu.org --- (In reply to Thomas Schwinge from comment #5) > (In reply to cesar from comment #4) > Are you saying that's not how the Fortran front end operates, and the > "SUBROUTINE r_w&

[Bug fortran/72741] Fortran OpenACC routine directive doesn't properly handle clauses specifying the level of parallelism

2016-08-09 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72741 --- Comment #4 from cesar at gcc dot gnu.org --- I could be mistaken, but I don't think there's anything we can do about that test case because fortran doesn't have file scope. Specifically, in your example, SUBROUTINE r_w IMPLICIT NONE

[Bug fortran/72741] Fortran OpenACC routine directive doesn't properly handle clauses specifying the level of parallelism

2016-07-28 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72741 --- Comment #1 from cesar at gcc dot gnu.org --- Author: cesar Date: Fri Jul 29 04:20:00 2016 New Revision: 238847 URL: https://gcc.gnu.org/viewcvs?rev=238847=gcc=rev Log: PR fortran/72741 gcc/fortran/ * openmp.c

[Bug c/70688] bogus OpenACC data clause errors involving reductions

2016-06-01 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70688 cesar at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution

[Bug c/70688] bogus OpenACC data clause errors involving reductions

2016-06-01 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70688 --- Comment #3 from cesar at gcc dot gnu.org --- Author: cesar Date: Wed Jun 1 20:40:10 2016 New Revision: 237012 URL: https://gcc.gnu.org/viewcvs?rev=237012=gcc=rev Log: PR c/70688 * pr70688.c: New file. Added: branches

[Bug c/70688] bogus OpenACC data clause errors involving reductions

2016-06-01 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70688 --- Comment #2 from cesar at gcc dot gnu.org --- Author: cesar Date: Wed Jun 1 20:37:44 2016 New Revision: 237011 URL: https://gcc.gnu.org/viewcvs?rev=237011=gcc=rev Log: PR c/70688 * pr70688.c: New file. Added: trunk

[Bug c/70688] bogus OpenACC data clause errors involving reductions

2016-06-01 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70688 --- Comment #1 from cesar at gcc dot gnu.org --- Created attachment 38621 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38621=edit new test case This issue has been resolved in trunk r236678. I forgot to include a PR tag in the Change

[Bug middle-end/70626] bogus results in 'acc parallel loop' reductions

2016-05-09 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70626 --- Comment #6 from cesar at gcc dot gnu.org --- Author: cesar Date: Mon May 9 20:42:47 2016 New Revision: 236049 URL: https://gcc.gnu.org/viewcvs?rev=236049=gcc=rev Log: Backport trunk r235651: 2016-04-29 Cesar Philippidis

[Bug c++/69363] ICE when doing a pragma simd reduction with max

2016-05-09 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69363 --- Comment #8 from cesar at gcc dot gnu.org --- Author: cesar Date: Mon May 9 20:23:31 2016 New Revision: 236047 URL: https://gcc.gnu.org/viewcvs?rev=236047=gcc=rev Log: Backport trunk r235290: 2016-04-20 Ilya Verbin

[Bug fortran/70895] OpenACC: loop reduction does not work. Output is zero.

2016-05-02 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70895 --- Comment #4 from cesar at gcc dot gnu.org --- (In reply to Thomas Schwinge from comment #3) > (In reply to cesar from comment #2) > > Consequently, you need to > > explicitly use num_gangs, num_workers and vector_leng

[Bug fortran/70895] OpenACC: loop reduction does not work. Output is zero.

2016-05-02 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70895 --- Comment #2 from cesar at gcc dot gnu.org --- Thomas is correct. Note that when gcc-6.2 is released you should be able to replace !$acc parallel vector_length(vl) !$acc loop reduction(+:pi) private(t) with !$acc parallel loop

[Bug middle-end/70626] bogus results in 'acc parallel loop' reductions

2016-04-29 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70626 cesar at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution

[Bug middle-end/70626] bogus results in 'acc parallel loop' reductions

2016-04-29 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70626 --- Comment #4 from cesar at gcc dot gnu.org --- Author: cesar Date: Fri Apr 29 17:42:04 2016 New Revision: 235651 URL: https://gcc.gnu.org/viewcvs?rev=235651=gcc=rev Log: gcc/c-family/ PR middle-end/70626 * c-common.h

[Bug middle-end/70626] bogus results in 'acc parallel loop' reductions

2016-04-29 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70626 --- Comment #3 from cesar at gcc dot gnu.org --- Author: cesar Date: Fri Apr 29 17:37:55 2016 New Revision: 235650 URL: https://gcc.gnu.org/viewcvs?rev=235650=gcc=rev Log: gcc/c-family/ PR middle-end/70626 * c-common.h

[Bug middle-end/70828] New: broken array-type subarrays inside acc data in openacc

2016-04-27 Thread cesar at gcc dot gnu.org
Priority: P3 Component: middle-end Assignee: cesar at gcc dot gnu.org Reporter: cesar at gcc dot gnu.org CC: tschwinge at gcc dot gnu.org Target Milestone: --- Created attachment 38351 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38351=e

[Bug c/70688] New: bogus OpenACC data clause errors involving reductions

2016-04-15 Thread cesar at gcc dot gnu.org
Priority: P3 Component: c Assignee: cesar at gcc dot gnu.org Reporter: cesar at gcc dot gnu.org CC: tschwinge at gcc dot gnu.org Target Milestone: --- Created attachment 38285 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38285=edit test c

[Bug middle-end/70643] broken openacc reduction inside a fortran module

2016-04-14 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70643 cesar at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution

[Bug middle-end/70643] broken openacc reduction inside a fortran module

2016-04-14 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70643 --- Comment #1 from cesar at gcc dot gnu.org --- Author: cesar Date: Thu Apr 14 13:44:17 2016 New Revision: 234973 URL: https://gcc.gnu.org/viewcvs?rev=234973=gcc=rev Log: PR middle-end/70643 gcc/ * omp-low.c

[Bug testsuite/68242] FAIL: libgomp.oacc-c-c++-common/reduction-2.c, and other OpenACC reduction test case "oddities"

2016-04-13 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68242 cesar at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution

[Bug testsuite/68242] FAIL: libgomp.oacc-c-c++-common/reduction-2.c, and other OpenACC reduction test case "oddities"

2016-04-13 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68242 --- Comment #7 from cesar at gcc dot gnu.org --- Author: cesar Date: Wed Apr 13 18:54:41 2016 New Revision: 234957 URL: https://gcc.gnu.org/viewcvs?rev=234957=gcc=rev Log: libgomp/ PR testsuite/68242 * testsuite

[Bug middle-end/70643] New: broken openacc reduction inside a fortran module

2016-04-12 Thread cesar at gcc dot gnu.org
Priority: P3 Component: middle-end Assignee: cesar at gcc dot gnu.org Reporter: cesar at gcc dot gnu.org CC: tschwinge at gcc dot gnu.org Target Milestone: --- Created attachment 38248 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38248=edit bro

[Bug tree-optimization/70357] [openacc][gomp4] ICE on reduction (+:sum) private (sum)

2016-04-11 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70357 cesar at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution

[Bug tree-optimization/70357] [openacc][gomp4] ICE on reduction (+:sum) private (sum)

2016-04-11 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70357 --- Comment #2 from cesar at gcc dot gnu.org --- Author: cesar Date: Mon Apr 11 23:21:28 2016 New Revision: 234889 URL: https://gcc.gnu.org/viewcvs?rev=234889=gcc=rev Log: gcc/ PR tree-optimization/70357 * gimplify.c

[Bug middle-end/70626] bogus results in 'acc parallel loop' reductions

2016-04-11 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70626 --- Comment #2 from cesar at gcc dot gnu.org --- Created attachment 38238 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38238=edit counter example I looked at the standard again, and it says that the reduction clause should be associa

[Bug middle-end/70626] New: bogus results in 'acc parallel loop' reductions

2016-04-11 Thread cesar at gcc dot gnu.org
Priority: P3 Component: middle-end Assignee: cesar at gcc dot gnu.org Reporter: cesar at gcc dot gnu.org CC: tschwinge at gcc dot gnu.org Target Milestone: --- Created attachment 38233 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38233=edit test c

[Bug middle-end/70533] reductions on reference-typed variables are broken in OpenACC

2016-04-08 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70533 cesar at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution

[Bug lto/70289] [openacc] ICE in input_varpool_node

2016-04-08 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70289 cesar at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution

[Bug middle-end/70534] openacc parallel reductions aren't neutered

2016-04-08 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70534 cesar at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution

[Bug tree-optimization/70373] [openacc] ICE with reduction clause in set_parm_rtl, at cfgexpand.c

2016-04-08 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70373 cesar at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution

[Bug middle-end/70535] broken nested reductions in openacc parallel regions

2016-04-08 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70535 cesar at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution

[Bug ipa/70348] [6 Regression][openacc] ICE in visit_ref_for_mod_analysis, at ipa-prop.c

2016-04-08 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70348 cesar at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED Resolution

[Bug middle-end/70535] broken nested reductions in openacc parallel regions

2016-04-08 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70535 --- Comment #1 from cesar at gcc dot gnu.org --- Author: cesar Date: Fri Apr 8 21:09:47 2016 New Revision: 234840 URL: https://gcc.gnu.org/viewcvs?rev=234840=gcc=rev Log: gcc/ PR lto/70289 PR ipa/70348 PR tree

[Bug lto/70289] [openacc] ICE in input_varpool_node

2016-04-08 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70289 --- Comment #5 from cesar at gcc dot gnu.org --- Author: cesar Date: Fri Apr 8 21:09:47 2016 New Revision: 234840 URL: https://gcc.gnu.org/viewcvs?rev=234840=gcc=rev Log: gcc/ PR lto/70289 PR ipa/70348 PR tree

[Bug ipa/70348] [6 Regression][openacc] ICE in visit_ref_for_mod_analysis, at ipa-prop.c

2016-04-08 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70348 --- Comment #10 from cesar at gcc dot gnu.org --- Author: cesar Date: Fri Apr 8 21:09:47 2016 New Revision: 234840 URL: https://gcc.gnu.org/viewcvs?rev=234840=gcc=rev Log: gcc/ PR lto/70289 PR ipa/70348 PR tree

[Bug middle-end/70534] openacc parallel reductions aren't neutered

2016-04-08 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70534 --- Comment #1 from cesar at gcc dot gnu.org --- Author: cesar Date: Fri Apr 8 21:09:47 2016 New Revision: 234840 URL: https://gcc.gnu.org/viewcvs?rev=234840=gcc=rev Log: gcc/ PR lto/70289 PR ipa/70348 PR tree

[Bug middle-end/70533] reductions on reference-typed variables are broken in OpenACC

2016-04-08 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70533 --- Comment #1 from cesar at gcc dot gnu.org --- Author: cesar Date: Fri Apr 8 21:09:47 2016 New Revision: 234840 URL: https://gcc.gnu.org/viewcvs?rev=234840=gcc=rev Log: gcc/ PR lto/70289 PR ipa/70348 PR tree

[Bug tree-optimization/70373] [openacc] ICE with reduction clause in set_parm_rtl, at cfgexpand.c

2016-04-08 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70373 --- Comment #2 from cesar at gcc dot gnu.org --- Author: cesar Date: Fri Apr 8 21:09:47 2016 New Revision: 234840 URL: https://gcc.gnu.org/viewcvs?rev=234840=gcc=rev Log: gcc/ PR lto/70289 PR ipa/70348 PR tree

[Bug ipa/70348] [6 Regression][openacc] ICE in visit_ref_for_mod_analysis, at ipa-prop.c

2016-04-06 Thread cesar at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70348 --- Comment #9 from cesar at gcc dot gnu.org --- The patch I posted for PR70289 a couple of days ago also resolves this issue: https://gcc.gnu.org/ml/gcc-patches/2016-04/msg00202.html

  1   2   >