]> git.ipfire.org Git - thirdparty/gcc.git/commit
lto-plugin: implement LDPT_GET_API_VERSION
authorMartin Liska <mliska@suse.cz>
Mon, 16 May 2022 12:01:52 +0000 (14:01 +0200)
committerMartin Liska <mliska@suse.cz>
Tue, 12 Jul 2022 13:26:57 +0000 (15:26 +0200)
commit32a753506be1d5265b657b4b80aeeae57871bb4c
treeeb50699ea250c8520a588c3647d5be909f69b635
parent00eab0c654e09c8a0f1b1a3b1c7bff8764e64991
lto-plugin: implement LDPT_GET_API_VERSION

include/ChangeLog:

* plugin-api.h (enum linker_api_version): New enum.
(ld_plugin_get_api_version): New.
(enum ld_plugin_tag): Add LDPT_GET_API_VERSION.
(struct ld_plugin_tv): Add tv_get_api_version.

lto-plugin/ChangeLog:

* lto-plugin.c (negotiate_api_version): New.
(onload): Negotiate API version.
* Makefile.am: Add -DBASE_VERSION.
* Makefile.in: Regenerate.
include/plugin-api.h
lto-plugin/Makefile.am
lto-plugin/Makefile.in
lto-plugin/lto-plugin.c