aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2016-10-27 17:36:36 +0000
committerAldy Hernandez <aldyh@gcc.gnu.org>2016-10-27 17:36:36 +0000
commit015c776064d1ea93a71730ba4c3bad43675656ea (patch)
tree01b90883dd43480c1c6d23993e80ae6703e606f0
parentf8da53e09357859d707925e770348636b19206a7 (diff)
downloadgcc-015c776064d1ea93a71730ba4c3bad43675656ea.zip
gcc-015c776064d1ea93a71730ba4c3bad43675656ea.tar.gz
gcc-015c776064d1ea93a71730ba4c3bad43675656ea.tar.bz2
oacc-init.c (goacc_new_thread): Use sizeof of the appropriate size when allocating new thread.
* oacc-init.c (goacc_new_thread): Use sizeof of the appropriate size when allocating new thread. From-SVN: r241627
-rw-r--r--libgomp/ChangeLog5
-rw-r--r--libgomp/oacc-init.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog
index e7749b2..50865d1 100644
--- a/libgomp/ChangeLog
+++ b/libgomp/ChangeLog
@@ -1,3 +1,8 @@
+2016-10-27 Aldy Hernandez <aldyh@redhat.com>
+
+ * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
+ size when allocating new thread.
+
2016-09-14 Marek Polacek <polacek@redhat.com>
* testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
diff --git a/libgomp/oacc-init.c b/libgomp/oacc-init.c
index f2325ad..83920b52 100644
--- a/libgomp/oacc-init.c
+++ b/libgomp/oacc-init.c
@@ -325,7 +325,7 @@ acc_shutdown_1 (acc_device_t d)
static struct goacc_thread *
goacc_new_thread (void)
{
- struct goacc_thread *thr = gomp_malloc (sizeof (struct gomp_thread));
+ struct goacc_thread *thr = gomp_malloc (sizeof (struct goacc_thread));
#if defined HAVE_TLS || defined USE_EMUTLS
goacc_tls_data = thr;