-create_pch bug/feature ?

-create_pch bug/feature ?

Hi!

We have recently switched from ICC8.1 to ICC9.1 on Linux. We observed that the new version of the compiler does not overwrite the PCHI file if it is recreated.

The test is attached.

For example:

$ icpc -V

Intel C++ Compiler for 32-bit applications, Version 9.1 Build 20060323Z Package ID: l_cc_p_9.1.038

Copyright (C) 1985-2006 Intel Corporation. All rights reserved.

$ icpc -c -create-pch cool.pchi cool.cpp

"cool.cpp": creating precompiled header file "cool.pchi"

$ icpc -c -create-pch cool.pchi cool.cpp

"cool.cpp": creating precompiled header file "cool$0.pchi"

$ icpc -c -create-pch cool.pchi cool.cpp

"cool.cpp": creating precompiled header file "cool$1.pchi"

$ icpc -c -create-pch cool.pchi cool.cpp

"cool.cpp": creating precompiled header file "cool$2.pchi"

$ icpc -c -create-pch cool.pchi cool.cpp

"cool.cpp": creating precompiled header file "cool.pchi"

And so on... it loops forever in this fashion.

So why it is doing this? Why not overwriting the file?

We have tested it, with the same results on:

SuSe 9.3

Ubuntu 6.06 (Drapper Drake)

Please find the attached test case and just do "make" 3-4 times in a row.

regards,

Alexandru Ciobanu

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.