[Bug runtime/32735] New: Add compatibility for GCC versions earlier than 5
lijunlong at openresty dot com
sourceware-bugzilla@sourceware.org
Sat Feb 22 01:02:10 GMT 2025
https://sourceware.org/bugzilla/show_bug.cgi?id=32735
Bug ID: 32735
Summary: Add compatibility for GCC versions earlier than 5
Product: systemtap
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: runtime
Assignee: systemtap at sourceware dot org
Reporter: lijunlong at openresty dot com
Target Milestone: ---
Created attachment 15970
--> https://sourceware.org/bugzilla/attachment.cgi?id=15970&action=edit
patch for runtime/runtime.h
Add compatibility for GCC versions earlier than 5
This patch introduces a compatibility fix for GCC versions
prior to 5. It conditionally defines the __counted_by macro
based on the GCC version:
- For GCC versions earlier than 5, __counted_by is defined
as an empty macro.
- For GCC 5 and later, the existing logic for defining
__counted_by is preserved.
This change ensures that the code compiles correctly on
older GCC versions while maintaining the existing behavior
for more recent compiler versions.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Systemtap
mailing list