]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgomp/libgomp-plugin.c
Remove support for alternative Solaris 11.4 ld -V output
[thirdparty/gcc.git] / libgomp / libgomp-plugin.c
CommitLineData
fbd26352 1/* Copyright (C) 2014-2019 Free Software Foundation, Inc.
995b27b9 2
ca4c3545 3 Contributed by Mentor Embedded.
4
c35c9a62 5 This file is part of the GNU Offloading and Multi Processing Library
6 (libgomp).
995b27b9 7
8 Libgomp is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3, or (at your option)
11 any later version.
12
13 Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
14 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15 FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 more details.
17
18 Under Section 7 of GPL version 3, you are granted additional
19 permissions described in the GCC Runtime Library Exception, version
20 3.1, as published by the Free Software Foundation.
21
22 You should have received a copy of the GNU General Public License and
23 a copy of the GCC Runtime Library Exception along with this program;
24 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
25 <http://www.gnu.org/licenses/>. */
26
ca4c3545 27/* Exported (non-hidden) functions exposing libgomp interface for plugins. */
28
29#include <stdlib.h>
30
31#include "libgomp.h"
32#include "libgomp-plugin.h"
33
34void *
35GOMP_PLUGIN_malloc (size_t size)
36{
37 return gomp_malloc (size);
38}
39
40void *
41GOMP_PLUGIN_malloc_cleared (size_t size)
42{
43 return gomp_malloc_cleared (size);
44}
995b27b9 45
ca4c3545 46void *
47GOMP_PLUGIN_realloc (void *ptr, size_t size)
995b27b9 48{
ca4c3545 49 return gomp_realloc (ptr, size);
50}
51
52void
53GOMP_PLUGIN_debug (int kind, const char *msg, ...)
54{
55 va_list ap;
56
57 va_start (ap, msg);
84551a30 58 gomp_vdebug (kind, msg, ap);
ca4c3545 59 va_end (ap);
60}
61
62void
63GOMP_PLUGIN_error (const char *msg, ...)
64{
65 va_list ap;
66
67 va_start (ap, msg);
68 gomp_verror (msg, ap);
69 va_end (ap);
70}
995b27b9 71
ca4c3545 72void
73GOMP_PLUGIN_fatal (const char *msg, ...)
995b27b9 74{
ca4c3545 75 va_list ap;
995b27b9 76
ca4c3545 77 va_start (ap, msg);
78 gomp_vfatal (msg, ap);
79 va_end (ap);
80}