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]

[PATCH] protect he #define's in gcc/config/alpha/elf.h


Permission to apply this?


Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/egcs/gcc/ChangeLog,v
retrieving revision 1.8431
diff -u -u -1 -r1.8431 ChangeLog
--- ChangeLog	2000/11/29 00:27:52	1.8431
+++ ChangeLog	2000/11/29 01:07:31
@@ -1 +1,40 @@
+2000-11-28  David O'Brien  <obrien@FreeBSD.org>
+
+	* config/alpha/elf.h (IDENT_ASM_OP): Protect the #define.
+	(ASM_DECLARE_OBJECT_NAME): Same.
+	(ASM_FILE_END): Same.
+	(ASM_FINISH_DECLARE_OBJECT): Same.
+	(ASM_IDENTIFY_GCC): Same.
+	(ASM_IDENTIFY_LANGUAGE): Same.
+	(ASM_OUTPUT_CONSTRUCTOR): Same.
+	(ASM_OUTPUT_DEF): Same.
+	(ASM_OUTPUT_DESTRUCTOR): Same.
+	(ASM_OUTPUT_EXTERNAL_LIBCALL): Same.
+	(ASM_OUTPUT_SECTION_NAME): Same.
+	(ASM_WEAKEN_LABEL): Same.
+	(BSS_SECTION_ASM_OP): Same.
+	(COMMON_ASM_OP): Same.
+	(CONST_SECTION_ASM_OP): Same.
+	(CONST_SECTION_FUNCTION): Same.
+	(CTORS_SECTION_ASM_OP): Same.
+	(DTORS_SECTION_ASM_OP): Same.
+	(ESCAPES): Same.
+	(FINI_SECTION_ASM_OP): Same.
+	(IDENT_ASM_OP): Same.
+	(IDENT_ASM_OP): Same.
+	(INIT_SECTION_ASM_OP): Same.
+	(INT_ASM_OP): Same.
+	(MAX_OFILE_ALIGNMENT): Same.
+	(SBSS_SECTION_ASM_OP): Same.
+	(SDATA_SECTION_ASM_OP): Same.
+	(SECTION_FUNCTION_TEMPLATE): Same.
+	(SELECT_SECTION): Same.
+	(SE_CONST_SECTION): Same.
+	(SIZE_ASM_OP): Same.
+	(SKIP_ASM_OP): Same.
+	(STRING_ASM_OP): Same.
+	(STRING_LIMIT): Same.
+	(TYPE_ASM_OP): Same.
+	(TYPE_OPERAND_FMT): Same.
+
 2000-11-28  Richard Henderson  <rth@redhat.com>


Index: config/alpha/elf.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/alpha/elf.h,v
retrieving revision 1.33
diff -u -u -1 -r1.33 elf.h
--- elf.h	2000/11/18 00:02:26	1.33
+++ elf.h	2000/11/29 01:07:31
@@ -73,2 +73,3 @@
 
+#undef  IDENT_ASM_OP
 #define IDENT_ASM_OP "\t.ident\t"
@@ -76,3 +77,5 @@
 #ifdef IDENTIFY_WITH_IDENT
+#undef  ASM_IDENTIFY_GCC
 #define ASM_IDENTIFY_GCC(FILE) /* nothing */
+#undef  ASM_IDENTIFY_LANGUAGE
 #define ASM_IDENTIFY_LANGUAGE(FILE)			\
@@ -81,2 +84,3 @@
 #else
+#undef  ASM_FILE_END
 #define ASM_FILE_END(FILE)					\
@@ -100,2 +104,3 @@
 
+#undef  SKIP_ASM_OP
 #define SKIP_ASM_OP	"\t.zero\t"
@@ -114,2 +119,3 @@
 
+#undef  ALIGN_ASM_OP
 #define ALIGN_ASM_OP "\t.align\t"
@@ -132,2 +138,3 @@
 
+#undef  ASM_OUTPUT_EXTERNAL_LIBCALL
 #define ASM_OUTPUT_EXTERNAL_LIBCALL(FILE, FUN)				\
@@ -140,2 +147,3 @@
 
+#undef  COMMON_ASM_OP
 #define COMMON_ASM_OP	"\t.comm\t"
@@ -181,2 +189,3 @@
 
+#undef  INT_ASM_OP
 #define INT_ASM_OP		"\t.quad\t"
