From: Richard Kenner Date: Fri, 23 Feb 2001 20:28:58 +0000 (+0000) Subject: * varasm.c (output_constant): Recompute CODE after lang-specific fn. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e82a84c47174cea2082b4a62d2488401f7a60080;p=gcc.git * varasm.c (output_constant): Recompute CODE after lang-specific fn. From-SVN: r40008 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1d36d96ae02..c5e0bb3d30c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Fri Feb 23 15:28:39 2001 Richard Kenner + + * varasm.c (output_constant): Recompute CODE after lang-specific fn. + 2001-02-23 Jeffrey Oldham * Makefile.in (resource.o): Add params.h dependence. diff --git a/gcc/varasm.c b/gcc/varasm.c index 047065777d7..6e3b097e832 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -4229,7 +4229,10 @@ output_constant (exp, size) directly. Give the front-end a chance to convert EXP to a language-independent representation. */ if (lang_expand_constant) - exp = (*lang_expand_constant) (exp); + { + exp = (*lang_expand_constant) (exp); + code = TREE_CODE (TREE_TYPE (exp)); + } if (size == 0 || flag_syntax_only) return;