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 tree-optimization/45449] -fcompare-debug failure with -O2 -fno-tree-pre -fno-tree-pta



------- 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


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