From: Bart Van Assche Date: Thu, 23 Jul 2009 06:47:38 +0000 (+0000) Subject: Cleanup: removed source code commented out via #if 0 / #endif. X-Git-Tag: svn/VALGRIND_3_5_0~307 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9c982f8ac56058f9deaa68c6ced3e6556ff9801d;p=thirdparty%2Fvalgrind.git Cleanup: removed source code commented out via #if 0 / #endif. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10541 --- diff --git a/drd/Makefile.am b/drd/Makefile.am index d1ccb211e0..1a21f4d841 100644 --- a/drd/Makefile.am +++ b/drd/Makefile.am @@ -101,7 +101,6 @@ noinst_DSYMS = $(noinst_PROGRAMS) endif VGPRELOAD_DRD_SOURCES_COMMON = \ - drd_gomp_intercepts.c \ drd_pthread_intercepts.c \ drd_qtcore_intercepts.c \ drd_strmem_intercepts.c diff --git a/drd/drd_gomp_intercepts.c b/drd/drd_gomp_intercepts.c deleted file mode 100644 index 89aa541607..0000000000 --- a/drd/drd_gomp_intercepts.c +++ /dev/null @@ -1,121 +0,0 @@ -/* -*- mode: C; c-basic-offset: 3; -*- */ - -/*--------------------------------------------------------------------*/ -/*--- Client-space code for drd. drd_gomp_intercepts.c ---*/ -/*--------------------------------------------------------------------*/ - -/* - This file is part of drd, a thread error detector. - - Copyright (C) 2006-2009 Bart Van Assche . - - This program 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 2 of the - License, or (at your option) any later version. - - This program 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. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA - 02111-1307, USA. - - The GNU General Public License is contained in the file COPYING. -*/ - -/* --------------------------------------------------------------------- - ALL THE CODE IN THIS FILE RUNS ON THE SIMULATED CPU. - - These functions are not called directly - they're the targets of code - redirection or load notifications (see pub_core_redir.h for info). - They're named weirdly so that the intercept code can find them when the - shared object is initially loaded. - - Note that this filename has the "drd_" prefix because it can appear - in stack traces, and the "drd_" makes it a little clearer that it - originates from Valgrind. - ------------------------------------------------------------------ */ - -#include -#include "drd_clientreq.h" -#include "pub_tool_redir.h" - - -// Defines. - -#define GOMP_FUNC(ret_ty, f, args...) \ - ret_ty VG_WRAP_FUNCTION_ZZ(libgompZdsoZd1Za,f)(args); \ - ret_ty VG_WRAP_FUNCTION_ZZ(libgompZdsoZd1Za,f)(args) - - -// Type definitions - -typedef void* gomp_barrier_t; - - -// Function definitions. - -#if 0 - -GOMP_FUNC(void, gompZubarrierZuinit, // gomp_barrier_init - gomp_barrier_t* barrier, unsigned count) -{ - int ret; - int res; - OrigFn fn; - - VALGRIND_DO_CLIENT_REQUEST(res, -1, VG_USERREQ__PRE_BARRIER_INIT, - barrier, gomp_barrier, count, 0, 0); - VALGRIND_GET_ORIG_FN(fn); - CALL_FN_W_WW(ret, fn, barrier, count); - VALGRIND_DO_CLIENT_REQUEST(res, -1, VG_USERREQ__POST_BARRIER_INIT, - barrier, gomp_barrier, 0, 0, 0); -} - -GOMP_FUNC(void, gompZubarrierZureinit, // gomp_barrier_reinit - gomp_barrier_t* barrier, unsigned count) -{ - int ret; - int res; - OrigFn fn; - VALGRIND_DO_CLIENT_REQUEST(res, -1, VG_USERREQ__PRE_BARRIER_INIT, - barrier, gomp_barrier, count, 1, 0); - VALGRIND_GET_ORIG_FN(fn); - CALL_FN_W_WW(ret, fn, barrier, count); - VALGRIND_DO_CLIENT_REQUEST(res, -1, VG_USERREQ__POST_BARRIER_INIT, - barrier, gomp_barrier, 0, 0, 0); -} - -GOMP_FUNC(void, gompZubarrierZudestroy, // gomp_barrier_destroy - gomp_barrier_t* barrier) -{ - int ret; - int res; - OrigFn fn; - VALGRIND_GET_ORIG_FN(fn); - VALGRIND_DO_CLIENT_REQUEST(res, -1, VG_USERREQ__PRE_BARRIER_DESTROY, - barrier, gomp_barrier, 0, 0, 0); - CALL_FN_W_W(ret, fn, barrier); - VALGRIND_DO_CLIENT_REQUEST(res, -1, VG_USERREQ__POST_BARRIER_DESTROY, - barrier, gomp_barrier, 0, 0, 0); -} - -GOMP_FUNC(void, gompZubarrierZuwait, // gomp_barrier_wait - gomp_barrier_t* barrier) -{ - int ret; - int res; - OrigFn fn; - VALGRIND_GET_ORIG_FN(fn); - VALGRIND_DO_CLIENT_REQUEST(res, -1, VG_USERREQ__PRE_BARRIER_WAIT, - barrier, gomp_barrier, 0, 0, 0); - CALL_FN_W_W(ret, fn, barrier); - VALGRIND_DO_CLIENT_REQUEST(res, -1, VG_USERREQ__POST_BARRIER_WAIT, - barrier, gomp_barrier, 1, 0, 0); -} - -#endif