This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Final intermodule patch
On Sun, 13 Jul 2003, Mark Mitchell wrote:
> Various kinds of system-specific trickery akin to this situation will
> not work with multiple translation unit compilation, which is probably
> OK since they are not valid C in any case. However, there should
> probably be documentation to explain this fact to people.)
The documentation could actually recommend the use of intermodule mode as
a check for this sort of error, even if the code isn't the sort of code
for which the extra optimisation could possibly be of use. More generally
this feature potentially facilitates new warnings through whole-program
analysis (whether in GCC, or external extensions analysing programs for
particular defects).
--
Joseph S. Myers
jsm@polyomino.org.uk