This is the mail archive of the gcc-help@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]

Is possible get label address?


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]