[Bug ipa/66705] [5/6 Regression] section is missing linker error with -flto -fipa-pta

trippels at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jun 30 13:03:00 GMT 2015


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.



More information about the Gcc-bugs mailing list