Red Hat Bugzilla – Bug 66952
gcc generates incorrect code when using mcpu and march i686
Last modified: 2012-06-20 03:07:03 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020605
Description of problem:
gcc can't build binary rpms of R 1.5.1 if 686 specific instructions and
scheduling are specified.
Version-Release number of selected component (if applicable): 2.96-98
Steps to Reproduce:
1. Obtain R-base 1.51 source rpm from
2. Try building with RPM_OPT_FLAGS -O2 -mcpu=i686 -march=i686
Actual Results: Build fails with an segfault in generated binary, build works
RPM_OPT_FLAGS are -O2 -mcpu=i586 -march=i586.
Expected Results: Build should have succeeded.
This was observed on a dual p3 500 system with gcc-2.96-98.
This is also present with the gcc-2.96-100 package which comes with redhat 7.3
Works with gcc 3.2 and R 1.9.1.
*** Bug 814674 has been marked as a duplicate of this bug. ***