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 libgcc/77813] __TMC_END__ - __TMC_LIST__ == 0


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.

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