aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2020-03-25 07:02:17 -0700
committerAndreas K. Hüttel <dilfridge@gentoo.org>2020-05-08 20:46:48 +0300
commit0eb8f3ad6a59ecd5202369fa480e2cfd1dd18db6 (patch)
treee6cb7bfbcece3b92cc9ee5c468c9d9130d54c3bb
parentplugin: Don't invoke LTO-wrapper (diff)
downloadbinutils-gdb-0eb8f3ad6a59ecd5202369fa480e2cfd1dd18db6.tar.gz
binutils-gdb-0eb8f3ad6a59ecd5202369fa480e2cfd1dd18db6.tar.bz2
binutils-gdb-0eb8f3ad6a59ecd5202369fa480e2cfd1dd18db6.zip
include: Sync lto-symtab.h and plugin-api.h with GCC
Fix comma at end of enumerator list seen with -std=c++98. * plugin-api.h (enum ld_plugin_symbol_type): Remove comma after last value of an enum. * lto-symtab.h (enum gcc_plugin_symbol_type): Likewise. (cherry picked from commit e3b1fa32c2814772e8c8c4d2788e1d342c7493d0) (cherry picked from commit 5e8619b959725c5789fbfdded2723af0c87a68af)
-rw-r--r--include/ChangeLog6
-rw-r--r--include/lto-symtab.h2
-rw-r--r--include/plugin-api.h2
3 files changed, 8 insertions, 2 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 7ce635dbe5..25acb165cb 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,5 +1,11 @@
2020-03-25 Martin Liska <mliska@suse.cz>
+ * plugin-api.h (enum ld_plugin_symbol_type): Remove
+ comma after last value of an enum.
+ * lto-symtab.h (enum gcc_plugin_symbol_type): Likewise.
+
+2020-03-25 Martin Liska <mliska@suse.cz>
+
* lto-symtab.h (enum gcc_plugin_symbol_type): New.
(enum gcc_plugin_symbol_section_kind): Likewise.
diff --git a/include/lto-symtab.h b/include/lto-symtab.h
index ef2e35f19c..81a288f5fb 100644
--- a/include/lto-symtab.h
+++ b/include/lto-symtab.h
@@ -42,7 +42,7 @@ enum gcc_plugin_symbol_type
{
GCCST_UNKNOWN,
GCCST_FUNCTION,
- GCCST_VARIABLE,
+ GCCST_VARIABLE
};
enum gcc_plugin_symbol_section_kind
diff --git a/include/plugin-api.h b/include/plugin-api.h
index f0f9667bf3..673f136ce6 100644
--- a/include/plugin-api.h
+++ b/include/plugin-api.h
@@ -141,7 +141,7 @@ enum ld_plugin_symbol_type
{
LDST_UNKNOWN,
LDST_FUNCTION,
- LDST_VARIABLE,
+ LDST_VARIABLE
};
enum ld_plugin_symbol_section_kind