OSDN Git Service

PR debug/46799
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 7 Dec 2010 11:27:37 +0000 (11:27 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 7 Dec 2010 11:27:37 +0000 (11:27 +0000)
commit0aecb55e5817988f256f6aca95e68dd2504b97c1
treeac015b9b436b84f86d7c127a859fc2714afabbef
parentec1773c612d9b3ee00127120d87393089645108a
PR debug/46799
* tree-parloops.c (separate_decls_in_region): Use UNKNOWN_LOCATION
instead of BUILTINS_LOCATION.
(create_loop_fn): Add LOC argument, pass it to build_decl instead of
BUILTINS_LOCATION.
(create_parallel_loop): Add LOC argument, use it for OMP clauses
and GIMPLE_*OMP* statements.
(gen_parallel_loop): Determine locus for the parallel loop, pass it
to create_loop_fn and create_parallel_loop.
* cfgexpand.c (gimple_expand_cfg): For builtin functions, call
set_curr_insn_source_location (UNKNOWN_LOCATION).

* gcc.dg/autopar/pr46799.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167533 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cfgexpand.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/autopar/pr46799.c [new file with mode: 0644]
gcc/tree-parloops.c