A fairly tricky one. OOo compiled with -mtune=pentium4 will crash e.g. http://qa.openoffice.org/issues/show_bug.cgi?id=58368 eventually on drawing stuff. Problem traced to a particular file. Compied with -mtune=pentiumpro instead and crash dissappears.
So taking -E code, attached here as salgdi.ii, comiling as a) g++ -S -Os -fno-strict-aliasing -fvisibility=hidden -mtune=pentiumpro -fvisibility-inlines-hidden -g -fno-exceptions -fpic -o pentiumpro-salgdi.s salgdi.ii g++ -c -fpic -o ../../../unxlngi6.pro/slo/salgdi.o pentiumpro-salgdi.s and all is well, and as b) ++ -S -Os -fno-strict-aliasing -fvisibility=hidden -mtune=pentium4 -fvisibility-inlines-hidden -g -fno-exceptions -fpic -o pentium4-salgdi.s salgdi.ii g++ -c -fpic -o ../../../unxlngi6.pro/slo/salgdi.o pentium4-salgdi.s all is not well. .s also attached in an attempt to be useful -- Summary: crashing code output from -mtune=pentium4 but not - mtune=pentiumpro Product: gcc Version: 4.0.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: caolanm at redhat dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25199