public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/marxin/heads/lto-plugin-supports-get_symbols_v3)] lto-plugin: add support for feature detection
@ 2022-05-04 12:41 Martin Liska
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Liska @ 2022-05-04 12:41 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:7b5acd79a749e50bc825a49b283d4f9e82a5e1b5

commit 7b5acd79a749e50bc825a49b283d4f9e82a5e1b5
Author: Martin Liska <mliska@suse.cz>
Date:   Tue Mar 1 12:27:45 2022 +0100

    lto-plugin: add support for feature detection
    
    lto-plugin/ChangeLog:
    
            * lto-plugin.c (supports_get_symbols_v3): Add symbol and
            initialize it to true;
    
    lto-plugin/ChangeLog:
    
            * lto-plugin.map: Add supports_get_symbols_v3 symbol.

Diff:
---
 lto-plugin/lto-plugin.c   | 5 +++++
 lto-plugin/lto-plugin.map | 5 ++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/lto-plugin/lto-plugin.c b/lto-plugin/lto-plugin.c
index 47378435612..6aac5867066 100644
--- a/lto-plugin/lto-plugin.c
+++ b/lto-plugin/lto-plugin.c
@@ -1554,3 +1554,8 @@ onload (struct ld_plugin_tv *tv)
 
   return LDPS_OK;
 }
+
+/* Presence of the following symbols is used for dynamic detection of plug-in features
+   from linker side.  */
+
+bool supports_get_symbols_v3 = true;
diff --git a/lto-plugin/lto-plugin.map b/lto-plugin/lto-plugin.map
index 3d60e71cc2d..42dc50a819c 100644
--- a/lto-plugin/lto-plugin.map
+++ b/lto-plugin/lto-plugin.map
@@ -1,3 +1,6 @@
 {
-  global: onload; local: *;
+  global: onload;
+          supports_get_symbols_v3;
+
+  local: *;
 };


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gcc(refs/users/marxin/heads/lto-plugin-supports-get_symbols_v3)] lto-plugin: add support for feature detection
@ 2022-05-04 12:17 Martin Liska
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Liska @ 2022-05-04 12:17 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:ac20a4285c8bce7796f786dcb429eae0fea22bf7

commit ac20a4285c8bce7796f786dcb429eae0fea22bf7
Author: Martin Liska <mliska@suse.cz>
Date:   Tue Mar 1 12:27:45 2022 +0100

    lto-plugin: add support for feature detection
    
    lto-plugin/ChangeLog:
    
            * lto-plugin.c (supports_get_symbols_v3): Add symbol.

Diff:
---
 lto-plugin/lto-plugin.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lto-plugin/lto-plugin.c b/lto-plugin/lto-plugin.c
index 47378435612..049f3841d5b 100644
--- a/lto-plugin/lto-plugin.c
+++ b/lto-plugin/lto-plugin.c
@@ -1554,3 +1554,8 @@ onload (struct ld_plugin_tv *tv)
 
   return LDPS_OK;
 }
+
+/* The following symbols are used for dynamic detection of plug-in features
+   from linker side.  */
+
+bool supports_get_symbols_v3;


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-04 12:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-04 12:41 [gcc(refs/users/marxin/heads/lto-plugin-supports-get_symbols_v3)] lto-plugin: add support for feature detection Martin Liska
  -- strict thread matches above, loose matches on Subject: below --
2022-05-04 12:17 Martin Liska

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).