[Bug optimization/14792] [tree-ssa] cast elimination opportunity involving an AND

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Mar 31 03:34:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-31 03:34 -------
Confirmed, mine.
Here is a better example which causes there to be a reference to link_error (even in RTL):
void link_error (void);
void
foo (char *a)
{
  char b = *a;
  long c = b;
  if (b & 1)
    if (! (c & 1))
      link_error();
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-03-31 03:34:14
               date|                            |
   Target Milestone|---                         |tree-ssa


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14792



More information about the Gcc-bugs mailing list