[PATCH] Verify source files for a module only once during the build
Dmitri Gribenko
gribozavr at gmail.com
Fri Feb 7 09:26:08 PST 2014
On Fri, Feb 7, 2014 at 5:21 PM, Jordan Rose <jordan_rose at apple.com> wrote:
> The source files usually don't change, but I've certainly edited some during
> the build once I "know" they don't affect any of the downstream targets. I'm
> fine with this being unspecified behavior, but will we end up with a crash
> if things are inconsistent, or just a compiler or linker error?
I think there is a possibility of a crash. The compiler could open
the source file to re-lex something, or to parse documentation -- this
is what I remember off top of my head. And if the source does not
match the source locations from the AST, it can crash.
Dmitri
--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
More information about the cfe-commits
mailing list