https://gcc.gnu.org/bugzilla/show_bug.cgi?id=34121
Andrew Pinski changed:
What|Removed |Added
Resolution|--- |DUPLICATE
Status|UNCONFIRMED
--- Comment #5 from pinskia at gcc dot gnu dot org 2008-12-27 06:11 ---
I don't think the different pointer matters.
There is an extra temporary that shows up on the stack.
When doing the expanding of:
;; b.D.21263 = f (); [return slot optimization]
We get that extra temp. RSO is not w
--- Comment #4 from gcc-bugzilla at contacts dot eelis dot net 2008-08-21
12:51 ---
Isolated and reproduced with GCC 4.4 on x86_64:
#include
#include
struct A
{
uint64_t p;
char m_ac[18];
A() { std::cout << "default constructed at " << this << '\n'; }
~A() {
--- Comment #2 from peter_foelsche at agilent dot com 2007-11-16 16:42
---
the attached piece of source code does exhibit the compiler problem with the
new compiler.
When compiling using -O3 the code works fine. When compiling using -g the bug
happens.
Some temporary objects are being c
--- Comment #3 from peter_foelsche at agilent dot com 2007-11-16 16:45
---
We tested this only for the 64bit version.
I don't know if this happens for the 32bit version.
The operating system is LINUX:
Linux bonfire 2.4.21-47.0.1.EL #1 SMP Fri Oct 13 17:51:36 EDT 2006 x86_64
x86_64 x86_
--- Comment #1 from peter_foelsche at agilent dot com 2007-11-16 16:38
---
Created an attachment (id=14564)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14564&action=view)
test.cpp
contains a main function at the end which calls printf() with some temporary
objects. I put printf