https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77813
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target|powerpc64le-unknown-linux-g | |nu | Status|UNCONFIRMED |NEW Last reconfirmed| |2016-10-01 Ever confirmed|0 |1 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- What the code in crtstuff should do is something like: char *end = __TMC_END__ ; char *start = __TMC_LIST__ ; asm("" :"+r"(end)); asm("" :"+r"(start)); ... if (end - start == 0) .... We have recommended this already in bugzilla for other cases like the above too.