From: Martin Liska Date: Wed, 25 Nov 2020 09:11:08 +0000 (+0100) Subject: dwarf: fix language_string for C2X X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2a93fa478533908acd4595e6c1dd32885183260c;p=gcc.git dwarf: fix language_string for C2X gcc/ChangeLog: * dwarf2out.c (gen_compile_unit_die): Fix missing == 0 in a strcmp. --- diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 01e7ae183d5..bfe2d637e3f 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -24633,7 +24633,7 @@ gen_compile_unit_die (const char *filename) if (dwarf_version >= 5 /* || !dwarf_strict */) if (strcmp (language_string, "GNU C11") == 0 || strcmp (language_string, "GNU C17") == 0 - || strcmp (language_string, "GNU C2X")) + || strcmp (language_string, "GNU C2X") == 0) language = DW_LANG_C11; } }