Red Hat Bugzilla – Bug 512650
kernel: use -fno-strict-overflow instead of -fwrapv [rhel-5.4]
Last modified: 2013-01-10 21:32:38 EST
Description of problem:
[PATCH] Don't use '-fwrapv' compiler option: it's buggy in gcc-4.1.x
This causes kernel images that don't run init to completion with certain broken gcc versions.
This fixes kernel bugzilla entry:
I suspect the gcc problem is this:
Fix the problem by using the -fno-strict-overflow flag instead, which not only does not exist in the known-to-be-broken versions of gcc (it was introduced later than fwrapv), but seems to be much less disturbing to gcc too: the difference in the generated code by -fno-strict-overflow are smaller (compared to using neither flag) than when using -fwrapv.
Related to bug 491266.
Created attachment 355478 [details]