Sender: nate AT cartsys DOT com Message-ID: <373B1448.CCC33137@cartsys.com> Date: Thu, 13 May 1999 11:04:56 -0700 From: Nate Eldredge X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.2.5 i586) MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: Failed compilation of GCC 2.8.1 References: <373b164b DOT 4977938 AT noticias DOT iies DOT es> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Reply-To: djgpp AT delorie DOT com Guillermo Rodriguez Garcia wrote: > > El día Tue, 11 May 1999 09:09:56 +0300 (IDT), Eli Zaretskii > escribió: > > >You are hitting the limitation of the COFF object file format: the > >total number of source lines in a program must be less than 65535, > >otherwise the linker cannot write the debug info. The usual work- > >around is to add `CFLAGS=-O2' to the Make command lines you are > >invoking during the build (you could also set CFLAGS in the > >environment to get the same effect). This value of CFLAGS prevents > >gcc from putting debug info in the first place, and also makes the > >code smaller and faster due to optimizations. > > I read somewhere that with gcc you can debug optimized programs, so I > think -O2 shouldn't strip debug info. It doesn't. But the default CFLAGS is (IIRC) "-g". Overriding it with something that doesn't include "-g" will leave out the debug info and avoid this problem. ("-O2" is a good choice because you also end up with a faster compiler.) -- Nate Eldredge nate AT cartsys DOT com