[cfe-dev] clang: not deterministic anymore?

Giangiacomo Mariotti gg.mariotti at gmail.com
Wed Nov 4 19:49:12 CST 2009


>
> Hi Giangiacomo,
>
> Is this still happening?  How can I reproduce the non-determinism?
>
> -Chris
>
As of revision 86088 the problem is still there, but I've found out
that it's only present if I use the -g option, so maybe it's a known
problem?
Probably I didn't test revision 85507 with the -g option, so my
previous claim that revision 85507 didn't have the problem is probably
false.

The code I used for the tests is the same used for this bug report(the
extended version): http://llvm.org/bugs/show_bug.cgi?id=5355

I didn't test more code, mostly because of lack of time.

These are the sha1sums for the code compiled with the options -Wall -O0 -g3 -lm:
2204d2c07e6854ec363888420c6a2aae48105e02  time_tests_clang_O0
7fc2732698952342705492c4d363425522a6512c  time_tests_clang_O0_2
97f4dffaae4474bc7c836662f2db21f3c0a303a8  time_tests_clang_O0_3

These are the sha1sums for the code compiled with the options -Wall -O2 -g3 -lm:
92aedcbaaf745e46f562218f562f56ea7ed02d66  time_tests_clang_O2
c0d7758f511259c8bc0765d98c8d87c051482826  time_tests_clang_O2_2
ed25d7a0006aae2d472c3fcba5be1356ada2824b  time_tests_clang_O2_3

These are the sha1sums for the code compiled with the options -Wall -O0 -lm:
5c86dd5c6beb39e1bf2684656bd5f5a691bf8609  time_tests_clang_O0_nodebug
5c86dd5c6beb39e1bf2684656bd5f5a691bf8609  time_tests_clang_O0_nodebug_2
5c86dd5c6beb39e1bf2684656bd5f5a691bf8609  time_tests_clang_O0_nodebug_3

These are the sha1sums for the code compiled with the options -Wall -O2 -lm:
11a88886dc0f4cb5127059b392171974cf0da5b0  time_tests_clang_O2_nodebug
11a88886dc0f4cb5127059b392171974cf0da5b0  time_tests_clang_O2_nodebug_2
11a88886dc0f4cb5127059b392171974cf0da5b0  time_tests_clang_O2_nodebug_3



More information about the cfe-dev mailing list