[Bug libgomp/58392] internal compiler error: in expand_GOMP_SIMD_VF, at internal-fn.c (omp simd inside omp parallel)

2013-09-13 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58392

--- Comment #6 from Jakub Jelinek jakub at gcc dot gnu.org ---
Author: jakub
Date: Fri Sep 13 12:42:04 2013
New Revision: 202564

URL: http://gcc.gnu.org/viewcvs?rev=202564root=gccview=rev
Log:
PR tree-optimization/58392
* tree-cfg.c (move_sese_region_to_fn): Rename loop variable
to avoid shadowing of outer loop variable.  If
saved_cfun-has_simduid_loops or saved_cfun-has_force_vect_loops,
replace_by_duplicate_decl simduid of loops that have it set and
set dest_cfun-has_simduid_loops and/or
dest_cfun-has_force_vect_loops.
* omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
instead of maybe_lookup_decl.
* tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
Use id-blocks_to_copy instead of blocks_to_copy.  Adjust recursive
call.  Copy over force_vect and copy and remap simduid.  Set
cfun-has_simduid_loops and/or cfun-has_force_vect_loops.
(copy_cfg_body): Remove blocks_to_copy argument.  Use
id-blocks_to_copy instead of blocks_to_copy.  Adjust copy_loops
caller.  Don't set cfun-has_simduid_loops and/or
cfun-has_force_vect_loops here.
(copy_body): Remove blocks_to_copy argument.  Adjust copy_cfg_body
caller.
(expand_call_inline, tree_function_versioning): Adjust copy_body
callers.

Modified:
trunk/gcc/ChangeLog
trunk/gcc/omp-low.c
trunk/gcc/tree-cfg.c
trunk/gcc/tree-inline.c


[Bug libgomp/58392] internal compiler error: in expand_GOMP_SIMD_VF, at internal-fn.c (omp simd inside omp parallel)

2013-09-13 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58392

--- Comment #7 from Jakub Jelinek jakub at gcc dot gnu.org ---
Author: jakub
Date: Fri Sep 13 12:46:32 2013
New Revision: 202565

URL: http://gcc.gnu.org/viewcvs?rev=202565root=gccview=rev
Log:
PR tree-optimization/58392
* testsuite/libgomp.c/pr58392.c: New test.

Added:
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.c/pr58392.c
Modified:
branches/gomp-4_0-branch/libgomp/ChangeLog.gomp


[Bug libgomp/58392] internal compiler error: in expand_GOMP_SIMD_VF, at internal-fn.c (omp simd inside omp parallel)

2013-09-12 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58392

--- Comment #4 from Jakub Jelinek jakub at gcc dot gnu.org ---
Fix posted: http://gcc.gnu.org/ml/gcc-patches/2013-09/msg00935.html


[Bug libgomp/58392] internal compiler error: in expand_GOMP_SIMD_VF, at internal-fn.c (omp simd inside omp parallel)

2013-09-12 Thread tprince at computer dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58392

tprince at computer dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #5 from tprince at computer dot org ---
Fixes my test case.


[Bug libgomp/58392] internal compiler error: in expand_GOMP_SIMD_VF, at internal-fn.c (omp simd inside omp parallel)

2013-09-11 Thread tprince at computer dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58392

--- Comment #1 from tprince at computer dot org ---
Created attachment 30798
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=30798action=edit
pre-processed source


[Bug libgomp/58392] internal compiler error: in expand_GOMP_SIMD_VF, at internal-fn.c (omp simd inside omp parallel)

2013-09-11 Thread tprince at computer dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58392

--- Comment #2 from tprince at computer dot org ---
Created attachment 30799
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=30799action=edit
C source


[Bug libgomp/58392] internal compiler error: in expand_GOMP_SIMD_VF, at internal-fn.c (omp simd inside omp parallel)

2013-09-11 Thread tprince at computer dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58392

--- Comment #3 from tprince at computer dot org ---
Created attachment 30801
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=30801action=edit
include file needed for compilation from C source