From: Rob Kramer Newsgroups: comp.os.msdos.djgpp Subject: Re: Building a gcc 3.2.2 cross compiler.. Date: Mon, 14 Apr 2003 14:14:41 +0800 Organization: Singapore Telecommunications Ltd Lines: 27 Message-ID: References: <3e979062 AT news DOT starhub DOT net DOT sg> <3e997711 AT news DOT starhub DOT net DOT sg> <200304140827 DOT 32028 DOT pavenis AT latnet DOT lv> NNTP-Posting-Host: 203.125.62.93 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.7.2 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi Andris, Thanks for your help. I'm now using the gcc322s.zip package, so I don't have to use the unpack scripts. It seems to compile just fine now.. I noticed the following bit in gcc/config/i386/djgpp.h.diff: +/* I'm not sure whether the follwing is correct. + Setting DBX_REGISTER_NUMBER only as below breaks C++ exceptions + when -gdwarf-2 is being used. Maybe setting DWARF_FRAME_REGNUM + could help. I don't know (AP, 2002/02/01) */ +#undef DBX_REGISTER_NUMBER +#define DBX_REGISTER_NUMBER(n) \ + ((write_symbols == DWARF2_DEBUG) ? svr4_dbx_register_map[n] : dbx_register_ma p[n]) + +#undef DWARF_FRAME_REGNUM +#define DWARF_FRAME_REGNUM(n) dbx_register_map[n] Is there still some issue with exceptions? Couldn't find anything on this in the mail archives.. Cheers! Rob