Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
00001 /* 00002 00003 Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved. 00004 00005 This program is free software; you can redistribute it and/or modify it 00006 under the terms of version 2 of the GNU General Public License as 00007 published by the Free Software Foundation. 00008 00009 This program is distributed in the hope that it would be useful, but 00010 WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00012 00013 Further, this software is distributed without any warranty that it is 00014 free of the rightful claim of any third person regarding infringement 00015 or the like. Any license provided herein, whether implied or 00016 otherwise, applies only to this software file. Patent licenses, if 00017 any, provided herein do not apply to combinations of this program with 00018 other software, or any other product whatsoever. 00019 00020 You should have received a copy of the GNU General Public License along 00021 with this program; if not, write the Free Software Foundation, Inc., 59 00022 Temple Place - Suite 330, Boston MA 02111-1307, USA. 00023 00024 Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pky, 00025 Mountain View, CA 94043, or: 00026 00027 http://www.sgi.com 00028 00029 For further information regarding this notice, see: 00030 00031 http://oss.sgi.com/projects/GenInfo/NoticeExplan 00032 00033 */ 00034 00035 00036 /* USMID: "\n@(#)5.0_pl/macros/debug.m 5.1 04/29/99 21:22:31\n" */ 00037 00038 00039 # define INDENT_SIZE 3 00040 00041 # if defined(_HOST32) && defined(_TARGET64) 00042 # define LONG_TYPE_FMT "lld" 00043 # define LONG_TYPE_X_FMT "llx" 00044 # else 00045 # define LONG_TYPE_FMT "d" 00046 # define LONG_TYPE_X_FMT "x" 00047 # endif 00048 00049 # ifdef _DEBUG 00050 # define PRINT_BLK_STK \ 00051 if (dump_flags.blk_stk) { \ 00052 print_blk_tbl(); \ 00053 } 00054 # else 00055 # define PRINT_BLK_STK 00056 # endif 00057 00058 # ifdef _DEBUG 00059 # define PRINT_BD_TBL \ 00060 if (dump_flags.bd_tbl) { \ 00061 print_bd_tbl(); \ 00062 } 00063 # else 00064 # define PRINT_BD_TBL 00065 # endif 00066 00067 # ifdef _DEBUG 00068 # define PRINT_CMD_LINE_TBLS \ 00069 if (dump_flags.cmd_line_tbls) { \ 00070 print_cmd_tbl (); \ 00071 } 00072 # else 00073 # define PRINT_CMD_LINE_TBLS 00074 # endif 00075 00076 # ifdef _DEBUG 00077 # define PRINT_CN_TBL \ 00078 if (dump_flags.cn_tbl) { \ 00079 print_cn_tbl(); \ 00080 } 00081 # else 00082 # define PRINT_CN_TBL 00083 # endif 00084 00085 # ifdef _DEBUG 00086 # define PRINT_DEF_TBL \ 00087 if (dump_flags.defines) { \ 00088 print_defines(); \ 00089 } 00090 # else 00091 # define PRINT_DEF_TBL 00092 # endif 00093 00094 # ifdef _DEBUG 00095 # define PRINT_EQV_TBL \ 00096 if (dump_flags.scp_tbl) { \ 00097 print_eq_tbl(); \ 00098 } 00099 # else 00100 # define PRINT_EQV_TBL 00101 # endif 00102 00103 # ifdef _DEBUG 00104 # define PRINT_GL_TBL \ 00105 if (dump_flags.gl_tbl) { \ 00106 print_gl_tbl (); \ 00107 } 00108 # else 00109 # define PRINT_GL_TBL 00110 # endif 00111 00112 # ifdef _DEBUG 00113 # define PRINT_GN_TBL \ 00114 if (dump_flags.name_tbls) { \ 00115 print_gn_tbl (); \ 00116 } 00117 # else 00118 # define PRINT_GN_TBL 00119 # endif 00120 00121 # ifdef _DEBUG 00122 # define PRINT_INTRIN \ 00123 if (dump_flags.intrin_tbl) { \ 00124 print_sytb(INTRINSIC_SCP_IDX, FALSE, TRUE); \ 00125 } 00126 # else 00127 # define PRINT_INTRIN 00128 # endif 00129 00130 # ifdef _DEBUG 00131 # define PRINT_FORTRAN_OUT \ 00132 if (dump_flags.fort_out) { \ 00133 print_expanded_stmt(); \ 00134 } 00135 # else 00136 # define PRINT_FORTRAN_OUT 00137 # endif 00138 00139 # ifdef _DEBUG 00140 # define PRINT_IR_TBL \ 00141 if (dump_flags.ir1_tbl) { \ 00142 print_sh_tbl (TRUE); \ 00143 } 00144 # else 00145 # define PRINT_IR_TBL 00146 # endif 00147 00148 # ifdef _DEBUG 00149 # define PRINT_IR_TBL2 \ 00150 if (dump_flags.ir2_tbl) { \ 00151 print_sh_tbl (TRUE); \ 00152 } 00153 # else 00154 # define PRINT_IR_TBL2 00155 # endif 00156 00157 # ifdef _DEBUG 00158 # define PRINT_IR_TBL3 \ 00159 if (dump_flags.ir3_tbl) { \ 00160 print_sytb(curr_scp_idx, FALSE, TRUE); \ 00161 print_sh_tbl (TRUE); \ 00162 } 00163 # else 00164 # define PRINT_IR_TBL3 00165 # endif 00166 00167 # ifdef _DEBUG 00168 # define PRINT_IR_TBL4 \ 00169 if (dump_flags.ir4_tbl) { \ 00170 print_sytb(curr_scp_idx, FALSE, TRUE); \ 00171 print_sh_tbl (TRUE); \ 00172 } 00173 # else 00174 # define PRINT_IR_TBL4 00175 # endif 00176 00177 # ifdef _DEBUG 00178 # define PRINT_NAME_TBLS \ 00179 if (dump_flags.name_tbls) { \ 00180 print_ln_tbl (); \ 00181 print_hn_tbl (); \ 00182 } 00183 # else 00184 # define PRINT_NAME_TBLS 00185 # endif 00186 00187 # ifdef _DEBUG 00188 # define PRINT_FP_TBL \ 00189 if (dump_flags.fp_tbl) { \ 00190 print_fp_tbl (); \ 00191 } 00192 # else 00193 # define PRINT_FP_TBL 00194 # endif 00195 00196 # ifdef _DEBUG 00197 # define PRINT_SB_TBL \ 00198 if (dump_flags.sb_tbl) { \ 00199 print_sb_tbl(); \ 00200 } 00201 # else 00202 # define PRINT_SB_TBL 00203 # endif 00204 00205 # ifdef _DEBUG 00206 # define PRINT_SCP_TBL \ 00207 if (dump_flags.scp_tbl) { \ 00208 print_scp_tbl(); \ 00209 } 00210 # else 00211 # define PRINT_SCP_TBL 00212 # endif 00213 00214 # ifdef _DEBUG 00215 # define PRINT_DBG_SYTB \ 00216 if (SCP_DBG_PRINT_SYTB(curr_scp_idx)) { \ 00217 print_sytb(curr_scp_idx, FALSE, TRUE); \ 00218 } 00219 # else 00220 # define PRINT_DBG_SYTB 00221 # endif 00222 00223 # ifdef _DEBUG 00224 # define PRINT_DBG_STMT \ 00225 if (SCP_DBG_PRINT_STMT(curr_scp_idx)) { \ 00226 print_sh_tbl(FALSE); \ 00227 } 00228 # else 00229 # define PRINT_DBG_STMT 00230 # endif 00231 00232 # ifdef _DEBUG 00233 # define PRINT_SYTB \ 00234 if (dump_flags.sytb) { \ 00235 print_sytb(1, TRUE, TRUE); \ 00236 } 00237 # else 00238 # define PRINT_SYTB 00239 # endif 00240 00241 # ifdef _DEBUG 00242 # define PRINT_TYP_TBL \ 00243 if (dump_flags.typ_tbl) { \ 00244 print_typ_tbl(); \ 00245 } 00246 # else 00247 # define PRINT_TYP_TBL 00248 # endif 00249 00250 # ifdef _DEBUG 00251 # define TRACE(TRACE_TYPE, FUNC_NAME, INFO) \ 00252 if (dump_flags.ftrace_info) { \ 00253 dump_func_trace_info (TRACE_TYPE, FUNC_NAME, (INFO)); \ 00254 } 00255 # else 00256 # define TRACE(ARG1, ARG2, ARG3) 00257 # endif 00258 00259 # ifdef _DEBUG 00260 # define OUTPUT_PASS_HEADER(PASS) \ 00261 if (dump_flags.ftrace_info) { \ 00262 dump_func_trace_info (PASS, NULL, NULL); \ 00263 } 00264 # else 00265 # define OUTPUT_PASS_HEADER(ARG1) 00266 # endif 00267 00268 # ifdef _DEBUG 00269 # define TRACE_NEW_STMT(ARG1) \ 00270 if (dump_flags.ftrace_info) { \ 00271 dump_func_trace_info (Stmt_Start, NULL, ARG1); \ 00272 } 00273 # else 00274 # define TRACE_NEW_STMT(ARG1) 00275 # endif 00276 00277 # ifdef _DEBUG 00278 # define PRINT_ALL_SYM_TBLS { \ 00279 PRINT_DEF_TBL; \ 00280 PRINT_SCP_TBL; \ 00281 PRINT_FP_TBL; \ 00282 PRINT_SYTB; \ 00283 PRINT_NAME_TBLS; \ 00284 PRINT_BD_TBL; \ 00285 PRINT_CN_TBL; \ 00286 PRINT_SB_TBL; \ 00287 PRINT_TYP_TBL; \ 00288 PRINT_IR_TBL2; \ 00289 } 00290 # else 00291 # define PRINT_ALL_SYM_TBLS 00292 # endif