Is possible get label address?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I send second time this post, because first I send to not this forum, only
move to this.
Is possible in GCC get addres of specified point of code? not function begin
but label, for example:
#include <stdio.h>
#include <stdlib.h>

void* getLabelAddr(void* addr)
{
   return addr;
}
int main()
{
label:
    getLabelAddr(label);
    printf("Hello world!\n");
    return 0;
}

It is error. This is needed for exception handling tests. 



--
View this message in context: http://gcc.1065356.n5.nabble.com/Is-possible-get-label-address-tp902193.html
Sent from the gcc - Help mailing list archive at Nabble.com.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux