diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-01-08 16:08:24 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-01-08 16:08:24 +0000 |
commit | d7c85fac4113c7c6a43781b366093eb9aca0b00f (patch) | |
tree | 92272592275d3d8489069e7330f5d4ac085d1104 /gcc/omp-low.c | |
parent | 962cad335a48bd0d355c85811e2562441ecc504d (diff) | |
download | gcc-d7c85fac4113c7c6a43781b366093eb9aca0b00f.tar.gz |
PR middle-end/34694
* omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
* gcc.dg/gomp/pr34694.c: New test.
* g++.dg/gomp/pr34694.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131398 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/omp-low.c')
-rw-r--r-- | gcc/omp-low.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/omp-low.c b/gcc/omp-low.c index cf4ae12e291..94d63b6a56a 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -529,6 +529,7 @@ copy_var_decl (tree var, tree name, tree type) DECL_ARTIFICIAL (copy) = DECL_ARTIFICIAL (var); DECL_IGNORED_P (copy) = DECL_IGNORED_P (var); DECL_CONTEXT (copy) = DECL_CONTEXT (var); + DECL_SOURCE_LOCATION (copy) = DECL_SOURCE_LOCATION (var); TREE_USED (copy) = 1; DECL_SEEN_IN_BIND_EXPR_P (copy) = 1; |