rpms/valgrind/devel valgrind-3.4.1-cachegrind-improvements.patch, NONE, 1.1 valgrind-3.4.1-openat.patch, NONE, 1.1 .cvsignore, 1.14, 1.15 sources, 1.14, 1.15 valgrind.spec, 1.61, 1.62 valgrind-3.4.0-cachegrind-improvements.patch, 1.2, NONE valgrind-3.4.0-debug.patch, 1.1, NONE valgrind-3.4.0-newbu.patch, 1.1, NONE valgrind-3.4.0-openat.patch, 1.1, NONE valgrind-3.4.0-pkg-config.patch, 1.1, NONE valgrind-3.4.0-power5+-6.patch, 1.2, NONE

Jakub Jelinek jakub at fedoraproject.org
Mon Mar 9 12:51:14 UTC 2009


Author: jakub

Update of /cvs/pkgs/rpms/valgrind/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv12185

Modified Files:
	.cvsignore sources valgrind.spec 
Added Files:
	valgrind-3.4.1-cachegrind-improvements.patch 
	valgrind-3.4.1-openat.patch 
Removed Files:
	valgrind-3.4.0-cachegrind-improvements.patch 
	valgrind-3.4.0-debug.patch valgrind-3.4.0-newbu.patch 
	valgrind-3.4.0-openat.patch valgrind-3.4.0-pkg-config.patch 
	valgrind-3.4.0-power5+-6.patch 
Log Message:
3.4.1-1

valgrind-3.4.1-cachegrind-improvements.patch:

--- NEW FILE valgrind-3.4.1-cachegrind-improvements.patch ---
--- valgrind-3.4.0/cachegrind/cg_sim.c.jj	2007-01-08 02:43:10.000000000 -0500
+++ valgrind-3.4.0/cachegrind/cg_sim.c	2007-02-13 07:15:46.000000000 -0500
@@ -42,27 +42,30 @@ typedef struct {
    Int          size;                   /* bytes */
    Int          assoc;
    Int          line_size;              /* bytes */
-   Int          sets;
    Int          sets_min_1;
    Int          line_size_bits;
    Int          tag_shift;
-   Char         desc_line[128];
    UWord*       tags;
-} cache_t2;
+   Char         desc_line[128];
+} cache_t2
+#ifdef __GNUC__
+__attribute__ ((aligned (8 * sizeof (Int))))
+#endif
+;
 
 /* By this point, the size/assoc/line_size has been checked. */
 static void cachesim_initcache(cache_t config, cache_t2* c)
 {
-   Int i;
+   Int sets;
 
    c->size      = config.size;
    c->assoc     = config.assoc;
    c->line_size = config.line_size;
 
-   c->sets           = (c->size / c->line_size) / c->assoc;
-   c->sets_min_1     = c->sets - 1;
+   sets              = (c->size / c->line_size) / c->assoc;
+   c->sets_min_1     = sets - 1;
    c->line_size_bits = VG_(log2)(c->line_size);
-   c->tag_shift      = c->line_size_bits + VG_(log2)(c->sets);
+   c->tag_shift      = c->line_size_bits + VG_(log2)(sets);
 
    if (c->assoc == 1) {
       VG_(sprintf)(c->desc_line, "%d B, %d B, direct-mapped", 
@@ -72,11 +75,8 @@ static void cachesim_initcache(cache_t c
                                  c->size, c->line_size, c->assoc);
    }
 
-   c->tags = VG_(malloc)("cg.sim.ci.1",
-                         sizeof(UWord) * c->sets * c->assoc);
-
-   for (i = 0; i < c->sets * c->assoc; i++)
-      c->tags[i] = 0;
+   c->tags = VG_(calloc)("cg.sim.ci.1",
+                         sizeof(UWord), sets * c->assoc);
 }
 
 /* This is done as a macro rather than by passing in the cache_t2 as an 
@@ -138,8 +138,7 @@ void cachesim_##L##_doref(Addr a, UChar 
       return;                                                               \
                                                                             \
    /* Second case: word straddles two lines. */                             \
-   /* Nb: this is a fast way of doing ((set1+1) % L.sets) */                \
-   } else if (((set1 + 1) & (L.sets-1)) == set2) {                          \
+   } else if (((set1 + 1) & (L.sets_min_1)) == set2) {                      \
       set = &(L.tags[set1 * L.assoc]);                                      \
       if (tag == set[0]) {                                                  \
          goto block2;                                                       \

valgrind-3.4.1-openat.patch:

--- NEW FILE valgrind-3.4.1-openat.patch ---
Testcase:
#define _GNU_SOURCE
#include <fcntl.h>
#include <unistd.h>

int
main (void)
{
  int dfd = open ("/tmp", O_RDONLY);
  int fd1 = openat (dfd, "abc", O_RDONLY);
  int fd2 = openat (0x12345678, "/tmp/abc", O_RDONLY);
  int fd3 = openat (AT_FDCWD, "abc", O_RDONLY);
  /* This is the only one that should warn.  */
  int fd4 = openat (0x12345678, "abc", O_RDONLY);
  return 0;
}

--- valgrind-3.3.0/coregrind/m_syswrap/syswrap-linux.c.jj	2007-12-11 00:18:43.000000000 +0100
+++ valgrind-3.3.0/coregrind/m_syswrap/syswrap-linux.c	2008-03-03 11:35:15.000000000 +0100
@@ -2455,10 +2455,15 @@ PRE(sys_openat)
                     int, dfd, const char *, filename, int, flags);
    }
 
