projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55ebb0d
)
dwarf: fix language_string for C2X
author
Martin Liska
<mliska@suse.cz>
Wed, 25 Nov 2020 09:11:08 +0000
(10:11 +0100)
committer
Martin 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
patch
|
blob
|
history
diff --git
a/gcc/dwarf2out.c
b/gcc/dwarf2out.c
index 01e7ae183d51110afd22d85771f1943cc750cded..bfe2d637e3fed132019a1358a535132e2520cb16 100644
(file)
--- 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;
}
}