This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ipa/66705] [5/6 Regression] section is missing linker error with -flto -fipa-pta
- From: "trippels at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 30 Jun 2015 13:03:21 +0000
- Subject: [Bug ipa/66705] [5/6 Regression] section is missing linker error with -flto -fipa-pta
- Auto-submitted: auto-generated
- References: <bug-66705-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66705
--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
trippels@gcc75 ~ % cat tramp3d-v4.ii
class A {
public:
A();
};
int a = 0;
void foo() {
a = 0;
A b;
for (; a;)
;
}
trippels@gcc75 ~ % g++ -r -nostdlib -O2 -flto -flto-partition=max -fipa-pta
tramp3d-v4.ii
lto1: fatal error: /home/trippels/tmp/cccC3PXI.ltrans0.o: section a is missing
compilation terminated.