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] |
(gdb) p debug_rtx(op) (symbol_ref:SI ("!D__thunk") [flags 0x2] <var_decl 0x116d380 thunk>) $2 = void
Thanks, Andrew Pinski
On Sat, Apr 26, 2003 at 01:35:04PM -0400, David Edelsohn wrote:You might want to test SYMBOL_REF_FUNCTION_P (x) in current_file_function_operand() bracketed by ENABLE_CHECKING. It essentially is an assertion.
One problem with this:
User code of the form
static int thunk[5]; ((void (*)(void))thunk) ();
that generates a call to the data section. If the linker will handle this, fine, otherwise you need to return false so that the address gets loaded into a register.
r~
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |