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/56210] invalid -Warray-bounds warning


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEW
      Known to work|                            |4.8.5
      Known to fail|                            |4.8.4

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
The diagnostic is long fixed but the folding failure / const promotion issue
remains:

f ()
{
  static char key[4] = "abc";
  char * p;
  int _1;
  char _2;

  <bb 2> [local count: 153142428]:

  <bb 3> [local count: 1020054733]:
  # p_12 = PHI <";"(2), p_8(6)>
  _1 = __builtin_strncmp (p_12, &key, 3);

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