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]

RFA: Add missing defintions to dwarf2out.c


Hi Guys,

  The i586-beos-pe toolchain currently does not build because there
  are some definitions missing in dwarf2out.c.  Specifically the
  definitions of ASM_OUTPUT_DWARF_ADDR_DATA, ASM_OUTPUT_DWARF_DATA,
  ASM_OUTPUT_DWARF_DATA8 and ASM_OUTPUT_DWARF_CONST_DOUBLE are not
  provided unless UNALIGNED_INT_ASM_OP is defined.

  This patch attempts to fix this by providing my best guess as to
  what these definitions should be.

  Is this patch OK to apply ?

Cheers
	Nick

2000-07-18  Nick Clifton  <nickc@cygnus.com>

	* dwarf2out.c (ASM_OUTPUT_DWARF_ADDR_DATA,
	ASM_OUTPUT_DWARF_DATA8, ASM_OUTPUT_DWARF_DATA, 
	ASM_OUTPUT_DWARF_CONST_DOUBLE,): Provide default defintions
	for the case where UNALIGNED_INT_ASM_OP is not defined.

Index: dwarf2out.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/dwarf2out.c,v
retrieving revision 1.186
diff -p -r1.186 dwarf2out.c
*** dwarf2out.c	2000/07/17 20:56:36	1.186
--- dwarf2out.c	2000/07/18 19:35:10
*************** static void def_cfa_1		 	PARAMS ((const 
*** 473,478 ****
--- 473,483 ----
  #define ASM_OUTPUT_DWARF_ADDR_CONST(FILE,RTX) ASM_OUTPUT_DWARF_ADDR (FILE,RTX)
  #endif
  
+ #ifndef ASM_OUTPUT_DWARF_ADDR_DATA
+ #define ASM_OUTPUT_DWARF_ADDR_DATA(FILE,VALUE) \
+   assemble_integer (GEN_INT (VALUE), 4, 1)
+ #endif
+ 
  #ifndef ASM_OUTPUT_DWARF_OFFSET4
  #define ASM_OUTPUT_DWARF_OFFSET4(FILE,LABEL) \
    assemble_integer (gen_rtx_SYMBOL_REF (SImode, LABEL), 4, 1)
*************** static void def_cfa_1		 	PARAMS ((const 
*** 522,527 ****
--- 527,556 ----
    assemble_integer (GEN_INT (VALUE), 4, 1)
  #endif
  
+ #ifndef ASM_OUTPUT_DWARF_DATA8
+ #define ASM_OUTPUT_DWARF_DATA8(FILE,VALUE) \
+   assemble_integer (GEN_INT (VALUE), 8, 1)
+ #endif
+ 
+ #ifndef ASM_OUTPUT_DWARF_DATA
+ #define ASM_OUTPUT_DWARF_DATA(FILE,VALUE) \
+   assemble_integer (GEN_INT (VALUE), 8, 1)
+ #endif
+ 
+ #ifndef ASM_OUTPUT_DWARF_CONST_DOUBLE
+ #define ASM_OUTPUT_DWARF_CONST_DOUBLE(FILE, HIGH_VALUE, LOW_VALUE)	\
+   if (WORDS_BIG_ENDIAN)							\
+     {									\
+       assemble_integer (GEN_INT (HIGH_VALUE), 4, 1); 		       	\
+       assemble_integer (GEN_INT (LOW_VALUE),  4, 1);			\
+     }									\
+   else									\
+     {									\
+       assemble_integer (GEN_INT (LOW_VALUE),  4, 1); 			\
+       assemble_integer (GEN_INT (HIGH_VALUE), 4, 1); 			\
+     }									
+ #endif
+ 
  #endif /* UNALIGNED_INT_ASM_OP */
  
  #ifdef SET_ASM_OP

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