This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Bugfix for lang_expand_constant case in varasm.c:output_constant
- To: gcc-patches at gcc dot gnu dot org
- Subject: Bugfix for lang_expand_constant case in varasm.c:output_constant
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Date: Fri, 23 Feb 01 15:34:04 EST
I applied this obvious fix to both the mainline and GCC 3.0 branch.
Fri Feb 23 15:28:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* varasm.c (output_constant): Recompute CODE after lang-specific fn.
*** varasm.c 2001/02/04 08:29:46 1.161
--- varasm.c 2001/02/23 19:27:58
*************** output_constant (exp, size)
*** 4230,4234 ****
language-independent representation. */
if (lang_expand_constant)
! exp = (*lang_expand_constant) (exp);
if (size == 0 || flag_syntax_only)
--- 4230,4237 ----
language-independent representation. */
if (lang_expand_constant)
! {
! exp = (*lang_expand_constant) (exp);
! code = TREE_CODE (TREE_TYPE (exp));
! }
if (size == 0 || flag_syntax_only)