+++ This bug was initially created as a clone of Bug #279273 +++ sys-devel/gcc-4.3.3-r2 segfaults on my machine when compiling app-office/openoffice-3.1.0-r1 with -Os. The build succeeds with -O2. emerge log excerpt: ------------------------------ Compiling: sd/source/core/stlsheet.cxx Compiling: sc/source/ui/view/tabvwsh2.cxx --- NOOPTFILES OVER --- Compiling: sc/source/ui/view/tabview.cxx In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/include/g++-v4/bits/basic_ios.h:44, from /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/include/g++-v4/ios:50, from /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/include/g++-v4/ostream:45, from /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/include/g++-v4/iterator:70, from /usr/include/boost/next_prior.hpp:15, from /usr/include/boost/utility.hpp:17, from /var/tmp/portage/app-office/openoffice-3.1.0-r1/work/ooo/build/ooo310-m11/solver/310/unxlngi6.pro/inc/o3tl/cow_wrapper.hxx:38, from /var/tmp/portage/app-office/openoffice-3.1.0-r1/work/ooo/build/ooo310-m11/solver/310/unxlngi6.pro/inc/basegfx/polygon/b2dpolypolygon.hxx:35, from /var/tmp/portage/app-office/openoffice-3.1.0-r1/work/ooo/build/ooo310-m11/solver/310/unxlngi6.pro/inc/vcl/region.hxx:38, from /var/tmp/portage/app-office/openoffice-3.1.0-r1/work/ooo/build/ooo310-m11/solver/310/unxlngi6.pro/inc/vcl/outdev.hxx:41, from /var/tmp/portage/app-office/openoffice-3.1.0-r1/work/ooo/build/ooo310-m11/solver/310/unxlngi6.pro/inc/vcl/window.hxx:36, from /var/tmp/portage/app-office/openoffice-3.1.0-r1/work/ooo/build/ooo310-m11/solver/310/unxlngi6.pro/inc/vcl/ctrl.hxx:37, from /var/tmp/portage/app-office/openoffice-3.1.0-r1/work/ooo/build/ooo310-m11/solver/310/unxlngi6.pro/inc/vcl/scrbar.hxx:36, from ../inc/tabview.hxx:33, from /var/tmp/portage/app-office/openoffice-3.1.0-r1/work/ooo/build/ooo310-m11/sc/source/ui/view/tabview.cxx:184: /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/include/g++-v4/bits/locale_facets.h: In instantiation of 'std::numpunct<char>': /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/include/g++-v4/bits/locale_facets.h:1900: instantiated from here /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/include/g++-v4/bits/locale_facets.h:1893: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://bugs.gentoo.org/> for instructions. dmake: Error code 1, while making '../../../unxlngi6.pro/slo/tabview.obj' emerge --info: Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.3.3, glibc-2.10.1-r0, 2.6.30-gentoo-r2 i686) ================================================================= System uname: Linux-2.6.30-gentoo-r2-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4600+-with-gentoo-2.0.1 Timestamp of tree: Tue, 28 Jul 2009 19:45:02 +0000 distcc 3.1 i686-pc-linux-gnu [disabled] app-shells/bash: 4.0_p28 dev-java/java-config: 2.1.8-r1 dev-lang/python: 2.6.2-r1 dev-util/cmake: 2.6.4-r1 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.4.3-r3 sys-apps/sandbox: 2.0 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10.2, 1.11 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=k8 -Os -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=k8 -Os -pipe" DISTDIR="/var/lib/portage/gentoo/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.llarian.net/ http://cudlug.cudenver.edu/gentoo/ http://gentoo.osuosl.org/" LANG="en_US" LDFLAGS="-Wl,-O1" MAKEOPTS="-j3" PKGDIR="/var/lib/portage/gentoo/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/var/lib/portage/gentoo" PORTDIR_OVERLAY="/var/lib/portage/overlay" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 aac acpi alsa bash-completion berkdb bitmap-fonts bluetooth boundschecking branding browserplugin cairo caps cdr cli consolekit cracklib css cups dbus doc dri dvd dvdnav dvdr dvdread emacs emboss encode evo fam ffmpeg firefox flac foomaticdb gif gtk gtk2 hal htmlhandbook iconv imlib ipod isdnlog jpeg kde lame libnotify lm_sensors mad midi mikmod mmx mmxext mng mozilla moznopango mp3 mp4 mpeg mplayer mudflap musicbrainz mythtv ncurses nptl nptlonly nsplugin ogg ooo-kde opengl pam pcre pda pdf png ppds pppd qt3 qt3support qt4 quicktime readline reflection rtc sdl session smp sms spell spl sse sse2 ssl startup-notification svg sysfs tcpd threads tiff truetype usb v4l v4l2 vorbis win32codecs x264 x86 xcomposite xml xorg xulrunner xv xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
*** Bug 279273 has been marked as a duplicate of this bug. ***
*** Bug 271402 has been marked as a duplicate of this bug. ***
I'd recommend to close this bugs, is not reproducable with recent gcc releases