From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30541 invoked by alias); 24 Sep 2011 13:02:50 -0000 Received: (qmail 30527 invoked by uid 22791); 24 Sep 2011 13:02:48 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_BJ,TW_CX,TW_DC,TW_GC,TW_GX X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 24 Sep 2011 13:02:35 +0000 From: "galtgendo at o2 dot pl" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/50506] New: gcc fails at assembly with -O1 while inlining is forced Date: Sat, 24 Sep 2011 13:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: galtgendo at o2 dot pl X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-09/txt/msg01742.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D50506 Bug #: 50506 Summary: gcc fails at assembly with -O1 while inlining is forced Classification: Unclassified Product: gcc Version: 4.6.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned@gcc.gnu.org ReportedBy: galtgendo@o2.pl Created attachment 25354 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=3D25354 preprocesed code This bug simply separates the latest comments of bug 39333 for better visibility. Using built-in specs. COLLECT_GCC=3Dgcc-4.6.1 COLLECT_LTO_WRAPPER=3D/usr/libexec/gcc/i686-pc-linux-gnu/4.6.1/lto-wrapper Target: i686-pc-linux-gnu Configured with: /mnt/workbox/builds/portage/sys-devel/gcc-4.6.1-r1/work/gcc-4.6.1/configure --prefix=3D/usr --bindir=3D/usr/i686-pc-linux-gnu/gcc-bin/4.6.1 --includedir=3D/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/include --datadir=3D/usr/share/gcc-data/i686-pc-linux-gnu/4.6.1 --mandir=3D/usr/share/gcc-data/i686-pc-linux-gnu/4.6.1/man --infodir=3D/usr/share/gcc-data/i686-pc-linux-gnu/4.6.1/info --with-gxx-include-dir=3D/usr/lib/gcc/i686-pc-linux-gnu/4.6.1/include/g++-v4 --host=3Di686-pc-linux-gnu --build=3Di686-pc-linux-gnu --disable-altivec --disable-fixed-point --with-ppl --with-cloog --disable-ppl-version-check --with-cloog-include=3D/usr/include/cloog-ppl --enable-lto --enable-nls --without-included-gettext --with-system-zlib --disable-werror --enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --with-python-dir=3D/share/gcc-data/i686-pc-linux-gnu/4.6.1/python --enable-checking=3Drelease --disable-libgcj --with-arch=3Di686 --enable-ob= jc-gc --enable-languages=3Dc,c++,objc,fortran --enable-shared --enable-threads=3D= posix --enable-__cxa_atexit --enable-clocale=3Dgnu --with-bugurl=3Dhttp://bugs.gentoo.org/ --with-pkgversion=3D'Gentoo 4.6.1-r= 1 p1.0, pie-0.4.5' --disable-libstdcxx-pch Thread model: posix gcc version 4.6.1 (Gentoo 4.6.1-r1 p1.0, pie-0.4.5)=20 COLLECT_GCC_OPTIONS=3D'-v' '-Wall' '-O1' '-c' '-o' 'fprintf-bug-code-4.6.o' '-save-temps' '-mtune=3Dgeneric' '-march=3Di686' /usr/libexec/gcc/i686-pc-linux-gnu/4.6.1/cc1 -fpreprocessed fprintf-bug-code-4.6.i -quiet -dumpbase fprintf-bug-code-4.6.i -mtune=3Dgeneric -march=3Di686 -auxbase-strip fprintf-bug-code-4.6.o -O1 -Wall -version -o fprintf-bug-code-4.6.s GNU C (Gentoo 4.6.1-r1 p1.0, pie-0.4.5) version 4.6.1 (i686-pc-linux-gnu) compiled by GNU C version 4.6.1, GMP version 5.0.2, MPFR version 3.0.1-= p4, MPC version 0.8.2 GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 GNU C (Gentoo 4.6.1-r1 p1.0, pie-0.4.5) version 4.6.1 (i686-pc-linux-gnu) compiled by GNU C version 4.6.1, GMP version 5.0.2, MPFR version 3.0.1-= p4, MPC version 0.8.2 GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 Compiler executable checksum: 5f6717c7397ac8a8888626933ce7eb52 fprintf-bug-code-4.6.i: In function =E2=80=98write_cfg=E2=80=99: fprintf-bug-code-4.6.i:71:1: sorry, unimplemented: inlining failed in call = to =E2=80=98fprintf=E2=80=99: indirect function call with a yet undetermined c= allee fprintf-bug-code-4.6.i:78:7: sorry, unimplemented: called from here The code builds fine is either -fipa-cp is added or '__attribute__ ((__always_inline__))' is removed.