This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcc/77813] __TMC_END__ - __TMC_LIST__ == 0
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 01 Oct 2016 20:50:26 +0000
- Subject: [Bug libgcc/77813] __TMC_END__ - __TMC_LIST__ == 0
- Auto-submitted: auto-generated
- References: <bug-77813-4@http.gcc.gnu.org/bugzilla/>
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.