About macro: SYMBOL_REF_SMALL_P

Richard Sandiford richard@codesourcery.com
Wed Jun 15 05:47:00 GMT 2005


ibanez@sunplus.com.tw writes:
> I'm trying to trace the source code of gcc/mips.
> It uses a SYMBOL_REF_SMALL_P macro,
> According to the index of 'GNU Compiler Collection Internals',
> it should be documented on section RTL representation-Access to Special
> Operands but it's not.
> How can I find it's document?

I see what you mean...

---------------------------------------------------------------------
@findex SYMBOL_REF_SMALL_P
@findex SYMBOL_FLAG_SMALL
@item SYMBOL_FLAG_SMALL
Set if the symbol is located in the small data section.
See @code{TARGET_IN_SMALL_DATA_P}.
---------------------------------------------------------------------

(the point being that the itemised list only mentions SYMBOL_FLAG_SMALL,
not SYMBOL_REF_SMALL_P).  But the idea is that:

   SYMBOL_REF_SMALL_P (X)

is equivalent to:

   (SYMBOL_REF_FLAGS (X) & SYMBOL_FLAG_SMALL) != 0

where SYMBOL_FLAG_SMALL is as documented.  The same is true for
the other *_P macros.

Richard



More information about the Gcc mailing list