ppc64 __attribute__((visibility ("hidden"))) and multiple TOCs

David Edelsohn dje@watson.ibm.com
Mon Jun 25 19:55:00 GMT 2007


	Assuming that I did not introduce any typos from jetlag, can
someone check if the following fixes the problem?

Thanks, David

	* config/rs6000/predicates.md (current_file_function_operand):
	Ensure the symbol is non-external for AIX ABI.

Index: predicates.md
===================================================================
*** predicates.md	(revision 125995)
--- predicates.md	(working copy)
***************
*** 696,702 ****
  (define_predicate "current_file_function_operand"
    (and (match_code "symbol_ref")
         (match_test "(DEFAULT_ABI != ABI_AIX || SYMBOL_REF_FUNCTION_P (op))
! 		    && (SYMBOL_REF_LOCAL_P (op)
  		        || (op == XEXP (DECL_RTL (current_function_decl),
  						  0)))")))
  
--- 696,704 ----
  (define_predicate "current_file_function_operand"
    (and (match_code "symbol_ref")
         (match_test "(DEFAULT_ABI != ABI_AIX || SYMBOL_REF_FUNCTION_P (op))
! 		    && ((SYMBOL_REF_LOCAL_P (op)
! 			 && (DEFAULT_ABI != ABI_AIX
! 			     || !SYMBOL_REF_EXTERNAL_P (op)))
  		        || (op == XEXP (DECL_RTL (current_function_decl),
  						  0)))")))
  



More information about the Binutils mailing list