Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2018-04-13 22:42:37 +0300
committerJeff Johnston <jjohnstn@redhat.com>2018-04-13 22:42:37 +0300
commitcd31fbb2aea25f94d7ecedc9db16dfc87ab0c316 (patch)
treeff9b070c8bd34c5c9bc77f4d4c18aab41b919acf /newlib/libc/stdlib/__atexit.c
parente206c39bb6bf91808dbcd2cfbd572525825982cd (diff)
Add nvptx port.
- From: Cesar Philippidis <cesar@codesourcery.com> Date: Tue, 10 Apr 2018 14:43:42 -0700 Subject: [PATCH] nvptx port This port adds support for Nvidia GPU's, which are primarily used as offload accelerators in OpenACC and OpenMP.
Diffstat (limited to 'newlib/libc/stdlib/__atexit.c')
-rw-r--r--newlib/libc/stdlib/__atexit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/stdlib/__atexit.c b/newlib/libc/stdlib/__atexit.c
index 18e47dc95..b53402670 100644
--- a/newlib/libc/stdlib/__atexit.c
+++ b/newlib/libc/stdlib/__atexit.c
@@ -39,7 +39,9 @@
#include "atexit.h"
/* Make this a weak reference to avoid pulling in malloc. */
+#ifndef MALLOC_PROVIDED
void * malloc(size_t) _ATTRIBUTE((__weak__));
+#endif
#ifdef _LITE_EXIT
/* As __call_exitprocs is weak reference in lite exit, make a