summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStan Cox <scox@redhat.com>2010-03-09 14:57:41 -0500
committerStan Cox <scox@redhat.com>2010-03-09 14:57:41 -0500
commit103c7c8d4bd48d81e06491da43c7e05ccacfb224 (patch)
treed82aa8b9dcdbe732efb0fe375be97ee96068edcf
parent962906a7bb0696f6e17a2f9fed0e6072627c1a71 (diff)
downloadsystemtap-steved-103c7c8d4bd48d81e06491da43c7e05ccacfb224.tar.gz
systemtap-steved-103c7c8d4bd48d81e06491da43c7e05ccacfb224.tar.xz
systemtap-steved-103c7c8d4bd48d81e06491da43c7e05ccacfb224.zip
Check the gcc version using polynomial representation.
* sdt.h (GNUC_VERSION): New.
-rw-r--r--NEWS3
-rw-r--r--includes/sys/sdt.h3
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 8e33631d..bd65b2a3 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,8 @@
* What's new
+- User space marker arguments no longer use volatile if richer DWARF debuginfo
+ is available.
+
- A new construct for error handling is available. It is similar to c++
exception catching, using try and catch as new keywords. Within a handler
or function, the following is valid and may be nested:
diff --git a/includes/sys/sdt.h b/includes/sys/sdt.h
index f7673130..314f9cc1 100644
--- a/includes/sys/sdt.h
+++ b/includes/sys/sdt.h
@@ -80,7 +80,8 @@
#define STAP_UPROBE_GUARD 0x31425250
-#if __GNUC__ >= 4 && __GNUC_MINOR__ >= 4 && __GNUC_PATCHLEVEL__ >= 3
+#define GNUC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
+#if GNUC_VERSION >= 40403
#define VOLATILE_ARG
#else
#define VOLATILE_ARG volatile