Description of problem: Building OpenAFS 1.4.1 rc7 with optimization on i386 triggers an internal compiler error. Version-Release number of selected component (if applicable): 4.1.0-0.27 (binutils 2.16.91.0.6-1, if that's useful) How reproducible: Always Steps to Reproduce: 1. gcc -c -O openafs-1_4_1-rc7-src_ubik_vote.c Actual results: vote.c: In function âSVOTE_XSDebugâ: vote.c:364: internal compiler error: in lhd_set_decl_assembler_name, at langhooks.c:165 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugzilla.redhat.com/bugzilla> for instructions. Preprocessed source stored into /tmp/ccNGUWvB.out file, please attach this to your bugreport. Expected results: Successful compile. Additional info: Turning off optimization prevents the ICE from being triggered.
Created attachment 124730 [details] preprocessed input file
OT: I used ./configure --enable-transarc-paths --with-linux-kernel-headers=/lib/modules/`uname -r`/build --disable-optimize-kernel --disable-optimize and still hit this bug. how did you turn off optimisaztion please?
Created attachment 124796 [details] patch to ensure that $RPM_OPT_FLAGS are applied last, so that flags which affect optimization will be able to override OpenAFS's defaults William, I applied this patch, and then made sure to run regen.sh from the top level.
http://gcc.gnu.org/ml/gcc-patches/2006-02/msg01410.html