diff options
author | Jakub Jelinek <jakub@redhat.com> | 2012-06-06 20:31:06 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2012-06-06 20:31:06 +0200 |
commit | 43fa5db598b9d38420d0d66d14268aae14b0de75 (patch) | |
tree | 8ccc344a0070f21233fbb6e4c5bd176abc1fb0e8 /libgomp | |
parent | 3c6a5c3f07a77d984eaeee25449e01d179409cfd (diff) | |
download | gcc-43fa5db598b9d38420d0d66d14268aae14b0de75.zip gcc-43fa5db598b9d38420d0d66d14268aae14b0de75.tar.gz gcc-43fa5db598b9d38420d0d66d14268aae14b0de75.tar.bz2 |
re PR libgomp/52993 (gomp_init_nest_lock_25: possible bad call to memset)
PR libgomp/52993
* config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
argument to memset call.
From-SVN: r188276
Diffstat (limited to 'libgomp')
-rw-r--r-- | libgomp/ChangeLog | 6 | ||||
-rw-r--r-- | libgomp/config/linux/lock.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index f8d5739..f22c41a 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,9 @@ +2012-06-06 Jakub Jelinek <jakub@redhat.com> + + PR libgomp/52993 + * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last + argument to memset call. + 2012-05-16 H.J. Lu <hongjiu.lu@intel.com> * configure: Regenerated. diff --git a/libgomp/config/linux/lock.c b/libgomp/config/linux/lock.c index 6069343..047d8cd 100644 --- a/libgomp/config/linux/lock.c +++ b/libgomp/config/linux/lock.c @@ -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 <rth@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 |