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]
Other format: [Raw text]

PATCH: Fix bootstrap failure due to Solaris patch


This patch fixes the IA32 bootstrap problem coming from the recent patch
for Solaris 2.10.  Tested by compiling just i386.o with -Wall on
i686-pc-linux-gnu, applied on the mainline.

--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com

2004-11-17  Mark Mitchell  <mark@codesourcery.com>

 	* config/i386/i386.c (i386_solaris_elf_named_section): Mark with
	ATTRIBUTE_UNUSED.

Index: config/i386/i386.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.c,v
retrieving revision 1.740
diff -c -5 -p -r1.740 i386.c
*** config/i386/i386.c	18 Nov 2004 01:07:06 -0000	1.740
--- config/i386/i386.c	18 Nov 2004 01:54:10 -0000
*************** static bool ix86_pass_by_reference (CUMU
*** 925,935 ****
  				    tree, bool);
  
  #if defined (DO_GLOBAL_CTORS_BODY) && defined (HAS_INIT_SECTION)
  static void ix86_svr3_asm_out_constructor (rtx, int);
  #endif
! static void i386_solaris_elf_named_section (const char *, unsigned int, tree);
  
  /* Register class used for passing given 64bit part of the argument.
     These represent classes as documented by the PS ABI, with the exception
     of SSESF, SSEDF classes, that are basically SSE class, just gcc will
     use SF or DFmode move instead of DImode to avoid reformatting penalties.
--- 925,937 ----
  				    tree, bool);
  
  #if defined (DO_GLOBAL_CTORS_BODY) && defined (HAS_INIT_SECTION)
  static void ix86_svr3_asm_out_constructor (rtx, int);
  #endif
! /* This function is only used on Solaris.  */
! static void i386_solaris_elf_named_section (const char *, unsigned int, tree)
!   ATTRIBUTE_UNUSED;
  
  /* Register class used for passing given 64bit part of the argument.
     These represent classes as documented by the PS ABI, with the exception
     of SSESF, SSEDF classes, that are basically SSE class, just gcc will
     use SF or DFmode move instead of DImode to avoid reformatting penalties.


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