1 /* Copyright (C) 2014-2020 Free Software Foundation, Inc.
3 Contributed by Mentor Embedded.
5 This file is part of the GNU Offloading and Multi Processing Library
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)
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
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.
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/>. */
27 /* Exported (non-hidden) functions exposing libgomp interface for plugins. */
32 #include "libgomp-plugin.h"
35 GOMP_PLUGIN_malloc (size_t size
)
37 return gomp_malloc (size
);
41 GOMP_PLUGIN_malloc_cleared (size_t size
)
43 return gomp_malloc_cleared (size
);
47 GOMP_PLUGIN_realloc (void *ptr
, size_t size
)
49 return gomp_realloc (ptr
, size
);
53 GOMP_PLUGIN_debug (int kind
, const char *msg
, ...)
58 gomp_vdebug (kind
, msg
, ap
);
63 GOMP_PLUGIN_error (const char *msg
, ...)
68 gomp_verror (msg
, ap
);
73 GOMP_PLUGIN_fatal (const char *msg
, ...)
78 gomp_vfatal (msg
, ap
);