This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: ppc64 __attribute__((visibility ("hidden"))) and multiple TOCs


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


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