https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56606
--- Comment #3 from Martin Sebor ---
Test case and its output:
$ cat u.cpp && /build/gcc-trunk/gcc/xgcc -B /build/gcc-trunk/gcc -O2 -Wall
-Wextra -c -mlongcall u.cpp && objdump -r u.o
extern void foo();
void bar() {
foo();
new char;
}
u
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56606
Martin Sebor changed:
What|Removed |Added
Target||powerpc64
Status|UNCONFIRMED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56606
--- Comment #1 from Michael Mrozek 2013-03-14
20:20:22 UTC ---
I found that including any of the standard C++ headers (, ,
, etc.) works around this, as does forward-declaring the operator:
> void* operator new(std::size_t);