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/86532] [9 Regression] Wrong code due to a wrong strlen folding starting with r262522


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

--- Comment #20 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
part.c.004t.original looks funny:

;; Function main (null)
;; enabled by -tree-original


{
  volatile int i = 4;
  int n = 4;

    volatile int i = 4;
    int n = 4;
  SAVE_EXPR <SAVE_EXPR <(sizetype) i> <= 4 ? 4 - (ssizetype) SAVE_EXPR
<(sizetype) i> : 0>;, n = (int) ((unsigned int) (SAVE_EXPR <SAVE_EXPR
<(sizetype) i> <= 4 ? 4 - (ssizetype) SAVE_EXPR <(sizetype) i> : 0>) +
(unsigned int) n);;
  if (n != 4)
    {
      __builtin_abort ();
    }
}
return 0;

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