This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Link time checking for incompatible flags
- From: Rahul Joshi <rujoshi at uiuc dot edu>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 21 Apr 2004 00:58:47 -0500
- Subject: Link time checking for incompatible flags
Hi all,
A few days back, I had a hard time debugging my code, and the
reason was that I was linking code compiled with -fshort-enums
with code not compiled using that flag. It would have been
great if linker had somehow figured out the discepancy and
issued a warning. Would it be possible to add such link-time
checking for incompatible compiler options?
Thanks
Rahul