gcc internals question
Ricardo Anguiano
anguiano@codesourcery.com
Thu Feb 13 15:48:00 GMT 2003
Spundun Bhatt <spundun@ISI.EDU> writes:
> Hi
>
> I have 2 questions about my gcc port to a new architecture.
>
> when giving an rtl dump.... gcc uses symbols like mem/f mem/s... as
> in the next question's dump. What does the /s and /f mean?
See the gcc internals info page titled "Flags in an RTL Expression",
aka, (gccint) Flags:
`MEM_IN_STRUCT_P (X)'
In `mem' expressions, nonzero for reference to an entire
structure, union or array, or to a component of one. Zero for
references to a scalar variable or through a pointer to a scalar.
If both this flag and `MEM_SCALAR_P' are clear, then we don't
know whether this `mem' is in a structure or not. Both flags
should never be simultaneously set. Stored in the `in_struct'
field and printed as `/s'.
`MEM_SCALAR_P (X)'
In `mem' expressions, nonzero for reference to a scalar known not
to be a member of a structure, union, or array. Zero for such
references and for indirections through pointers, even pointers
pointing to scalar types. If both this flag and
`MEM_IN_STRUCT_P' are clear, then we don't know whether this
`mem' is in a structure or not. Both flags should never be
simultaneously set. Stored in the `frame_related' field and
printed as `/f'.
> My gcc is giving me ICE with an error for the following template.
I don't know how to answer this one.
--
Ricardo Anguiano
http://www.codesourcery.com
More information about the Gcc
mailing list