diff options
Diffstat (limited to 'libgupc/smp/upc_gasp.c')
-rw-r--r-- | libgupc/smp/upc_gasp.c | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/libgupc/smp/upc_gasp.c b/libgupc/smp/upc_gasp.c new file mode 100644 index 00000000000..7e7fda0700c --- /dev/null +++ b/libgupc/smp/upc_gasp.c @@ -0,0 +1,83 @@ +/* Copyright (C) 2009-2016 Free Software Foundation, Inc. + This file is part of the UPC runtime library. + Written by Gary Funck <gary@intrepid.com> + and Nenad Vukicevic <nenad@intrepid.com> + +This file is part of GCC. + +GCC is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 3, or (at your option) +any later version. + +GCC is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +Under Section 7 of GPL version 3, you are granted additional +permissions described in the GCC Runtime Library Exception, version +3.1, as published by the Free Software Foundation. + +You should have received a copy of the GNU General Public License and +a copy of the GCC Runtime Library Exception along with this program; +see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +<http://www.gnu.org/licenses/>. */ + + +#include "upc_config.h" +#include "upc_sysdep.h" +#include "upc_defs.h" +#include "gasp.h" + +/* Since libgupc contains references to these functions, we provide dummy + implementations to prevent linker warnings when GASP support has been + compiled into GNU UPC, but the user compiles their app regularly. + We define these as weak symbols so tools can override them + appropriately. */ + +#pragma weak gasp_init +#pragma weak gasp_event_notify +#pragma weak gasp_event_notifyVA +#pragma weak gasp_control +#pragma weak gasp_create_event + +gasp_context_t +gasp_init (gasp_model_t ARG_UNUSED (srcmodel), + int *ARG_UNUSED (argc), char ***ARG_UNUSED (argv)) +{ + return 0; +} + +void +gasp_event_notify (gasp_context_t ARG_UNUSED (context), + unsigned int ARG_UNUSED (evttag), + gasp_evttype_t ARG_UNUSED (evttype), + const char *ARG_UNUSED (filename), + int ARG_UNUSED (linenum), int ARG_UNUSED (colnum), ...) +{ +} + +void +gasp_event_notifyVA (gasp_context_t ARG_UNUSED (context), + unsigned int ARG_UNUSED (evttag), + gasp_evttype_t ARG_UNUSED (evttype), + const char *ARG_UNUSED (filename), + int ARG_UNUSED (linenum), + int ARG_UNUSED (colnum), va_list ARG_UNUSED (varargs)) +{ +} + +int +gasp_control (gasp_context_t ARG_UNUSED (context), int ARG_UNUSED (on)) +{ + return 0; +} + +unsigned int +gasp_create_event (gasp_context_t ARG_UNUSED (context), + const char *ARG_UNUSED (name), + const char *ARG_UNUSED (desc)) +{ + return 0; +} |