PowerPC SPE/SPE2 aliases in powerpc_macros
[binutils-gdb.git] / gold / errors.h
index a8f823d1ff53873bd48be49d64e29b9811d9379b..85c35b79ca7f1167390804dc2e7050c5ab6f14c7 100644 (file)
@@ -1,6 +1,6 @@
 // errors.h -- handle errors for gold  -*- C++ -*-
 
-// Copyright 2006, 2007, 2008 Free Software Foundation, Inc.
+// Copyright (C) 2006-2022 Free Software Foundation, Inc.
 // Written by Ian Lance Taylor <iant@google.com>.
 
 // This file is part of gold.
@@ -24,6 +24,7 @@
 #define GOLD_ERRORS_H
 
 #include <cstdarg>
+#include <string>
 
 #include "gold-threads.h"
 
@@ -49,6 +50,12 @@ class Errors
   void
   fatal(const char* format, va_list) ATTRIBUTE_NORETURN;
 
+  // Report a fallback error.  After printing the error, this must exit
+  // with a special status code indicating that fallback to
+  // --incremental-full is required.
+  void
+  fallback(const char* format, va_list) ATTRIBUTE_NORETURN;
+
   // Report an error and continue.
   void
   error(const char* format, va_list);
@@ -61,6 +68,10 @@ class Errors
   void
   info(const char* format, va_list);
 
+  // Print a trace message and continue.
+  void
+  trace(const char* format, va_list);
+
   // Report an error at a reloc location.
   template<int size, bool big_endian>
   void