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 5)



Am 25.09.2009 um 01:01 schrieb Stefan Dösinger:


Am 24.09.2009 um 16:34 schrieb Ross Ridge:

if (TREE_CODE (decl) != FUNCTION_DECL)
{
warning (OPT_Wattributes, "%qE attribute only applies to functions",
name);
*no_add_attrs = true;
return NULL_TREE;
}


Ross Ridge
Where is the attribute stored and how do I access it?
I think I found it:

if (ix86_function_ms_hook_prologue (TREE_TYPE (current_function_decl)))

Following the avr code, the TREE_TYPE should be removed if I want to access the function decl attributes. Recomping again...
(Those trees are confusing to me)



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