]> sourceware.org Git - systemtap.git/commitdiff
Revert "Make dtrace generated code work with LTO"
authorWilliam Cohen <wcohen@redhat.com>
Tue, 14 Jul 2020 21:01:43 +0000 (17:01 -0400)
committerWilliam Cohen <wcohen@redhat.com>
Tue, 14 Jul 2020 21:01:43 +0000 (17:01 -0400)
This reverts commit 8212024da2ae6536a7d72f36cb688cb794cfe22e.

dtrace.in

index ac0f992ed9f72f9ebc7dcf83f35696554da4e271..aa5f544a8954c3183e281fdcb9e15702669eef16 100644 (file)
--- a/dtrace.in
+++ b/dtrace.in
@@ -58,10 +58,10 @@ class _HeaderCreator(object):
                           (this_provider, this_probe, this_probe)
         semaphores_def += '#endif\n'
         semaphores_def += '#if defined STAP_SDT_V1 || defined STAP_SDT_V2 \n'
-        semaphores_def += "__extension__ unsigned short %s_%s_semaphore __attribute__ ((used)) __attribute__ ((section (\".probes\")));\n" % \
+        semaphores_def += "__extension__ unsigned short %s_%s_semaphore __attribute__ ((unused)) __attribute__ ((section (\".probes\")));\n" % \
             (this_provider, this_probe)
         semaphores_def += '#else\n'
-        semaphores_def += "__extension__ unsigned short %s_%s_semaphore __attribute__ ((used)) __attribute__ ((section (\".probes\"))) __attribute__ ((visibility (\"hidden\")));\n" % \
+        semaphores_def += "__extension__ unsigned short %s_%s_semaphore __attribute__ ((unused)) __attribute__ ((section (\".probes\"))) __attribute__ ((visibility (\"hidden\")));\n" % \
             (this_provider, this_probe)
         semaphores_def += '#endif\n'
         return semaphores_def
@@ -102,7 +102,7 @@ class _HeaderCreator(object):
                       (this_probe_canon, this_provider, this_probe))
         probe_def += ('#endif\n')
         # NB: unsigned short is fixed in ABI
-        probe_def += ("__extension__ extern unsigned short %s_%s_semaphore __attribute__ ((used)) __attribute__ ((section (\".probes\")));\n" % \
+        probe_def += ("__extension__ extern unsigned short %s_%s_semaphore __attribute__ ((unused)) __attribute__ ((section (\".probes\")));\n" % \
                       (this_provider, this_probe))
         probe_def += (define_str + stap_str + "\n\n")
         return probe_def
This page took 0.02763 seconds and 5 git commands to generate.