varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO for INTEGER_CST.

* varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
	for INTEGER_CST.

From-SVN: r51051
This commit is contained in:
Olivier Hainque 2002-03-19 23:48:03 +01:00 committed by Richard Kenner
parent 251c13f163
commit 90158e35b8
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-03-19 Olivier Hainque <hainque@act-europe.fr>
* varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
for INTEGER_CST.
2002-03-19 Jason Merrill <jason@redhat.com>
* varasm.c (globalize_decl): Get the name from the RTL, not

View File

@ -3290,7 +3290,11 @@ output_constant_def (exp, defer)
encoded in it. */
if (! found)
{
ENCODE_SECTION_INFO (exp);
/* Take care not to invoque ENCODE_SECTION_INFO for constants
which don't have a TREE_CST_RTL. */
if (TREE_CODE (exp) != INTEGER_CST)
ENCODE_SECTION_INFO (exp);
desc->rtl = rtl;
desc->label = XSTR (XEXP (desc->rtl, 0), 0);
}