This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: excessive stab information

----Original Message----
>From: Andy Chittenden
>Sent: 20 April 2005 17:15

>> -----Original Message-----
>> From: Ian Lance Taylor []
>> 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.

Can't think of a witty .sigline today....

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]