OSDN Git Service

* config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
authordannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 7 Aug 2005 21:13:27 +0000 (21:13 +0000)
committerdannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 7 Aug 2005 21:13:27 +0000 (21:13 +0000)
(COMMON_ASM_OP) Define.
* config/i386/i386.c (ix86_in_large_data_p): Add ATTRIBUTE_UNUSED
(ix86_encode_section_info): Likewise.
(TARGET_ENCODE_SECTION_INFO): Conditionally define as
SUBTARGET_ENCODE_SECTION_INFO.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102834 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/cygming.h
gcc/config/i386/i386.c

index f4e7a4f..e6be191 100644 (file)
@@ -1,3 +1,12 @@
+2005-08-07  Danny Smith  <dannysmith@users.sourceforge.net>
+
+       * config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
+       (COMMON_ASM_OP) Define.
+       * config/i386/i386.c (ix86_in_large_data_p): Add ATTRIBUTE_UNUSED
+       (ix86_encode_section_info): Likewise.
+       (TARGET_ENCODE_SECTION_INFO): Conditionally define as
+       SUBTARGET_ENCODE_SECTION_INFO.
+
 2005-08-06  Richard Henderson  <rth@redhat.com>
 
        PR 21894
 2005-08-06  Richard Henderson  <rth@redhat.com>
 
        PR 21894
index a1e5523..4259c13 100644 (file)
@@ -186,8 +186,8 @@ do {                                                                        \
    section and we need to set DECL_SECTION_NAME so we do that here.
    Note that we can be called twice on the same decl.  */
 
    section and we need to set DECL_SECTION_NAME so we do that here.
    Note that we can be called twice on the same decl.  */
 
-#undef TARGET_ENCODE_SECTION_INFO
-#define TARGET_ENCODE_SECTION_INFO  i386_pe_encode_section_info
+#undef SUBTARGET_ENCODE_SECTION_INFO
+#define SUBTARGET_ENCODE_SECTION_INFO  i386_pe_encode_section_info
 #undef  TARGET_STRIP_NAME_ENCODING
 #define TARGET_STRIP_NAME_ENCODING  i386_pe_strip_name_encoding_full
 \f
 #undef  TARGET_STRIP_NAME_ENCODING
 #define TARGET_STRIP_NAME_ENCODING  i386_pe_strip_name_encoding_full
 \f
@@ -195,6 +195,9 @@ do {                                                                        \
 #undef ASM_OUTPUT_LABELREF
 #define ASM_OUTPUT_LABELREF  i386_pe_output_labelref
 
 #undef ASM_OUTPUT_LABELREF
 #define ASM_OUTPUT_LABELREF  i386_pe_output_labelref
 
+#undef  COMMON_ASM_OP
+#define COMMON_ASM_OP  "\t.comm\t"
+
 /* Output a common block.  */
 #undef ASM_OUTPUT_COMMON
 #define ASM_OUTPUT_COMMON(STREAM, NAME, SIZE, ROUNDED) \
 /* Output a common block.  */
 #undef ASM_OUTPUT_COMMON
 #define ASM_OUTPUT_COMMON(STREAM, NAME, SIZE, ROUNDED) \
index 9a8bb7f..5afa63f 100644 (file)
@@ -951,8 +951,8 @@ static const char * const x86_64_reg_class_name[] = {
 static REAL_VALUE_TYPE ext_80387_constants_table [5];
 static bool ext_80387_constants_init = 0;
 static void init_ext_80387_constants (void);
 static REAL_VALUE_TYPE ext_80387_constants_table [5];
 static bool ext_80387_constants_init = 0;
 static void init_ext_80387_constants (void);
-static bool ix86_in_large_data_p (tree);
-static void ix86_encode_section_info (tree, rtx, int);
+static bool ix86_in_large_data_p (tree) ATTRIBUTE_UNUSED;
+static void ix86_encode_section_info (tree, rtx, int) ATTRIBUTE_UNUSED;
 static void x86_64_elf_unique_section (tree decl, int reloc) ATTRIBUTE_UNUSED;
 static void x86_64_elf_select_section (tree decl, int reloc,
                                       unsigned HOST_WIDE_INT align)
 static void x86_64_elf_unique_section (tree decl, int reloc) ATTRIBUTE_UNUSED;
 static void x86_64_elf_select_section (tree decl, int reloc,
                                       unsigned HOST_WIDE_INT align)
@@ -978,7 +978,11 @@ static void x86_64_elf_select_section (tree decl, int reloc,
 #define TARGET_ASM_FUNCTION_EPILOGUE ix86_output_function_epilogue
 
 #undef TARGET_ENCODE_SECTION_INFO
 #define TARGET_ASM_FUNCTION_EPILOGUE ix86_output_function_epilogue
 
 #undef TARGET_ENCODE_SECTION_INFO
+#ifndef SUBTARGET_ENCODE_SECTION_INFO
 #define TARGET_ENCODE_SECTION_INFO ix86_encode_section_info
 #define TARGET_ENCODE_SECTION_INFO ix86_encode_section_info
+#else
+#define TARGET_ENCODE_SECTION_INFO SUBTARGET_ENCODE_SECTION_INFO
+#endif
 
 #undef TARGET_ASM_OPEN_PAREN
 #define TARGET_ASM_OPEN_PAREN ""
 
 #undef TARGET_ASM_OPEN_PAREN
 #define TARGET_ASM_OPEN_PAREN ""