[Bug binutils/11843] New: ld long link times due to compute_bucket_count() choosing hash table size

2010-07-26 Thread todd dot veldhuizen at logicblox dot com
dot redhat dot com ReportedBy: todd dot veldhuizen at logicblox dot com CC: bug-binutils at gnu dot org http://sourceware.org/bugzilla/show_bug.cgi?id=11843 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who

[Bug binutils/11843] ld long link times due to compute_bucket_count() choosing hash table size

2010-07-28 Thread todd dot veldhuizen at logicblox dot com
--- Additional Comments From todd dot veldhuizen at logicblox dot com 2010-07-28 22:05 --- Here is a C++ program that will create a bunch of .c files, compile and then link them, hitting the bug. It links very quickly without the -O1 option, and with the -O1 option it takes a very long

[Bug binutils/11843] ld long link times due to compute_bucket_count() choosing hash table size

2010-07-28 Thread todd dot veldhuizen at logicblox dot com
--- Additional Comments From todd dot veldhuizen at logicblox dot com 2010-07-28 22:09 --- Here some tracing for compute_bucket_count() that illustrates the futility of searching large numbers of hash table sizes. Index: bfd/elflink.c

[Bug binutils/11843] ld long link times due to compute_bucket_count() choosing hash table size

2010-07-28 Thread todd dot veldhuizen at logicblox dot com
--- Additional Comments From todd dot veldhuizen at logicblox dot com 2010-07-28 22:23 --- Here is a conservative patch. Index: bfd/elflink.c === RCS file: /cvs/src/src/bfd/elflink.c,v retrieving revision 1.372 diff -u