-   if (ARG1 != VKI_AT_FDCWD && !ML_(fd_allowed)(ARG1, "openat", tid, False))
+   PRE_MEM_RASCIIZ( "openat(filename)", ARG2 );
+
+   /* For absolute filenames, dfd is ignored.  If dfd is AT_FDCWD,
+      filename is relative to cwd.  */
+   if (ML_(safe_to_deref)( (void*)ARG2, 1 )
+       && *(Char *)ARG2 != '/'
+       && ARG1 != VKI_AT_FDCWD
+       && !ML_(fd_allowed)(ARG1, "openat", tid, False))
       SET_STATUS_Failure( VKI_EBADF );
-   else
-      PRE_MEM_RASCIIZ( "openat(filename)", ARG2 );
 
    /* Handle the case where the open is of /proc/self/cmdline or
       /proc/<pid>/cmdline, and just give it a copy of the fd for the


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/valgrind/devel/.cvsignore,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- .cvsignore	7 Feb 2009 11:51:27 -0000	1.14
+++ .cvsignore	9 Mar 2009 12:50:44 -0000	1.15
@@ -1 +1 @@
-valgrind-3.4.0.tar.bz2
+valgrind-3.4.1.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/valgrind/devel/sources,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- sources	7 Feb 2009 11:51:27 -0000	1.14
+++ sources	9 Mar 2009 12:50:44 -0000	1.15
@@ -1 +1 @@
-1b0fe1219e1a583ff8c2db54ed2265e6  valgrind-3.4.0.tar.bz2
+b5f039dd2271aaf9ae570ab4116f87c7  valgrind-3.4.1.tar.bz2


Index: valgrind.spec
===================================================================
RCS file: /cvs/pkgs/rpms/valgrind/devel/valgrind.spec,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -r1.61 -r1.62
--- valgrind.spec	25 Feb 2009 23:44:24 -0000	1.61
+++ valgrind.spec	9 Mar 2009 12:50:44 -0000	1.62
@@ -1,14 +1,11 @@
 Summary: Tool for finding memory management bugs in programs
 Name: valgrind
-Version: 3.4.0
-Release: 4
+Version: 3.4.1
+Release: 1
 Epoch: 1
 Source0: http://www.valgrind.org/downloads/valgrind-%{version}.tar.bz2
-Patch1: valgrind-3.4.0-cachegrind-improvements.patch
-Patch2: valgrind-3.4.0-pkg-config.patch
-Patch3: valgrind-3.4.0-openat.patch
-Patch4: valgrind-3.4.0-newbu.patch
-Patch5: valgrind-3.4.0-debug.patch
+Patch1: valgrind-3.4.1-cachegrind-improvements.patch
+Patch2: valgrind-3.4.1-openat.patch
 License: GPLv2
 URL: http://www.valgrind.org/
 Group: Development/Debuggers
@@ -18,7 +15,7 @@
 # Ensure glibc{,-devel} is installed for both multilib arches
 BuildRequires: /lib/libc.so.6 /usr/lib/libc.so /lib64/libc.so.6 /usr/lib64/libc.so
 %endif
-BuildRequires: glibc-devel >= 2.8
+BuildRequires: glibc-devel >= 2.9
 ExclusiveArch: %{ix86} x86_64 ppc ppc64
 %ifarch %{ix86}
 %define valarch x86
@@ -64,9 +61,6 @@
 %setup -q
 %patch1 -p1
 %patch2 -p1
-%patch3 -p1
-%patch4 -p1
-%patch5 -p1
 
 %build
 %ifarch x86_64 ppc64
@@ -157,8 +151,8 @@
 %{_libdir}/pkgconfig/*
 
 %changelog
-* Wed Feb 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1:3.4.0-4
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+* Mon Mar  9 2009 Jakub Jelinek <jakub at redhat.com> 3.4.1-1
+- update to 3.4.1
 
 * Tue Feb  9 2009 Jakub Jelinek <jakub at redhat.com> 3.4.0-3
 - update to 3.4.0


--- valgrind-3.4.0-cachegrind-improvements.patch DELETED ---


--- valgrind-3.4.0-debug.patch DELETED ---


--- valgrind-3.4.0-newbu.patch DELETED ---


--- valgrind-3.4.0-openat.patch DELETED ---


--- valgrind-3.4.0-pkg-config.patch DELETED ---


--- valgrind-3.4.0-power5+-6.patch DELETED ---




More information about the fedora-extras-commits mailing list