From: Newsgroups: comp.os.msdos.djgpp Subject: Re: I've had problems!! Re: GCC 2.8.0 (2.8.1's out) Date: 15 Mar 1998 12:32:46 GMT Organization: Triode Internet Lines: 30 Message-ID: <6eghpe$64m$2@hyperion.triode.net.au> References: <34FF4807 DOT 45F42AD9 AT magna DOT com DOT au> <6e7tn4$og6$1 AT hyperion DOT triode DOT net DOT au> <3509A36F DOT 1BC396A5 AT gmx DOT net> NNTP-Posting-Host: xenon.triode.net.au Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk In comp.os.msdos.djgpp Robert Hoehne wrote: > telford AT xenon DOT triode DOT net DOT au wrote : > > > > > > Well anyone know how to clobber this compiler feature? > If you want to mix object files which where produced with > gcc 2.8.x and gcc 2.7.x then you should know, that in gcc 2.8.x > exception handling and runtime type identification are enabled > by default (the typinfo nodes are used by rtti). To use the > gcc 2.8.x produced object files also with gcc 2.7.x you should > use _EVER_ the flags > -fno-exceptions -fno-rtti I'd noticed that the exceptions were on by default and I managed to sus out -fno-exceptions, they don't seem to effect the linking though, they just make bigger code. The -fno-rtti is new to me and (just like you said) it switched off all of the type_info. Cool bananas, my cross compiler is looking better all the time. I've been through the gcc 2.8.0 info pages and a grep on `rtti' though all the info pages that I have doesn't come back with anything. Still, however you found it, thanks! Come to think of it, -fno-exceptions and -fno-rtti is probably a good standard for my Linux work too since exception handling is very size expensive and the type_info stuff is something I'm unlikely to use (it could be good for a linked list of various types and you want to know what you have pulled off the list). - Tel