This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: About macro: SYMBOL_REF_SMALL_P


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]