comparison gcc/statistics.h @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents a06113de4d67
children 84e7813d76e9
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* Memory and optimization statistics helpers. 1 /* Memory and optimization statistics helpers.
2 Copyright (C) 2004, 2007, 2008 2 Copyright (C) 2004-2017 Free Software Foundation, Inc.
3 Free Software Foundation, Inc.
4 Contributed by Cygnus Solutions. 3 Contributed by Cygnus Solutions.
5 4
6 This file is part of GCC. 5 This file is part of GCC.
7 6
8 GCC is free software; you can redistribute it and/or modify it 7 GCC is free software; you can redistribute it and/or modify it
20 <http://www.gnu.org/licenses/>. */ 19 <http://www.gnu.org/licenses/>. */
21 20
22 #ifndef GCC_STATISTICS 21 #ifndef GCC_STATISTICS
23 #define GCC_STATISTICS 22 #define GCC_STATISTICS
24 23
25 #ifdef GATHER_STATISTICS 24 #if ! defined GATHER_STATISTICS
26 #define MEM_STAT_DECL , const char * ARG_UNUSED (_loc_name), int ARG_UNUSED (_loc_line), const char * ARG_UNUSED (_loc_function) 25 #error GATHER_STATISTICS must be defined
27 #define ALONE_MEM_STAT_DECL const char * ARG_UNUSED (_loc_name), int ARG_UNUSED (_loc_line), const char * ARG_UNUSED (_loc_function) 26 #endif
28 #define PASS_MEM_STAT , _loc_name, _loc_line, _loc_function 27
28 #define GCC_MEM_STAT_ARGUMENTS const char * ARG_UNUSED (_loc_name), int ARG_UNUSED (_loc_line), const char * ARG_UNUSED (_loc_function)
29 #if GATHER_STATISTICS
30 #define ALONE_MEM_STAT_DECL GCC_MEM_STAT_ARGUMENTS
31 #define ALONE_FINAL_MEM_STAT_DECL ALONE_MEM_STAT_DECL
29 #define ALONE_PASS_MEM_STAT _loc_name, _loc_line, _loc_function 32 #define ALONE_PASS_MEM_STAT _loc_name, _loc_line, _loc_function
30 #define MEM_STAT_INFO , __FILE__, __LINE__, __FUNCTION__ 33 #define ALONE_FINAL_PASS_MEM_STAT ALONE_PASS_MEM_STAT
31 #define ALONE_MEM_STAT_INFO __FILE__, __LINE__, __FUNCTION__ 34 #define ALONE_MEM_STAT_INFO __FILE__, __LINE__, __FUNCTION__
35 #define MEM_STAT_DECL , ALONE_MEM_STAT_DECL
36 #define FINAL_MEM_STAT_DECL , ALONE_FINAL_MEM_STAT_DECL
37 #define PASS_MEM_STAT , ALONE_PASS_MEM_STAT
38 #define FINAL_PASS_MEM_STAT , ALONE_FINAL_PASS_MEM_STAT
39 #define MEM_STAT_INFO , ALONE_MEM_STAT_INFO
40 #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
41 #define ALONE_CXX_MEM_STAT_INFO const char * _loc_name = __builtin_FILE (), int _loc_line = __builtin_LINE (), const char * _loc_function = __builtin_FUNCTION ()
32 #else 42 #else
43 #define ALONE_CXX_MEM_STAT_INFO const char * _loc_name = __FILE__, int _loc_line = __LINE__, const char * _loc_function = NULL
44 #endif
45 #define CXX_MEM_STAT_INFO , ALONE_CXX_MEM_STAT_INFO
46 #else
47 #define ALONE_MEM_STAT_DECL void
48 #define ALONE_FINAL_MEM_STAT_DECL GCC_MEM_STAT_ARGUMENTS
49 #define ALONE_PASS_MEM_STAT
50 #define ALONE_FINAL_PASS_MEM_STAT 0,0,0
51 #define ALONE_MEM_STAT_INFO
33 #define MEM_STAT_DECL 52 #define MEM_STAT_DECL
34 #define ALONE_MEM_STAT_DECL void 53 #define FINAL_MEM_STAT_DECL , ALONE_FINAL_MEM_STAT_DECL
35 #define PASS_MEM_STAT 54 #define PASS_MEM_STAT
36 #define ALONE_PASS_MEM_STAT 55 #define FINAL_PASS_MEM_STAT , ALONE_FINAL_PASS_MEM_STAT
37 #define MEM_STAT_INFO 56 #define MEM_STAT_INFO ALONE_MEM_STAT_INFO
38 #define ALONE_MEM_STAT_INFO 57 #define ALONE_CXX_MEM_STAT_INFO
58 #define CXX_MEM_STAT_INFO
39 #endif 59 #endif
40 60
41 struct function; 61 struct function;
42 62
43 /* In statistics.c */ 63 /* In statistics.c */