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: [RFC] use symbol_ref flags for rs6000


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]