]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR debug/46799 (-fcompare-debug failure (length) with -ftree-parallelize-loops...
authorJakub Jelinek <jakub@redhat.com>
Tue, 7 Dec 2010 11:27:37 +0000 (12:27 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 7 Dec 2010 11:27:37 +0000 (12:27 +0100)
commit9ff706526b9553bbb540188f932189ce1719c837
treeac015b9b436b84f86d7c127a859fc2714afabbef
parent4c4254403a6e72984c2afec386830c6415ea2a96
re PR debug/46799 (-fcompare-debug failure (length) with -ftree-parallelize-loops=2 -fno-tree-dce)

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.

From-SVN: r167533
gcc/ChangeLog
gcc/cfgexpand.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/autopar/pr46799.c [new file with mode: 0644]
gcc/tree-parloops.c