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]

i386.c, sco5.h cleanups for trunk


This gets C and C++ testsuite results back in the land of the living on
the trunk with a number of failures comparable to the 3.0 branch.  It
deletes some things (that were broken anyway) that tried to handle the
former COFF/ELF modes and undoes the ASM_QUAD breakage that I've been
unable to argue out of att.h.

This patch won't affect anything other than OpenServer.

Expect more deleteage in days to come.

OK to apply?

	* config/i386/i386.c (sco_asm_named_section): Delete.
	(sco_asm_out_constructor): Delete.
	* config/i386/sco5.h (ASM_QUAD): Undo damage from att.h.
	(ASM_OUTPUT_DOUBLE_INT): Likewise.
	(TARGET_ASM_CONSTRUCTOR): Delete.  Use default.
	(TARGET_ASM_NAMED_SECTION): Use default for ELF.
	(EXCEPTION_SECTION): Delete EH scn renaming hack.

Index: i386.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/i386/i386.c,v
retrieving revision 1.319
diff -u -p -r1.319 i386.c
--- i386.c	2001/10/17 01:39:46	1.319
+++ i386.c	2001/10/20 21:32:33
@@ -695,10 +695,7 @@ static tree ix86_handle_regparm_attribut
 #ifdef DO_GLOBAL_CTORS_BODY
 static void ix86_svr3_asm_out_constructor PARAMS ((rtx, int));
 #endif
-#if defined(TARGET_ELF) && defined(TARGET_COFF)
-static void sco_asm_named_section PARAMS ((const char *, unsigned int));
-static void sco_asm_out_constructor PARAMS ((rtx, int));
-#endif
+
 /* 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
@@ -12529,29 +12526,5 @@ ix86_svr3_asm_out_constructor (symbol, p
   fputs ("\tpushl $", asm_out_file);
   assemble_name (asm_out_file, XSTR (symbol, 0));
   fputc ('\n', asm_out_file);
-}
-#endif
-
-#if defined(TARGET_ELF) && defined(TARGET_COFF)
-static void
-sco_asm_named_section (name, flags)
-     const char *name;
-     unsigned int flags;
-{
-  if (TARGET_ELF)
-    default_elf_asm_named_section (name, flags);
-  else
-    default_coff_asm_named_section (name, flags);
-}
-
-static void
-sco_asm_out_constructor (symbol, priority)
-     rtx symbol;
-     int priority;
-{
-  if (TARGET_ELF)
-    default_named_section_asm_out_constrctor (symbol, priority);
-  else
-    ix86_svr3_asm_out_constructor (symbol, priority);
 }
 #endif
Index: sco5.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/i386/sco5.h,v
retrieving revision 1.53
diff -u -p -r1.53 sco5.h
--- sco5.h	2001/10/17 01:39:47	1.53
+++ sco5.h	2001/10/20 21:32:34
@@ -60,7 +60,7 @@ Boston, MA 02111-1307, USA.  */
 #define ASM_LONG			"\t.long\t"
 
 #undef ASM_QUAD
-#define ASM_QUAD "\t.quad\t"  /* Should not be used for 32bit compilation.  */
+#undef ASM_OUTPUT_DOUBLE_INT
 
 #undef TYPE_ASM_OP
 #define TYPE_ASM_OP			"\t.type\t"
@@ -384,9 +384,6 @@ do {									\
   ASM_OUTPUT_INTERNAL_LABEL((FILE),(PREFIX),(NUM));			\
 } while (0)
 
-#undef TARGET_ASM_CONSTRUCTOR
-#define TARGET_ASM_CONSTRUCTOR sco_asm_out_constructor
-
 #undef ASM_OUTPUT_IDENT
 #define ASM_OUTPUT_IDENT(FILE, NAME) \
   fprintf (FILE, "%s\"%s\"\n", IDENT_ASM_OP, NAME);
@@ -412,11 +409,10 @@ do {									\
  * We rename 'gcc_except_table' to the shorter name in preparation
  * for the day when we're ready to do DWARF2 eh unwinding under COFF.
  */
-#define EXCEPTION_SECTION()		named_section (NULL, ".gccexc", 1)
+/* #define EXCEPTION_SECTION()		named_section (NULL, ".gccexc", 1) */
 
 /* Switch into a generic section.  */
-#undef TARGET_ASM_NAMED_SECTION
-#define TARGET_ASM_NAMED_SECTION  sco_asm_named_section
+#define TARGET_ASM_NAMED_SECTION default_elf_asm_named_section 
 
 #undef ASM_OUTPUT_SKIP
 #define ASM_OUTPUT_SKIP(FILE,SIZE) \
@@ -775,7 +771,6 @@ init_section ()								\
  "%{!shared:-lgcc}"
 
 #define MASK_COFF     		010000000000	/* Mask for elf generation */
-#define TARGET_COFF             (target_flags & MASK_COFF)
 #define TARGET_ELF              (1) /* (!(target_flags & MASK_COFF)) */
 
 #undef SUBTARGET_SWITCHES


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