From 5c9bf75299ce79b0fccb4219ea7264fb2a6d08a4 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Mon, 13 Sep 2010 21:08:13 +0000 Subject: [PATCH] re PR debug/43937 (FAIL: gcc.dg/guality/inline-params.c) PR debug/43937 * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on the DECL as well. From-SVN: r164258 --- gcc/ChangeLog | 6 ++++++ gcc/varasm.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5c0c7318f11..d75339a0c0a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-09-13 Eric Botcazou + + PR debug/43937 + * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on + the DECL as well. + 2010-09-13 Jakub Jelinek PR rtl-optimization/45617 diff --git a/gcc/varasm.c b/gcc/varasm.c index 9c2593f14c8..1c2a525c523 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -3115,7 +3115,7 @@ output_constant_def_contents (rtx symbol) output_addressed_constants (exp); /* We are no longer deferring this constant. */ - TREE_ASM_WRITTEN (exp) = 1; + TREE_ASM_WRITTEN (decl) = TREE_ASM_WRITTEN (exp) = 1; /* If the constant is part of an object block, make sure that the decl has been positioned within its block, but do not write out