x86 dwarf patch

Krister Walfridsson cato@df.lth.se
Wed Feb 2 14:59:00 GMT 2000


On Wed, 2 Feb 2000, Richard Henderson wrote:

> On Wed, Feb 02, 2000 at 10:19:42PM +0100, Krister Walfridsson wrote:
> > This breaks bootstrap on NetBSD since INT_ASM_OP is undefined. What is it
> > supposed to do, and where should it be defined?
> 
> It's `.long' usually.  If possible, netbsd should be using 
> config/elfos.h.  Otherwise I guess it should be defined in
> config/i386/netbsd.h.

NetBSD/i386 is a.out, so config/elfos.h is probably not the right file to
include...

The following patch solves my problem.

   /Krister


Wed Feb  2 23:04:47 2000   Krister Walfridsson <cato@df.lth.se>

        * config/i386/netbsd.h (INT_ASM_OP): Define.



*** netbsd.h.bak        Wed Feb  2 19:52:35 2000
--- netbsd.h    Wed Feb  2 23:04:47 2000
***************
*** 86,88 ****
--- 86,92 ----
     and initialization stuff better.  */
  #define DWARF2_UNWIND_INFO 0
  
+ /* This is the pseudo-op used to generate a 32-bit word of data with a
+    specific value in some section.  */
+ 
+ #define INT_ASM_OP ".long"




More information about the Gcc-patches mailing list