I think I reported that once already but cannot find it in bugzilla. I would like ebuild to filter *FLAGS so that the gcc does not break if some not yet supported flags are provided to gcc. For example, I have gcc-4.5.x now and when compiling an older gcc-3.3.6 it complains with: make[2]: Entering directory `/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/gcc' echo "/* This file is machine generated. Do not edit. */" > tmp-gtyp.h stage1/xgcc -Bstage1/ -B/usr/i686-pc-linux-gnu/bin/ -c -O2 -march=pentium4m -pipe -fno-strict-aliasing -ggdb -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-proto types -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gc c-3.3.6/gcc -I/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/. -I/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/config -I/var/tmp/portage /sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/../include \ /var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/gengtype-lex.c -o gengtype-lex.o echo "static const char *srcdir = " >> tmp-gtyp.h cc1: error: bad value (pentium4m) for -march= switch cc1: error: bad value (pentium4m) for -mcpu= switch echo "\"/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc\"" >> tmp-gtyp.h make[2]: *** [gengtype-lex.o] Error 1
*** This bug has been marked as a duplicate of bug 180184 ***