From: Arnaud Giersch Date: Wed, 21 Jul 2021 13:21:47 +0000 (+0200) Subject: Use workaround only for versions of libdw known to be broken. X-Git-Tag: v3.29~187 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/c0b408575637a84b6f7d2657a2a61d78f392f70b Use workaround only for versions of libdw known to be broken. --- diff --git a/teshsuite/mc/dwarf/dwarf.cpp b/teshsuite/mc/dwarf/dwarf.cpp index b3fe240bcc..35208b3d6f 100644 --- a/teshsuite/mc/dwarf/dwarf.cpp +++ b/teshsuite/mc/dwarf/dwarf.cpp @@ -20,9 +20,14 @@ #include #include -// Test broken with multi-dimensional arrays. See https://sourceware.org/bugzilla/show_bug.cgi?id=22546 -// int test_some_array[4][5][6]; +#include +#if _ELFUTILS_VERSION < 171 +// Elder elfutils/libdw broken with multi-dimensional arrays. See https://sourceware.org/bugzilla/show_bug.cgi?id=22546 int test_some_array[4 * 5 * 6]; +#else +int test_some_array[4][5][6]; +#endif + struct some_struct { int first; int second[4][5];