This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Is possible get label address?
- From: Borneq <borucki dot andrzej at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Sun, 6 Jan 2013 01:28:04 -0800 (PST)
- Subject: 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.