aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog9
-rw-r--r--gcc/config/i386/cygming.h7
-rw-r--r--gcc/config/i386/i386.c8
3 files changed, 20 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f4e7a4f..e6be191 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/i386/cygming.h b/gcc/config/i386/cygming.h
index a1e5523..4259c13 100644
--- a/gcc/config/i386/cygming.h
+++ b/gcc/config/i386/cygming.h
@@ -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. */
-#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
@@ -195,6 +195,9 @@ do { \
#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) \
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 9a8bb7f..5afa63f 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -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 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)
@@ -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
+#ifndef SUBTARGET_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 ""