patch to config/sparc/sysv4.h

Catherine L. Moore clm@cygnus.com
Tue Oct 6 09:07:00 GMT 1998


The following change is required to support section 
garbage collection for the sparc.  Okay to install?
Thanks,
Catherine

Index: sysv4.h
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/config/sparc/sysv4.h,v
retrieving revision 1.38
diff -c -r1.38 sysv4.h
*** sysv4.h	1998/08/21 07:30:14	1.38
--- sysv4.h	1998/10/06 14:39:25
***************
*** 193,200 ****
  #define ASM_OUTPUT_SECTION_NAME(FILE, DECL, NAME, RELOC) \
  do {									\
    if ((DECL) && TREE_CODE (DECL) == FUNCTION_DECL)			\
!     fprintf (FILE, ".section\t\"%s%s\",#alloc,#execinstr\n",		\
! 	     flag_function_sections ? ".text%" : "", (NAME));		\
    else if ((DECL) && DECL_READONLY_SECTION (DECL, RELOC))		\
      fprintf (FILE, ".section\t\"%s\",#alloc\n", (NAME));		\
    else									\
--- 193,200 ----
  #define ASM_OUTPUT_SECTION_NAME(FILE, DECL, NAME, RELOC) \
  do {									\
    if ((DECL) && TREE_CODE (DECL) == FUNCTION_DECL)			\
!     fprintf (FILE, ".section\t\"%s\",#alloc,#execinstr\n",		\
! 	                                      (NAME));		\
    else if ((DECL) && DECL_READONLY_SECTION (DECL, RELOC))		\
      fprintf (FILE, ".section\t\"%s\",#alloc\n", (NAME));		\
    else									\



More information about the Gcc-patches mailing list