This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/45449] -fcompare-debug failure with -O2 -fno-tree-pre -fno-tree-pta
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Aug 2010 09:09:09 -0000
- Subject: [Bug tree-optimization/45449] -fcompare-debug failure with -O2 -fno-tree-pre -fno-tree-pta
- References: <bug-45449-14164@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from rguenth at gcc dot gnu dot org 2010-08-30 09:09 -------
It's because we have dead variables in referenced vars and
455 /* Make sure the tail invocation of this function does not refer
456 to local variables. */
457 FOR_EACH_REFERENCED_VAR (var, rvi)
458 {
459 if (TREE_CODE (var) != PARM_DECL
460 && auto_var_in_fn_p (var, cfun->decl)
461 && (ref_maybe_used_by_stmt_p (call, var)
462 || call_may_clobber_ref_p (call, var)))
463 return;
triggers for such a dead variable. The whole check isn't necessary for
sibcalling though. Still it looks like a latent issue - dead vars
shouldn't be marked TREE_ADDRESSABLE.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2010-08-30 08:56:55 |2010-08-30 09:09:09
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45449