This is the mail archive of the 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 rtl-optimization/21254] [4.0/4.1 regression] Incorrect code with -funroll-loops for multiple targets with same code

------- Additional Comments From belyshev at depni dot sinp dot msu dot ru  2005-04-29 12:04 -------
// Confirmed, reduced C testcase (compile with -O1 -funroll-loops):

void abort (void);

static int n;

static void __attribute__((noinline)) foo (void)
  n = 2;

static inline void bar (unsigned int k)
  if (k >= 256)
    abort ();

int main (void)
  int i;

  foo ();
  for (i = 0; i < n; ++i)
    bar ((unsigned char) i);
  return 0;

           What    |Removed                     |Added
           Severity|normal                      |critical
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
      Known to fail|                            |4.0.0 4.0.1 4.1.0
      Known to work|                            |3.4.4
           Priority|P2                          |P1
   Last reconfirmed|0000-00-00 00:00:00         |2005-04-29 12:04:03
               date|                            |
            Summary|Incorrect code with -       |[4.0/4.1 regression]
                   |funroll-loops for multiple  |Incorrect code with -
                   |targets with same code      |funroll-loops for multiple
                   |                            |targets with same code
   Target Milestone|---                         |4.0.1

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