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
This commit is contained in:
Aldy Hernandez 2016-10-27 17:36:36 +00:00 committed by Aldy Hernandez
parent f8da53e093
commit 015c776064
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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;