This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/17957] [4.0 regression] vector type node used after garbage-collected
- From: "janis187 at us dot ibm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Nov 2004 00:17:28 -0000
- Subject: [Bug c/17957] [4.0 regression] vector type node used after garbage-collected
- References: <20041012215923.17957.janis187@us.ibm.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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