Hi!

This is a Linux only file, on which GNU symbol versioning should
be supported, therefore this code isn't compiled in, so not severe
enough to backport.

Fixed on the trunk.

2012-06-06  Jakub Jelinek  <ja...@redhat.com>

        PR libgomp/52993
        * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
        argument to memset call.

--- libgomp/config/linux/lock.c.jj      2011-12-03 12:22:30.000000000 +0100
+++ libgomp/config/linux/lock.c 2012-06-06 20:25:45.390550556 +0200
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005, 2008, 2009, 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2005, 2008, 2009, 2011, 2012 Free Software Foundation, Inc.
    Contributed by Richard Henderson <r...@redhat.com>.
 
    This file is part of the GNU OpenMP Library (libgomp).
@@ -175,7 +175,7 @@ static inline int gomp_tid (void)
 void
 gomp_init_nest_lock_25 (omp_nest_lock_25_t *lock)
 {
-  memset (lock, 0, sizeof (lock));
+  memset (lock, 0, sizeof (*lock));
 }
 
 void

        Jakub

Reply via email to