This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]