This is the mail archive of the gcc-patches@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: [PATCH] Add support for the Win32 hook prologue (try 7)


As for static_chain vs ms_hook_prologue, they *cannot* be combined. Both require being done first.
Ok, I tried to catch nested functions in the attribute table callback with decl_function_context (*node) != NULL(or NULL_TREE). However, in my test code:

int __attribute__ ((__ms_hook_prologue__)) outer ()
{
    int a = 5;
    int __attribute__ ((__ms_hook_prologue__)) inner ()
    {
        return a;
    }
    return inner ();
}

Both outer() and inner() have a function context of NULL. Is this correct? As I understand it, the inner function should have a non-NULL function context.


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