If I compile libvorbis with -Os, oggenc (from vorbis-tools) segfaults. -O2 works fine. Portage 2.0.51 (default-linux/x86/2004.3, gcc-3.4.2, glibc-2.3.4.20041006-r0, 2.6.9-gentoo-r1 i686) ================================================================= System uname: 2.6.9-gentoo-r1 i686 AMD Athlon(tm) XP 2100+ Gentoo Base System version 1.5.3 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r1 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -Os -fomit-frame-pointer -pipe -s" CHOST="i686-pc-linux-gnu" COMPILER="" 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 /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -Os -fomit-frame-pointer -pipe -s" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks sandbox sfperms userpriv" GENTOO_MIRRORS="http://ftp-mirror.internap.com/pub/gentoo/ http://gentoo.llarian.net/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="3dnow X acpi adns alsa apache2 berkdb bitmap-fonts bonobo bzlib crypt directfb dvd f77 fam fbcon fftw gdbm gif gnome gpm gstreamer gtk gtk2 guile imlib java jpeg lesstif libg++ libwww maildir mmx motif mozilla moznocompose moznoirc moznomail mpeg ncurses nptl nptlonly oggvorbis opengl oss pam pdflib perl pic png python quicktime readline rtc sdl slang spell sse ssl tcpd tetex threads tiff truetype usb x86 xml xml2 xmms xprint xv zlib video_cards_radeon"
Oops, I should have said I'm using libvorbis-1.1.0 and vorbis-tools-1.0.1.
is there any chance you have a gcc-3.3 installed to test if it's specific to 3.4?
OK, I checked, and this is gcc-3.4 specific. gcc-3.3.4 works fine with -Os, but gcc-3.4.2 results in segfaults.
ok... -Os is replaced with -O2 for 3.4 versions of gcc