This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Split simplify_unary_operation and simplify_binary_operation


On Feb 15, 2005, at 10:41 AM, Paolo Bonzini wrote:
I am thinking that some timestamp of the compiler ought to go in the PCH file...

While, this would be good, it isn't the fix to the problem you describe. The way to add better validation would be to add __TIME__ to the compiler and validate it across PCH usage. This way, if the compiler is ever rebuilt, we get a new timestamp, which then will kill all PCH files.


I will see what I can cook, and in the meanwhile I repropose my patch since it has bootstrapped and regtested fine on two platforms.

To fix the problem you describe, the PCH building rules in libstdc++ should just always rebuild them. If they want to get crafty, they can check the timestamp on the compiler (cc1plus), and ensure that the PCH is rebuilt if the compiler is newer.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]