External or local SYMBOL_REF?

Joern Rennecke amylaar@cygnus.co.uk
Mon Sep 18 06:05:00 GMT 2000

> If I have an rtx x for which GET_CODE (x) == SYMBOL_REF, how do I
> find out whether the symbol is external or local?
> E.g.
> extern int a; // external
> static int b; // local
>        int c; // local

There no such information in the rtl in general.
You can arrange for the inforamation to be extracted from the tree and
encoded in the name of the symbol by defining ENCODE_SECTION_INFO.

More information about the Gcc mailing list