[Bug c/17957] [4.0 regression] vector type node used after garbage-collected
janis187 at us dot ibm dot com
gcc-bugzilla@gcc.gnu.org
Tue Nov 23 00:17:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list