diff options
author | Jakub Jelinek <jakub@redhat.com> | 2010-12-07 12:27:37 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2010-12-07 12:27:37 +0100 |
commit | 9ff706526b9553bbb540188f932189ce1719c837 (patch) | |
tree | ac015b9b436b84f86d7c127a859fc2714afabbef /gcc/cfgexpand.c | |
parent | 4c4254403a6e72984c2afec386830c6415ea2a96 (diff) | |
download | gcc-9ff706526b9553bbb540188f932189ce1719c837.zip gcc-9ff706526b9553bbb540188f932189ce1719c837.tar.gz gcc-9ff706526b9553bbb540188f932189ce1719c837.tar.bz2 |
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
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r-- | gcc/cfgexpand.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c index f15e4e0..0ab06ea 100644 --- a/gcc/cfgexpand.c +++ b/gcc/cfgexpand.c @@ -3927,6 +3927,8 @@ gimple_expand_cfg (void) else set_curr_insn_source_location (cfun->function_start_locus); } + else + set_curr_insn_source_location (UNKNOWN_LOCATION); set_curr_insn_block (DECL_INITIAL (current_function_decl)); prologue_locator = curr_insn_locator (); |