[Bug libgcc/77813] __TMC_END__ - __TMC_LIST__ == 0

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Oct 1 20:50:00 GMT 2016


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.


More information about the Gcc-bugs mailing list