[Bug tree-optimization/105189] [9/10/11/12 Regression] Wrong code with -O1

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Apr 6 19:09:08 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105189

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
   Last reconfirmed|                            |2022-04-06
     Ever confirmed|0                           |1
   Target Milestone|---                         |9.5
             Status|UNCONFIRMED                 |ASSIGNED
           Priority|P3                          |P2
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with my r9-1971-g315aa691f486bfe71bae0a5fc8828db26daebb56

int a = -1;

int
foo (int b)
{
  return b;
}

int
main ()
{
  int c = foo (a) >= 0U && 4;
  if (c != 1)
    __builtin_abort ();
}


More information about the Gcc-bugs mailing list