[PATCH] Improve OpenMP debug info for threadprivate vars and shared local statics

Richard Henderson rth@redhat.com
Thu Jul 22 16:38:00 GMT 2010


On 07/22/2010 09:25 AM, Jakub Jelinek wrote:
> Do you think that is a good idea?
> 
> Bootstrapped/regtested on x86_64-linux and i686-linux.
> 
> 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
> 
> 	* gimplify.c (enum gimplify_omp_var_data): Add
> 	GOVD_THREADPRIVATE_WARNED.
> 	(gimplify_bind_expr): Add GOVD_LOCAL | GOVD_SEEN even for global vars.
> 	(omp_notice_threadprivate_variable): Note used threadprivate vars
> 	with current function's context in shared clauses.
> 	(gimplify_adjust_omp_clauses_1): Allow globals with current function's
> 	context in taskreg shared clause.
> 	* omp-low.c (lower_rec_input_clauses): For function-local is_global_var
> 	VAR_DECLs in shared clauses add a decl copy with DECL_VALUE_EXPR
> 	pointing to the original.
> 
> 	* trans-openmp.c (gfc_omp_private_debug_clause): Return false for
> 	threadprivate decls.
> 
> 	* gcc.dg/gomp/tls-3.c: New test.

Yes, I think it's a good idea.

Ok.


r~



More information about the Gcc-patches mailing list