if these flags are set: "-msse -msse2 -mmmx" the ebuild its going to fail with this message: gcc -o prdtoa.o -c -O3 -march=pentium3 -pipe -msse -msse2 -mmmx -mfpmath=sse -Wno-return-type -w -pipe -ansi -pthread -O2 -fPIC -UDEBUG -DMOZILLA_CLIENT=1 -DNDEBUG=1 -DXP_UNIX=1 -D_POSIX_SOURCE=1 -D_BSD_SOURCE=1 -D_SVID_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DHAVE_FCNTL_FILE_LOCKING=1 -DLINUX=1 -Di386=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -D_REENTRANT=1 -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -D_PR_INET6 -D_NSPR_BUILD_ -I/var/tmp/portage/mozilla-1.1-r1/work/mozilla/dist/include/nspr -I../../../pr/include -I../../../pr/include/private prdtoa.c {standard input}: Assembler messages: {standard input}:186: Error: suffix or operands invalid for `movd' make[5]: *** [prdtoa.o] Error 1 make[5]: Leaving directory `/var/tmp/portage/mozilla-1.1-r1/work/mozilla/nsprpub/pr/src/misc' make[4]: *** [export] Error 2 make[4]: Leaving directory `/var/tmp/portage/mozilla-1.1-r1/work/mozilla/nsprpub/pr/src' make[3]: *** [export] Error 2 make[3]: Leaving directory `/var/tmp/portage/mozilla-1.1-r1/work/mozilla/nsprpub/pr' make[2]: *** [export] Error 2 make[2]: Leaving directory `/var/tmp/portage/mozilla-1.1-r1/work/mozilla/nsprpub' make[1]: *** [nspr] Error 2 make[1]: Leaving directory `/var/tmp/portage/mozilla-1.1-r1/work/mozilla' make: *** [default] Error 2 !!! ERROR: net-www/mozilla-1.1-r1 failed. !!! Function src_compile, Line 221, Exitcode 2 !!! (no error message)
Its not my job to fix gcc, or teach the user sense ?
the sse flags usually break a lot of packages ...
Well, i have been using these flags, and everything compiled ok (gcc-3.2-r4 adn glibc-2.3.1-r2) the only thing that never compiled ok with these flags was mozilla.
So as well glibc and xfree. They however have the strip-flags. My point is thus: Should we have multiple filter-flags lines in ebuilds ? What happens if gcc devs actually fix the broken optimization in gcc3 ? I do not really want to strip-flags mozilla as well, as it can get sorda slow on older boxes, and using saver flags might improve speed. I am however *not* going to clutter it with removing every flag that makes it fail. I am also not going to test it with each flag, as its going to waiste my time. Also, some -march's cause some flags to fail more than for others ...
Ok, done (added strip-flags).