This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Bugfix for lang_expand_constant case in varasm.c:output_constant


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]