"Rohit Arul Raj" <[EMAIL PROTECTED]> writes: > 1. Do i have to modify the GCC source base like adding a new flag in > tree_function_decl(tree.h), adding a new handler to set the flag in > c-common.h. > or can i do it from the backend itself.
Do it in the backend. See TARGET_ATTRIBUTE_TABLE and friends. There are examples in several backends, including, e.g., i386. > 2. Any documentation regarding adding new function attributes? Yes, some, in the internals manual around TARGET_ATTRIBUTE_TABLE. > 3. If i have to emit an assembler directive based on the flag status, > where should i look for? I don't understand the question. > 4. If i specify the attribute at the time of function declaration and > i need to update the same flag while defining the function, where > should i look to change? I suppose you would store something in the machine_function struct for that function. Ian