This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Is possible get label address?
- From: Borneq <borucki dot andrzej at gmail dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Sun, 16 Dec 2012 08:10:59 -0800 (PST)
- Subject: Is possible get label address?
Probably libstdc++ is not best place to post this post but I can't find
better.
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-tp898069.html
Sent from the gcc - libstdc++ mailing list archive at Nabble.com.