Link time checking for incompatible flags

Ian Lance Taylor ian@wasabisystems.com
Thu Apr 22 12:59:00 GMT 2004


Mike Stump <mrs@apple.com> writes:

> Ah, but it can still be done.  It does compare size, so one merely has
> to encode the value into the size instead of the contents of the
> section.

The resulting warning message would definitely leave something to be
desired.  The user would have to tie

ld: foo.o: warning: duplicate section `.gcc.options.fshort-enums' has different size

back to what really happened.

Ian



More information about the Gcc mailing list