|
From: Dirk M. <dm...@gm...> - 2007-12-11 23:52:49
|
On Monday 10 December 2007, Dan Kegel wrote:
> > it is unfortunately a known problem that -Wstrict-overflow
> > does not warn about everything that it exploits for optimisation.
> Got a gcc bugzilla number for that?
Not really. I have plenty of testcases though. example:
void table_init(int* value)
{
int val = 0x03020100;
for (int i = 0; i < 256/4; i++) {
value[i] = val;
val += 0x04040404;
}
}
Greetings,
Dirk
|