https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63692

            Bug ID: 63692
           Summary: Temporary object stack space is not re-used
           Product: gcc
           Version: 4.8.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gonzalez.rulez at gmail dot com

Created attachment 33849
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33849&action=edit
The same test case as in 51060

Related to:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51060

The only difference between this issue and 51060 is that code is being compiled
without "Os".

$ g++ -c 51060.cpp -Wframe-larger-than=2048 -Werror
51060.cpp: In function ‘void Test()’:
51060.cpp:37:1: error: the frame size of 10240 bytes is larger than 2048 bytes
[-Werror=frame-larger-than=]
 }
 ^
cc1plus: all warnings being treated as errors
See attached code sample.

Environment:

$ g++ -v
Using built-in specs.
COLLECT_GCC=/usr/bin/g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.3/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla
--enable-bootstrap --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-linker-build-id --with-linker-hash-style=gnu
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin
--enable-initfini-array --enable-java-awt=gtk --disable-dssi
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--enable-libgcj-multifile --enable-java-maintainer-mode
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
--with-isl=/builddir/build/BUILD/gcc-4.8.3-20140911/obj-x86_64-redhat-linux/isl-install
--with-cloog=/builddir/build/BUILD/gcc-4.8.3-20140911/obj-x86_64-redhat-linux/cloog-install
--with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.3 20140911 (Red Hat 4.8.3-7) (GCC)

$ uname -s -r -v -p -i -o
Linux 3.16.6-200.fc20.x86_64 #1 SMP Wed Oct 15 13:06:51 UTC 2014 x86_64 x86_64
GNU/Linux

Reply via email to