You can instruct the compiler to tell you, for example by passing -save-temps, and then it's a trivial text search in a single file.