Configure fails to identify which flags to use for my PowerPC 750FX CPU (G3) and therefore does not set any optimizations for it to the CFLAGS. Detected operating system: Linux Detected host architecture: ppc Checking for gcc version ... 3.3.3, ok Checking for CPU type ... 750FX Checking for GCC & CPU optimization abilities ... none Reproducible: Always Steps to Reproduce: 1. Install gentoo on a G3 macintosh with a 750FX CPU 2. Emerge mplayer Actual Results: It compiles but without any CPU optimizations. Expected Results: It should have compiled with CPU optimizations :) Portage 2.0.50-r1 (default-ppc-2004.0, gcc-3.3.3, glibc-2.3.2-r9, 2.6.3-benh2) ================================================================= System uname: 2.6.3-benh2 ppc 750FX Gentoo Base System version 1.4.3.13 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.2 ACCEPT_KEYWORDS="ppc" AUTOCLEAN="yes" CFLAGS="-O3 -pipe -mcpu=750 -mtune=750 -mpowerpc-gfxopt -fsigned-char -falign-functions=4 -fomit-frame-pointer -fforce-addr -frerun-loop-opt -fprefetch-loop-arrays -funroll-loops" CHOST="powerpc-unknown-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/lib/pbbuttonsd /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -pipe -mcpu=750 -mtune=750 -mpowerpc-gfxopt -fsigned-char -falign-functions=4 -fomit-frame-pointer -fforce-addr -frerun-loop-opt -fprefetch-loop-arrays -funroll-loops" DISTDIR="/usr/portage/distfiles" FEATURES="ccache" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib alsa apm berkdb cdr dga dvd esd fbconv foomaticdb gdbm gif gnome gphoto2 gpm gtk gtk2 imlib jpeg libwww linguas_sv mad mikmod mitshm mng mostif motif mozilla mpeg ncurses nls nptl offensive oggvorbis opengl oss pam pcmcia perl png pnp ppc python quicktime readline samba sdl slang ssl tcltk tcpd tiff truetype unicode usb video_cards_radeon xine xml2 xmms xv xvid"
Created attachment 27167 [details, diff] This patch fixes the problem. This small patch makes configure set the correct optimizations when a G3 750FX CPU is detected.
looks nice, btw which compiler version are you using with such heavy cflags?
I'm using gcc 3.3.3 20040217, from gcc-3.3.3.ebuild. I doesent have ppc in it's keywords but it's working just fine even with those optimizations.
seems I forgot to close the bug, it should be fixed now