From: Jan Kratochvil Date: Thu, 2 Mar 2017 09:58:19 +0000 (+0100) Subject: New debug_displays_assert X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b451e98a909e1a6afa71c4a4655adc4cfeea5249;p=binutils-gdb.git New debug_displays_assert binutils/ 2017-03-02 Jan Kratochvil * dwarf.c (debug_displays_assert): New static assertion. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 24c74a18d74..fa33a4312bc 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2017-03-02 Jan Kratochvil + + * dwarf.c (debug_displays_assert): New static assertion. + 2017-03-02 Jan Kratochvil * dwarf.h (enum dwarf_section_display_enum): Add loclists and rnglists. diff --git a/binutils/dwarf.c b/binutils/dwarf.c index ad0bfcfa4f3..fdfbc16e887 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -8591,3 +8591,6 @@ struct dwarf_section_display debug_displays[] = { { ".debug_tu_index", "", NULL, NULL, 0, 0, 0, NULL, 0, NULL }, display_cu_index, &do_debug_cu_index, FALSE }, }; + +/* A static assertion. */ +extern int debug_displays_assert[ARRAY_SIZE (debug_displays) == max ? 1 : -1];