New debug_displays_assert
authorJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 2 Mar 2017 09:58:19 +0000 (10:58 +0100)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 2 Mar 2017 09:58:19 +0000 (10:58 +0100)
binutils/
2017-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>

* dwarf.c (debug_displays_assert): New static assertion.

binutils/ChangeLog
binutils/dwarf.c

index 24c74a18d74fe967d90369030847d31cec691ab5..fa33a4312bc813327412d2cd93411042ea8ffd41 100644 (file)
@@ -1,3 +1,7 @@
+2017-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * dwarf.c (debug_displays_assert): New static assertion.
+
 2017-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * dwarf.h (enum dwarf_section_display_enum): Add loclists and rnglists.
index ad0bfcfa4f35088abc0dad8d28b3e227571834aa..fdfbc16e88723255a12ec20e2be60ce20ea6bb5f 100644 (file)
@@ -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];
This page took 0.030047 seconds and 4 git commands to generate.