From c485e4759929a9f64d36b49600626bd912dcf335 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Wed, 19 May 2021 12:08:30 +0100 Subject: [PATCH] Fix a build problem if ENABLE_CHECKING is not defined. * dwarf.c (ENABLE_CHECKING): Define to 0 if not previously set. --- binutils/ChangeLog | 4 ++++ binutils/dwarf.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 8373280aaaa..1795f4138ca 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2021-05-19 Eli Schwartz + + * dwarf.c (ENABLE_CHECKING): Define to 0 if not previously set. + 2021-05-19 Alan Modra PR 27884 diff --git a/binutils/dwarf.c b/binutils/dwarf.c index 6dd98789e28..cfc1436df64 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -41,6 +41,10 @@ #define CHAR_BIT 8 #endif +#ifndef ENABLE_CHECKING +#define ENABLE_CHECKING 0 +#endif + #undef MAX #undef MIN #define MAX(a, b) ((a) > (b) ? (a) : (b)) -- 2.30.2