[Bug c/38096] New: optimization regression
mariah dot lenox at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Nov 12 21:02:00 GMT 2008
/*
% gcc -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: /usr/local/gcc-4.4-20081107/src/gcc-4.4-20081107/configure
--enable-languages=c,c++,fortran,java
--with-gmp=/usr/local/gmp-4.2.3/x86_64-Linux-fc8-core2-gcc-4.3.1
--with-mpfr=/usr/local/mpfr-2.3.2/x86_64-Linux-fc8-gmp-4.2.3-core2-gcc-4.3.1
--prefix=/usr/local/gcc-4.4-20081107/x86_64-Linux-fc
Thread model: posix
gcc version 4.4.0 20081107 (experimental) (GCC)
%
% gcc -O3 -c foo.c // ICE
% gcc -O2 -c foo.c // works
*/
#define MAX 6
typedef enum{
val
} STATE;
struct ENTRY{
STATE state;
unsigned int hndl;
} table[MAX];
int foo() {
int count;
for (count = 0;count < MAX;count ++) {
table[count].state = 0;
table[count].hndl = 0;
}
return 1;
}
--
Summary: optimization regression
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mariah dot lenox at gmail dot com
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38096
More information about the Gcc-bugs
mailing list