This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

[Bug c/17957] [4.0 regression] vector type node used after garbage-collected


------- Additional Comments From janis187 at us dot ibm dot com  2004-11-23 00:17 -------
An easy fix is for build_word_mode_vector_type to not try to reuse types.
The change to the garbage collector merely exposed a latent bug.

It works for me if build_word_mode_vector_type is cut down to this, although
there's probably a cleaner place to fix it:

static tree
build_word_mode_vector_type (int nunits)
{
  static tree innertype;
                                                                                
  if (!innertype)
    innertype = lang_hooks.types.type_for_mode (word_mode, 1);
  return build_vector_type (innertype, nunits);
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bonzini at gcc dot gnu dot
                   |                            |org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17957


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