Write a program which runs the compiler as a child and filters its output, rearranging as necessary. Install with same name as compiler somewhere in path.
Keith Moore <firstname.lastname@example.org> wrote one such for a C compiler under AIX. Available via FTP:
Jim Frost <email@example.com> wrote another for the IBM xlc compiler on the RS/6000. (I don't know if these are both for the same compiler.) Johnathan Vail <vail@tegra.COM> wrote something for a High C compiler (`hc', which is one of the compilers on the RS/6000, although I think Johnathan wrote his program for hc on a different computer).