From 015fda077b77792502484bbe04808b35a9de4f68 Mon Sep 17 00:00:00 2001 From: aoliva Date: Fri, 29 Dec 2000 20:34:20 +0000 Subject: * varasm.c (output_constant_def): Don't ENCODE_SECTION_INFO twice. Update desc->rtl and ->label, in case ENCODE_SECTION_INFO modifies them. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38551 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/varasm.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'gcc/varasm.c') diff --git a/gcc/varasm.c b/gcc/varasm.c index 8f76f45f719..0ebcbd9da2a 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -3204,7 +3204,14 @@ output_constant_def (exp, defer) such as that it is a function name. If the name is changed, the macro ASM_OUTPUT_LABELREF will have to know how to strip this information. */ #ifdef ENCODE_SECTION_INFO - ENCODE_SECTION_INFO (exp); + /* A previously-processed constant would already have section info + encoded in it. */ + if (! found) + { + ENCODE_SECTION_INFO (exp); + desc->rtl = TREE_CST_RTL (exp); + desc->label = XSTR (XEXP (desc->rtl, 0), 0); + } #endif #ifdef CONSTANT_AFTER_FUNCTION_P -- cgit v1.2.1