public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/21559] New: [4.1 Regression] missed jump threading
@ 2005-05-13 22:42 pinskia at gcc dot gnu dot org
  2005-05-13 22:43 ` [Bug tree-optimization/21559] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-13 22:42 UTC (permalink / raw)
  To: gcc-bugs

The following code should have no check for bytes == 0 but does on the mainline:
static int blocksize = 4096;

int bar (int);

void foo (void)
{
  int toread;
  int bytes;
  static char eof_reached = 0;

  toread = blocksize;
  bytes = 1;

  while (toread != 0)
    {
      bytes = bar (toread);
      if (bytes <= 0)
        {
          if (bytes < 0)
            continue;
          break;
        }
      toread -= bytes;
    }

  if (bytes == 0)
    eof_reached = 1;
}

This started to happen before 20050420 so it was ___not___ the jump threading changes.

-- 
           Summary: [4.1 Regression] missed jump threading
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2008-11-22 15:48 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-21559-6528@http.gcc.gnu.org/bugzilla/>
2005-10-27  0:12 ` [Bug tree-optimization/21559] [4.1 Regression] missed jump threading pinskia at gcc dot gnu dot org
2005-10-29 18:09 ` pinskia at gcc dot gnu dot org
2005-10-30 23:32 ` pinskia at gcc dot gnu dot org
2006-02-07 20:03 ` [Bug tree-optimization/21559] [4.1/4.2 " law at redhat dot com
2006-02-28 20:38 ` mmitchel at gcc dot gnu dot org
2006-05-25  2:45 ` mmitchel at gcc dot gnu dot org
2007-02-14  9:37 ` [Bug tree-optimization/21559] [4.1/4.2/4.3 " mmitchel at gcc dot gnu dot org
2008-07-04 16:53 ` [Bug tree-optimization/21559] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
2008-11-22 11:37 ` steven at gcc dot gnu dot org
2008-11-22 15:48 ` [Bug tree-optimization/21559] [4.2/4.3 " rguenth at gcc dot gnu dot org
2005-05-13 22:42 [Bug tree-optimization/21559] New: [4.1 " pinskia at gcc dot gnu dot org
2005-05-13 22:43 ` [Bug tree-optimization/21559] " pinskia at gcc dot gnu dot org
2005-05-16  0:07 ` steven at gcc dot gnu dot org
2005-07-27 17:18 ` law at redhat dot com
2005-07-28 22:03 ` law at redhat dot com
2005-07-29 12:30 ` pinskia at gcc dot gnu dot org
2005-07-31  5:46 ` phython at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).