dwarf: fix language_string for C2X
authorMartin Liska <mliska@suse.cz>
Wed, 25 Nov 2020 09:11:08 +0000 (10:11 +0100)
committerMartin Liska <mliska@suse.cz>
Thu, 26 Nov 2020 13:11:08 +0000 (14:11 +0100)
gcc/ChangeLog:

* dwarf2out.c (gen_compile_unit_die): Fix missing == 0 in a
strcmp.

gcc/dwarf2out.c

index 01e7ae183d51110afd22d85771f1943cc750cded..bfe2d637e3fed132019a1358a535132e2520cb16 100644 (file)
@@ -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;
        }
     }