Author: dirk
Date: 2007-11-26 15:15:40 +0000 (Mon, 26 Nov 2007)
New Revision: 7227

Log:
backport minimal glibc 2.7 support

Added:
   branches/VALGRIND_3_2_BRANCH/glibc-2.7.supp
Modified:
   branches/VALGRIND_3_2_BRANCH/Makefile.am
   branches/VALGRIND_3_2_BRANCH/configure.in


Modified: branches/VALGRIND_3_2_BRANCH/Makefile.am
===================================================================
--- branches/VALGRIND_3_2_BRANCH/Makefile.am    2007-11-26 14:54:36 UTC (rev 
7226)
+++ branches/VALGRIND_3_2_BRANCH/Makefile.am    2007-11-26 15:15:40 UTC (rev 
7227)
@@ -18,6 +18,7 @@
 
 SUPP_FILES = \
        glibc-2.2.supp glibc-2.3.supp glibc-2.4.supp glibc-2.5.supp \
+       glibc-2.6.supp glibc-2.7.supp \
        xfree-3.supp xfree-4.supp
 
 dist_val_DATA = $(SUPP_FILES) default.supp

Modified: branches/VALGRIND_3_2_BRANCH/configure.in
===================================================================
--- branches/VALGRIND_3_2_BRANCH/configure.in   2007-11-26 14:54:36 UTC (rev 
7226)
+++ branches/VALGRIND_3_2_BRANCH/configure.in   2007-11-26 15:15:40 UTC (rev 
7227)
@@ -369,6 +369,16 @@
 ],
 glibc="2.6")
 
+AC_EGREP_CPP([GLIBC_27], [
+#include <features.h>
+#ifdef __GNU_LIBRARY__
+ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 7)
+  GLIBC_27
+ #endif
+#endif
+],
+glibc="2.7")
+
 AC_MSG_CHECKING([the glibc version])
 
 case "${glibc}" in
@@ -401,10 +411,15 @@
        AC_DEFINE([GLIBC_2_5], 1, [Define to 1 if you're using glibc 2.5.x])
        DEFAULT_SUPP="glibc-2.6.supp ${DEFAULT_SUPP}"
        ;;
-
+     2.7)
+        AC_MSG_RESULT(2.7 family)
+        AC_DEFINE([GLIBC_2_7], 1, [Define to 1 if you're using glibc 2.7.x])
+        DEFAULT_SUPP="glibc-2.7.supp ${DEFAULT_SUPP}"
+        DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
+       ;;
      *)
        AC_MSG_RESULT(unsupported version)
-       AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.6])
+       AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.7])
        ;;
 esac
 

Added: branches/VALGRIND_3_2_BRANCH/glibc-2.7.supp
===================================================================
--- branches/VALGRIND_3_2_BRANCH/glibc-2.7.supp                         (rev 0)
+++ branches/VALGRIND_3_2_BRANCH/glibc-2.7.supp 2007-11-26 15:15:40 UTC (rev 
7227)
@@ -0,0 +1,30 @@
+
+# Errors to suppress by default with glibc 2.7.x
+
+# Format of this file is:
+# {
+#     name_of_suppression
+#     tool_name:supp_kind
+#     (optional extra info for some suppression types)
+#     caller0 name, or /name/of/so/file.so
+#     caller1 name, or ditto
+#     (optionally: caller2 name)
+#     (optionally: caller3 name)
+#  }
+#
+# For Memcheck, the supp_kinds are:
+#
+#     Param Value1 Value2 Value4 Value8 Value16 Jump
+#     Free Addr1 Addr2 Addr4 Addr8 Addr16
+#     Cond (previously known as Value0)
+#
+# and the optional extra info is:
+#     if Param: name of system call param
+
+{
+   dl-hack3-1
+   Memcheck:Cond
+   obj:/lib*/ld-2.7*.so*
+   obj:/lib*/ld-2.7*.so*
+   obj:/lib*/ld-2.7*.so*
+}


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Valgrind-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-developers

Reply via email to