mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 15:18:37 +08:00
* gold.cc (queue_middle_tasks): If no input files were opened,
exit. * workqueue.h (Task_function::Task_function): Assert that there is a blocker.
This commit is contained in:
@ -1,3 +1,11 @@
|
|||||||
|
2010-02-23 Viktor Kutuzov <vkutuzov@accesssoftek.com>
|
||||||
|
Ian Lance Taylor <iant@google.com>
|
||||||
|
|
||||||
|
* gold.cc (queue_middle_tasks): If no input files were opened,
|
||||||
|
exit.
|
||||||
|
* workqueue.h (Task_function::Task_function): Assert that there is
|
||||||
|
a blocker.
|
||||||
|
|
||||||
2010-02-22 Doug Kwan <dougkwan@google.com>
|
2010-02-22 Doug Kwan <dougkwan@google.com>
|
||||||
|
|
||||||
* gold-threads.h (Once::~Once): Explicitly define virtual destructor.
|
* gold-threads.h (Once::~Once): Explicitly define virtual destructor.
|
||||||
|
@ -532,6 +532,15 @@ queue_middle_tasks(const General_options& options,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If we failed to open any input files, it's possible for
|
||||||
|
// THIS_BLOCKER to be NULL here. There's no real point in
|
||||||
|
// continuing if that happens.
|
||||||
|
if (this_blocker == NULL)
|
||||||
|
{
|
||||||
|
gold_assert(parameters->errors()->error_count() > 0);
|
||||||
|
gold_exit(false);
|
||||||
|
}
|
||||||
|
|
||||||
// When all those tasks are complete, we can start laying out the
|
// When all those tasks are complete, we can start laying out the
|
||||||
// output file.
|
// output file.
|
||||||
// TODO(csilvers): figure out a more principled way to get the target
|
// TODO(csilvers): figure out a more principled way to get the target
|
||||||
|
@ -152,7 +152,7 @@ class Task_function : public Task
|
|||||||
Task_function(Task_function_runner* runner, Task_token* blocker,
|
Task_function(Task_function_runner* runner, Task_token* blocker,
|
||||||
const char* name)
|
const char* name)
|
||||||
: runner_(runner), blocker_(blocker), name_(name)
|
: runner_(runner), blocker_(blocker), name_(name)
|
||||||
{ }
|
{ gold_assert(blocker != NULL); }
|
||||||
|
|
||||||
~Task_function()
|
~Task_function()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user