Mercurial > hg > CbC > CbC_gcc
comparison gcc/c-family/c-dump.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | 561a7518be6b |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* Tree-dumping functionality for C-family languages. | 1 /* Tree-dumping functionality for C-family languages. |
2 Copyright (C) 2002, 2004, 2005, 2007, 2010 Free Software Foundation, Inc. | 2 Copyright (C) 2002-2017 Free Software Foundation, Inc. |
3 Written by Mark Mitchell <mark@codesourcery.com> | 3 Written by Mark Mitchell <mark@codesourcery.com> |
4 | 4 |
5 This file is part of GCC. | 5 This file is part of GCC. |
6 | 6 |
7 GCC is free software; you can redistribute it and/or modify it under | 7 GCC is free software; you can redistribute it and/or modify it under |
19 <http://www.gnu.org/licenses/>. */ | 19 <http://www.gnu.org/licenses/>. */ |
20 | 20 |
21 #include "config.h" | 21 #include "config.h" |
22 #include "system.h" | 22 #include "system.h" |
23 #include "coretypes.h" | 23 #include "coretypes.h" |
24 #include "tm.h" | 24 #include "c-common.h" |
25 #include "tree.h" | |
26 #include "tree-dump.h" | 25 #include "tree-dump.h" |
27 #include "c-common.h" | |
28 | |
29 /* Dump information common to statements from STMT. */ | |
30 | |
31 void | |
32 dump_stmt (dump_info_p di, const_tree t) | |
33 { | |
34 if (EXPR_HAS_LOCATION (t)) | |
35 dump_int (di, "line", EXPR_LINENO (t)); | |
36 } | |
37 | 26 |
38 /* Dump any C-specific tree codes and attributes of common codes. */ | 27 /* Dump any C-specific tree codes and attributes of common codes. */ |
39 | 28 |
40 bool | 29 bool |
41 c_dump_tree (void *dump_info, tree t) | 30 c_dump_tree (void *dump_info, tree t) |