diff options
author | Jakub Jelinek <jakub@redhat.com> | 2008-01-08 17:08:24 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2008-01-08 17:08:24 +0100 |
commit | c90eee444ccd2d39ac22b55e0b6516d842590bfb (patch) | |
tree | 92272592275d3d8489069e7330f5d4ac085d1104 /gcc/omp-low.c | |
parent | b2ebd26837f3e9b5897e9b66f3317d856c9c909a (diff) | |
download | gcc-c90eee444ccd2d39ac22b55e0b6516d842590bfb.zip gcc-c90eee444ccd2d39ac22b55e0b6516d842590bfb.tar.gz gcc-c90eee444ccd2d39ac22b55e0b6516d842590bfb.tar.bz2 |
re PR middle-end/34694 (Wrong line number for uninitialized variable)
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.
From-SVN: r131398
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 cf4ae12..94d63b6 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; |