aboutsummaryrefslogtreecommitdiff
path: root/gold/gold-threads.cc
AgeCommit message (Collapse)AuthorFilesLines
2009-03-24 * target-select.cc (instantiate_target): Don't acquire the lock ifIan Lance Taylor1-1/+1
the instantiated_target_ field has already been set.
2009-03-242009-03-23 Ian Lance Taylor <iant@google.com>Ian Lance Taylor1-0/+124
* gold-threads.h (class Initialize_lock): Define. * gold-threads.cc (class Initialize_lock_once): Define. (initialize_lock_control): New static variable. (initialize_lock_pointer): New static variable. (initialize_lock_once): New static function. (Initialize_lock::Initialize_lock): Define. (Initialize_lock::initialize): Define. * target-select.h: Include "gold-threads.h". (class Target_selector): Add lock_ and initialize_lock_ fields. Don't define instantiate_target, just declare it. * target-select.cc (Target_selector::Target_selector): Initialize new fields. (Target_selector::instantiate_target): Define. * descriptors.h: Include "gold-threads.h". (class Descriptors): Add initialize_lock_ field. * descriptors.cc (Descriptors::Descriptors): Initialize new field. (Descriptors::open): Use initialize_lock_ field * errors.h (class Errors): Add initialize_lock_ field. * errors.cc (Errors::Errors): Initialize new field. (Errors::initialize_lock): Use initialize_lock_ field. * powerpc.cc (class Target_selector_powerpc): Remove instantiated_target_ field. In do_recognize call instantiate_target rather than do_instantiate_target. In do_instantiate_target just allocate a new target. * sparc.cc (class Target_selector_sparc): Likewise.
2008-03-13Update copyright years. Update language files.Ian Lance Taylor1-1/+1
2008-02-28From Craig Silverstein: Have Parameters point to General_options.Ian Lance Taylor1-2/+3
2007-11-22Add threading support.Ian Lance Taylor1-124/+151
2007-10-17Add infrastructure for threading support.Ian Lance Taylor1-11/+14
2007-09-22Add licensing text to every source file.Ian Lance Taylor1-0/+20
2006-11-29Hash tables, dynamic section, i386 PLT, gold_assert.Ian Lance Taylor1-6/+4
2006-08-04Initial CVS checkin of goldIan Lance Taylor1-0/+230