[cfe-dev] PTH questions

Robert Purves listrp at gmail.com
Sat Apr 4 02:04:19 PDT 2009


1. What does 'T' in PTH stand for? Tokenized, toasted...?

2. The command  clang test.h  produces the expected file test.h.gch.  
Is this file recognised and used automatically in subsequent  
compilations containing #include "test.h" (as gcc does), or is it  
necessary to add the option -include-pth=test.h.gch?

3. -include-pth hates to have the '=' omitted:
$ clang -c test.c -o test.o -include-pth=test.h.gch
$ clang -c test.c -o test.o -include-pth test.h.gch
clang: warning: test.h.gch: 'linker' input file unused when '-c' is  
present
error: PTH file -o could not be read

Is this inscrutable error a bug, or By Design?

Robert P.




More information about the cfe-dev mailing list