[PATCH 2/2] configure: Set debug information level to 1

André Hentschel nerv at dawncrow.de
Mon Jul 2 08:53:12 CDT 2018


Newer clang versions (>3.7) default to output more information than our dwarf parser can correctly handle. Using -g1 fixes the issue so that the bug fixed in patch 1 would be hidden again.
This patch avoids other problems and FIXMEs like:

002d:fixme:dbghelp_dwarf:dwarf2_parse_variable Unsupported constant (parameter) code in function
002d:fixme:dbghelp_dwarf:valid_reg unsupported reg 48
002d:fixme:dbghelp_dwarf:valid_reg unsupported reg 49
002d:fixme:dbghelp_dwarf:valid_reg unsupported reg 4a
002d:fixme:dbghelp_dwarf:dwarf2_parse_variable Unsupported constant (parameter) valueNameSize in function
002d:fixme:dbghelp_dwarf:dwarf2_parse_variable Unsupported constant (parameter) valueDataSize in function
002d:fixme:dbghelp_dwarf:dwarf2_parse_variable Unsupported constant (parameter) flags in function
01e2:fixme:dbghelp_dwarf:dwarf2_parse_variable Unsupported constant (parameter) xread in function
01e2:fixme:dbghelp_dwarf:dwarf2_parse_variable Unsupported constant (parameter) len in function
01e2:fixme:dbghelp_dwarf:dwarf2_parse_variable Unsupported constant (parameter) cchPath in function
01e2:fixme:dbghelp_dwarf:dwarf2_parse_variable Unsupported constant (parameter) ch in function
01e2:fixme:dbghelp_dwarf:dwarf2_parse_variable Unsupported constant (parameter) n in function
01e2:fixme:dbghelp_dwarf:dwarf2_parse_variable Unsupported constant (parameter) dn in function
01e2:fixme:dbghelp_dwarf:dwarf2_parse_variable Unsupported constant (parameter) xSrc in function
01e2:fixme:dbghelp_dwarf:dwarf2_parse_variable Unsupported constant (parameter) ySrc in function


Reported-by: Austin English <austinenglish at gmail.com>
Signed-off-by: André Hentschel <nerv at dawncrow.de>
---
 configure.ac | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index d10acde..b85bdc8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1932,7 +1932,8 @@ char*f(const char *h,char n) {return strchr(h,n);}]])],[ac_cv_c_logicalop_noisy=
   for ac_flag in $CFLAGS; do
     case $ac_flag in
       -g) WINE_TRY_CFLAGS([-gdwarf-2])
-          WINE_TRY_CFLAGS([-gstrict-dwarf]) ;;
+          WINE_TRY_CFLAGS([-gstrict-dwarf])
+          WINE_TRY_CFLAGS([-g1],[CFLAGS="$CFLAGS -g1"]) ;;
     esac
   done
 
-- 
2.7.4




More information about the wine-devel mailing list