summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog12
-rw-r--r--Makefile.am4
-rw-r--r--Makefile.in4
-rw-r--r--doc/Makefile.in4
-rw-r--r--parse.h2
-rw-r--r--tapsets.cxx2
6 files changed, 20 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 5e137fe7..ca04745f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,16 @@
+2008-09-12 Frank Ch. Eigler <fche@elastic.org>
+
+ GCC 4.4 (var-tracking) build-compatilibity.
+ * parse.h: #include <stdint.h>.
+ * tapsets.cxx (utrace_...::visit_target_symbol_arg): Use
+ lex_cast<int>(foo) instead of atoi(foo.c_str()) for simpler
+ c++ object lifetime.
+ * Makefile.am (staprun_CFLAGS, stapio_CFLAGS): Add
+ -fno-strict-aliasing, since that code is too casual with pointers.
+ * Makefile.in: Regenerated.
+
2008-09-12 Dave Brolley <brolley@redhat.com>
+
PR6881.
From Eugeniy Meshcheryakov eugen@debian.org:
* stap-server.8.in: Correct formatting problems.
diff --git a/Makefile.am b/Makefile.am
index c1bcd11e..1e356a4f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -100,14 +100,14 @@ staprun_SOURCES = runtime/staprun/staprun.c runtime/staprun/staprun_funcs.c\
runtime/staprun/ctl.c runtime/staprun/common.c
staprun_CPPFLAGS = $(AM_CPPFLAGS)
-staprun_CFLAGS = @PROCFLAGS@ $(AM_CFLAGS) -DSINGLE_THREADED
+staprun_CFLAGS = @PROCFLAGS@ $(AM_CFLAGS) -DSINGLE_THREADED -fno-strict-aliasing
staprun_LDADD = @PROCFLAGS@
stapio_SOURCES = runtime/staprun/stapio.c \
runtime/staprun/mainloop.c runtime/staprun/common.c \
runtime/staprun/ctl.c \
runtime/staprun/relay.c runtime/staprun/relay_old.c
-stapio_CFLAGS = @PROCFLAGS@ $(AM_CFLAGS)
+stapio_CFLAGS = @PROCFLAGS@ $(AM_CFLAGS) -fno-strict-aliasing
stapio_LDADD = @PROCFLAGS@ -lpthread
install-exec-hook:
diff --git a/Makefile.in b/Makefile.in
index 08d82151..22336ec0 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -292,14 +292,14 @@ staprun_SOURCES = runtime/staprun/staprun.c runtime/staprun/staprun_funcs.c\
runtime/staprun/ctl.c runtime/staprun/common.c
staprun_CPPFLAGS = $(AM_CPPFLAGS)
-staprun_CFLAGS = @PROCFLAGS@ $(AM_CFLAGS) -DSINGLE_THREADED
+staprun_CFLAGS = @PROCFLAGS@ $(AM_CFLAGS) -DSINGLE_THREADED -fno-strict-aliasing
staprun_LDADD = @PROCFLAGS@
stapio_SOURCES = runtime/staprun/stapio.c \
runtime/staprun/mainloop.c runtime/staprun/common.c \
runtime/staprun/ctl.c \
runtime/staprun/relay.c runtime/staprun/relay_old.c
-stapio_CFLAGS = @PROCFLAGS@ $(AM_CFLAGS)
+stapio_CFLAGS = @PROCFLAGS@ $(AM_CFLAGS) -fno-strict-aliasing
stapio_LDADD = @PROCFLAGS@ -lpthread
loc2c_test_SOURCES = loc2c-test.c loc2c.c
loc2c_test_CPPFLAGS = $(stap_CPPFLAGS)
diff --git a/doc/Makefile.in b/doc/Makefile.in
index aed03ee2..c003c742 100644
--- a/doc/Makefile.in
+++ b/doc/Makefile.in
@@ -1,8 +1,8 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
+# Makefile.in generated by automake 1.10.1 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
diff --git a/parse.h b/parse.h
index 50b1507d..cf31f4f8 100644
--- a/parse.h
+++ b/parse.h
@@ -16,7 +16,7 @@
#include <iostream>
#include <vector>
#include <stdexcept>
-
+#include <stdint.h>
struct source_loc
{
diff --git a/tapsets.cxx b/tapsets.cxx
index 4d47dca1..f25c671c 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -5927,7 +5927,7 @@ void
utrace_var_expanding_copy_visitor::visit_target_symbol_arg (target_symbol* e)
{
string argnum_s = e->base_name.substr(4,e->base_name.length()-4);
- int argnum = atoi (argnum_s.c_str());
+ int argnum = lex_cast<int>(argnum_s);
if (flags != UDPF_SYSCALL)
throw semantic_error ("only \"process(PATH_OR_PID).syscall\" support $argN.", e->tok);