PR debug/31510
* dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
emulated thread local variables.
From-SVN: r133274
+2008-03-16 James E. Wilson <wilson@tuliptree.org>
+
+ PR debug/31510
+ * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
+ emulated thread local variables.
+
2008-03-16 Richard Guenther <rguenther@suse.de>
PR middle-end/35607
switch (TREE_CODE (expr))
{
case VAR_DECL:
+ /* We can't handle emulated tls variables, because the address is an
+ offset to the return value of __emutls_get_address, and there is no
+ way to express that in stabs. Also, there are name mangling issues
+ here. We end up with references to undefined symbols if we don't
+ disable debug info for these variables. */
+ if (!targetm.have_tls && DECL_THREAD_LOCAL_P (expr))
+ return NULL;
+ /* FALLTHRU */
+
case PARM_DECL:
if (DECL_HAS_VALUE_EXPR_P (expr))
return dbxout_expand_expr (DECL_VALUE_EXPR (expr));