If I understand your proposal correctly, it would be found out almost immediately, as file checksums would be altered and quite a few places do check them.
Of course this does not work if the checksum is calculated before the file is closed by your backdoored compiler.