This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
RE: excessive stab information
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Andy Chittenden'" <AChittenden at bluearc dot com>,"'Ian Lance Taylor'" <ian at airs dot com>
- Cc: <binutils at sourceware dot org>,"'Martin Dorey'" <mdorey at bluearc dot com>
- Date: Wed, 20 Apr 2005 17:24:24 +0100
- Subject: RE: excessive stab information
----Original Message----
>From: Andy Chittenden
>Sent: 20 April 2005 17:15
>> -----Original Message-----
>> From: Ian Lance Taylor [mailto:ian@airs.com]
>> Sent: 20 April 2005 15:59
>> In your program, always include stddef.h before sys/types.h.
> That's some global edit! We've got loads of programs all exhibiting this
> "issue". In total, there's over 15000 files that we use in various
> guises in these programs (think lots of small libraries that are linked
> together). Some of this is third party software that we have no control
> over: we could edit it but then we'd have a maintenance nightmare when
> we took a new upstream release. Oh well ...
Perhaps you can take care of this in your build system: use a string of
"-include" options on the gcc command line, to make sure that your standard
set of system headers is included right at the very start of each
compilation unit and in the same order, and allow the
multiple-include-guards to take care of any duplication in explicit #include
statements in the source.
cheers,
DaveK
--
Can't think of a witty .sigline today....