@@ -192,2 +201,3 @@
 
+#undef  MAX_OFILE_ALIGNMENT
 #define MAX_OFILE_ALIGNMENT \
@@ -210,4 +220,6 @@
 
+#undef USE_CONST_SECTION
 #define USE_CONST_SECTION	1
 
+#undef  CONST_SECTION_ASM_OP
 #define CONST_SECTION_ASM_OP	"\t.section\t.rodata"
@@ -229,3 +241,5 @@
 
+#undef  CTORS_SECTION_ASM_OP
 #define CTORS_SECTION_ASM_OP	"\t.section\t.ctors,\"aw\""
+#undef  DTORS_SECTION_ASM_OP
 #define DTORS_SECTION_ASM_OP	"\t.section\t.dtors,\"aw\""
@@ -233,4 +247,7 @@
 /* Handle the small data sections.  */
+#undef  BSS_SECTION_ASM_OP
 #define BSS_SECTION_ASM_OP	"\t.section\t.bss"
+#undef  SBSS_SECTION_ASM_OP
 #define SBSS_SECTION_ASM_OP	"\t.section\t.sbss,\"aw\""
+#undef  SDATA_SECTION_ASM_OP
 #define SDATA_SECTION_ASM_OP	"\t.section\t.sdata,\"aw\""
@@ -243,3 +260,5 @@
 
+#undef  INIT_SECTION_ASM_OP
 #define INIT_SECTION_ASM_OP	"\t.section\t.init"
+#undef  FINI_SECTION_ASM_OP
 #define FINI_SECTION_ASM_OP	"\t.section\t.fini"
@@ -274,2 +293,3 @@
 
+#undef  CONST_SECTION_FUNCTION
 #define CONST_SECTION_FUNCTION					\
@@ -287,2 +307,3 @@
 
+#undef  SECTION_FUNCTION_TEMPLATE
 #define SECTION_FUNCTION_TEMPLATE(FN, ENUM, OP)	\
@@ -303,2 +324,3 @@
    read-only for a const data decl, and writable for a non-const data decl.  */
+#undef  ASM_OUTPUT_SECTION_NAME
 #define ASM_OUTPUT_SECTION_NAME(FILE, DECL, NAME, RELOC) \
@@ -311,2 +333,3 @@
    global constructors.  */
+#undef  ASM_OUTPUT_CONSTRUCTOR
 #define ASM_OUTPUT_CONSTRUCTOR(FILE, NAME)				\
@@ -321,2 +344,3 @@
    global destructors.  */
+#undef  ASM_OUTPUT_DESTRUCTOR
 #define ASM_OUTPUT_DESTRUCTOR(FILE, NAME)      				\
@@ -334,2 +358,3 @@
 
+#undef  SELECT_SECTION
 #define SELECT_SECTION(DECL, RELOC)					\
@@ -395,3 +420,5 @@
 
+#undef  TYPE_ASM_OP
 #define TYPE_ASM_OP	"\t.type\t"
+#undef  SIZE_ASM_OP
 #define SIZE_ASM_OP	"\t.size\t"
@@ -400,2 +427,3 @@
 
+#undef  ASM_WEAKEN_LABEL
 #define ASM_WEAKEN_LABEL(FILE, NAME) \
@@ -406,2 +434,3 @@
 
+#undef  ASM_OUTPUT_DEF
 #define ASM_OUTPUT_DEF(FILE, NAME1, NAME2) \
@@ -418,2 +447,3 @@
 
+#undef  TYPE_OPERAND_FMT
 #define TYPE_OPERAND_FMT	"@%s"
@@ -435,2 +465,3 @@
 
+#undef  ASM_DECLARE_OBJECT_NAME
 #define ASM_DECLARE_OBJECT_NAME(FILE, NAME, DECL)		\
@@ -464,2 +495,3 @@
 
+#undef  ASM_FINISH_DECLARE_OBJECT
 #define ASM_FINISH_DECLARE_OBJECT(FILE, DECL, TOP_LEVEL, AT_END)	\
@@ -498,2 +530,3 @@
 
+#undef  ESCAPES
 #define ESCAPES \
@@ -519,3 +552,5 @@
 
+#undef  STRING_LIMIT
 #define STRING_LIMIT	((unsigned) 256)
+#undef  STRING_ASM_OP
 #define STRING_ASM_OP	"\t.string\t"

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