patch for ia64 section names

amacleod@cygnus.com amacleod@cygnus.com
Tue Jul 24 06:46:00 GMT 2001


The testcase gcc.dg/asm-fs-1.c  fails on ia64 because we fail to strip out
'*''s in section names. 


Wilson has approved this patch for mainline, should I also apply
it to the 3.0 branch? It bootstraps on ia64, and produces
no new regressions.

Andrew



	* config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.

Index: config/ia64/ia64.h
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/config/ia64/ia64.h,v
retrieving revision 1.100
diff -c -p -r1.100 ia64.h
*** ia64.h	2001/05/15 01:31:32	1.100
--- ia64.h	2001/07/18 14:27:34
*************** do {									\
*** 1971,1977 ****
     that encode section info.  */
  
  #define STRIP_NAME_ENCODING(VAR, SYMBOL_NAME) \
!   (VAR) = (SYMBOL_NAME) + ((SYMBOL_NAME)[0] == SDATA_NAME_FLAG_CHAR)
  
  
  /* Position Independent Code.  */
--- 1971,1979 ----
     that encode section info.  */
  
  #define STRIP_NAME_ENCODING(VAR, SYMBOL_NAME) \
!   (VAR) = ((SYMBOL_NAME)                        \
! 	   + (*(SYMBOL_NAME) == '*' || *(SYMBOL_NAME) == SDATA_NAME_FLAG_CHAR))
! 
  
  
  /* Position Independent Code.  */



More information about the Gcc-patches mailing list