1 /* Memory statistics helpers.
3 Free Software Foundation, Inc.
4 Contributed by Cygnus Solutions.
6 This file is part of GCC.
8 GCC 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 2, or (at your option)
13 GCC is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
16 License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING. If not, write to the Free
20 the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
21 MA 02110-1301, USA. */
23 #ifndef GCC_STATISTICS
24 #define GCC_STATISTICS
25 #ifdef GATHER_STATISTICS
26 #define MEM_STAT_DECL , const char * ARG_UNUSED (_loc_name), int ARG_UNUSED (_loc_line), const char * ARG_UNUSED (_loc_function)
27 #define ALONE_MEM_STAT_DECL const char * ARG_UNUSED (_loc_name), int ARG_UNUSED (_loc_line), const char * ARG_UNUSED (_loc_function)
28 #define PASS_MEM_STAT , _loc_name, _loc_line, _loc_function
29 #define ALONE_PASS_MEM_STAT _loc_name, _loc_line, _loc_function
30 #define MEM_STAT_INFO , __FILE__, __LINE__, __FUNCTION__
31 #define ALONE_MEM_STAT_INFO __FILE__, __LINE__, __FUNCTION__
34 #define ALONE_MEM_STAT_DECL void
36 #define ALONE_PASS_MEM_STAT
38 #define ALONE_MEM_STAT_INFO