From: Andreas Sandberg Date: Wed, 13 Aug 2014 10:57:27 +0000 (-0400) Subject: base: Remove unused M5_PRAGMA_NORETURN X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eb9226317d792b89a3ceed9b7653cc76953c2f06;p=gem5.git base: Remove unused M5_PRAGMA_NORETURN The M5_PRAGMA_NORETURN macro was only used in for __exit_message. Since the macro only holds a stub definition and all functions with noreturn semantics use the M5_ATTR_NORETURN, this macros is completely redundant. --- diff --git a/src/base/compiler.hh b/src/base/compiler.hh index a16667d8d..0e3c85a78 100644 --- a/src/base/compiler.hh +++ b/src/base/compiler.hh @@ -47,7 +47,6 @@ #if defined(__GNUC__) #define M5_ATTR_NORETURN __attribute__((noreturn)) -#define M5_PRAGMA_NORETURN(x) #define M5_DUMMY_RETURN #define M5_VAR_USED __attribute__((unused)) diff --git a/src/base/misc.hh b/src/base/misc.hh index 82fe8c4c0..de44dc3f5 100644 --- a/src/base/misc.hh +++ b/src/base/misc.hh @@ -71,7 +71,6 @@ __exit_message(const char *prefix, int code, VARARGS_ALLARGS); } -M5_PRAGMA_NORETURN(__exit_message) #define exit_message(prefix, code, ...) \ __exit_message(prefix, code, __FUNCTION__, __FILE__, __LINE__, \ __VA_ARGS__)