This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/50029] nowrap_type_p encounters void TREE_TYPE
- From: "nash11228 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 9 Aug 2011 17:38:48 +0000
- Subject: [Bug tree-optimization/50029] nowrap_type_p encounters void TREE_TYPE
- Auto-submitted: auto-generated
- References: <bug-50029-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50029
nash,steve <nash11228 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #2 from nash,steve <nash11228 at gmail dot com> 2011-08-09 17:38:47 UTC ---
(In reply to comment #1)
> >if TREE_CODE (base) == SSA_NAME, the TREE_TYPE (base) is void, which can
> introduce segfault.
>
> No, the TREE_TYPE of a SSA_NAME should be correct. I think you need to debug
> why you have a NULL TREE_TYPE here.
Yes, you are right.
It's my fault. I did not update ssa graph after running finalize_jump_threads.
sorry for this misreport.
/* We identified all the jump threading opportunities earlier, but could
not transform the CFG at that time. This routine transforms the
CFG and arranges for the dominator tree to be rebuilt if necessary.
Note the SSA graph update will occur during the normal TODO
processing by the pass manager. */
static void
finalize_jump_threads (void)
{
thread_through_all_blocks (false);
VEC_free (tree, heap, stack);
}