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]

rs6000.h patch for gcc-2.95 branch


Bernd,

	Would you please include the following patch in the gcc-2.95
branch (gcc-2.95.3 or gcc-2.95.4)?  The patch ensures that the symbol
generating a dependency between the data and text sections is a 64-bit
quantity in 64-bit mode.

Thanks, David


2000-01-04  David Edelsohn  <edelsohn@gnu.org>

	(ASM_FILE_END): Generate 64-bit symbol in 64-bit mode.

Index: rs6000.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/rs6000/rs6000.h,v
retrieving revision 1.49.4.6
diff -c -p -r1.49.4.6 rs6000.h
*** rs6000.h	2000/03/22 18:54:05	1.49.4.6
--- rs6000.h	2001/02/21 16:06:52
*************** extern int rs6000_trunc_used;
*** 2493,2499 ****
    text_section ();						\
    fputs ("_section_.text:\n", FILE);				\
    data_section ();						\
!   fputs ("\t.long _section_.text\n", FILE);			\
  }
  
  /* We define this to prevent the name mangler from putting dollar signs into
--- 2493,2500 ----
    text_section ();						\
    fputs ("_section_.text:\n", FILE);				\
    data_section ();						\
!   fputs (TARGET_32BIT                                           \
! 	 ? "\t.long _section_.text\n" : "\t.llong _section_.text\n", FILE); \
  }
  
  /* We define this to prevent the name mangler from putting dollar signs into


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