Exit if we couldn't open any input files.
authorIan Lance Taylor <iant@google.com>
Fri, 26 Oct 2007 22:12:03 +0000 (22:12 +0000)
committerIan Lance Taylor <iant@google.com>
Fri, 26 Oct 2007 22:12:03 +0000 (22:12 +0000)
gold/gold.cc

index 86fc8e6847c72722965a9c29748b03cef2fd2279..b64a97e97b601b277b69762406f452c269ffdc6e 100644 (file)
@@ -161,6 +161,13 @@ queue_middle_tasks(const General_options& options,
                   Layout* layout,
                   Workqueue* workqueue)
 {
+  if (input_objects->number_of_input_objects() == 0)
+    {
+      // We had some input files, but we weren't able to open any of
+      // them.
+      gold_fatal(_("no input files"));
+    }
+
   int thread_count = options.thread_count_middle();
   if (thread_count == 0)
     {
This page took 0.024549 seconds and 4 git commands to generate.