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]

RE: Memory map.


> Variables that are volatile or have volatile fields are put straight into
> the stack; reload had nothing to do with them.  Likewise, if a variable
> must be put into the stack because the address has been taken in a way
> that can't be optimized away, or due to a setjmp, the variable is put
> early into the stack - no later then when purge_addressof is called.
> Look for / at the macros TREE_THIS_VOLATILE, TYPE_QUAL_VOLATILE and
> the functions mark_addressable, put_var_into_stack, put_reg_into_stack.

    I ran into a problem I didn't think of so far. What do I do if I have an
array declared in a function? I know no way of detecting this.

    Can't I just use getdecls() to get all the info I need?

            Virgil?


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