|GCC Front End: Finding the location of a Symbol Definition firstname.lastname@example.org (Charles Hardnett) (2001-08-02)|
|Re: GCC Front End: Finding the location of a Symbol Definition email@example.com (Martin von Loewis) (2001-08-06)|
|From:||Martin von Loewis <firstname.lastname@example.org>|
|Date:||6 Aug 2001 04:04:41 -0400|
|Organization:||Humboldt University Berlin, Department of Computer Science|
|Posted-Date:||06 Aug 2001 04:04:41 EDT|
Charles Hardnett <email@example.com> writes:
> If the GCC frontend determines that struct stat is defined in another
> location either a library or another file, then I want to preserve this
> information to have the BE translator use it to determine whether or not
> to create a definition of this type.
> Does anyone have any idea of how / where I can get this kind of
If you have a decl node, you can use DECL_SOURCE_FILE and
DECL_SOURCE_LINE to find out where it was originally declared.
Return to the
Search the comp.compilers archives again.