This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/21254] [4.0/4.1 regression] Incorrect code with -funroll-loops for multiple targets with same code
- From: "belyshev at depni dot sinp dot msu dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Apr 2005 12:04:07 -0000
- Subject: [Bug rtl-optimization/21254] [4.0/4.1 regression] Incorrect code with -funroll-loops for multiple targets with same code
- References: <20050427161302.21254.spencer@infointeractive.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21254