- Timestamp:
- Jul 16, 2005, 4:47:00 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gcc/gcc/config/i386/emx.c
-
Property cvs2svn:cvs-rev
changed from
1.32
to1.33
r2252 r2253 102 102 } 103 103 104 const char *birddump_name(tree node); 105 const char *birddump_name(tree node) 106 { 107 tree name = NULL_TREE; 108 if (node == NULL_TREE) 109 name = NULL_TREE; 110 else if (DECL_P(node)) 111 name = DECL_NAME(node); 112 else if (TYPE_P(node)) 113 { 114 name = TYPE_NAME(node); 115 if (TREE_CODE(node) == RECORD_TYPE && DECL_NAME(name)) 116 name = DECL_NAME(name); 117 } 118 if (name != NULL_TREE) 119 return IDENTIFIER_POINTER(name); 120 return "<none>"; 121 } 122 104 123 void birddump (tree node, const char *pszFunction) 105 124 { 106 tree type, type2, context , name, tname;125 tree type, type2, context; 107 126 if (!node) 108 127 return; 109 128 110 name = DECL_P (node) ? DECL_NAME (node) : TYPE_P (node) ? TYPE_NAME (node) : NULL_TREE;111 129 type = TREE_TYPE (node); 112 tname = type ? TYPE_NAME (type) : NULL_TREE; 113 type2 = type ? TREE_TYPE(type) : NULL_TREE; 130 type2 = type ? TREE_TYPE (type) : NULL_TREE; 114 131 context = DECL_P (node) ? DECL_CONTEXT (node) : NULL_TREE; 115 132 116 fprintf(stderr, "dbg: node=%d %s %p %s '%s' type=%d %s %p %s '%s' type_type=%d %s %p %s context=%d %s %p %s(%s)\n",117 TREE_CODE(node), code(node), (void*)node, birddump_callingconv(node), name ? IDENTIFIER_POINTER (name) : "<none>",118 type ? (int)TREE_CODE(type) : -1, code(type), (void*)type, birddump_callingconv(type), tname ? IDENTIFIER_POINTER (tname) : "<none>",119 type2 ? (int)TREE_CODE(type2) : -1, code(type2), (void*)type2, birddump_callingconv(type2), 120 context ? (int)TREE_CODE(context) : -1, code(context), (void*)context, birddump_callingconv(context), 133 fprintf(stderr, "dbg: node=%d %s %p %s '%s' type=%d %s %p %s '%s' type_type=%d %s %p %s '%s' context=%d %s %p %s '%s' (%s)\n", 134 TREE_CODE(node), code(node), (void*)node, birddump_callingconv(node), birddump_name(node), 135 type ? (int)TREE_CODE(type) : -1, code(type), (void*)type, birddump_callingconv(type), birddump_name (type), 136 type2 ? (int)TREE_CODE(type2) : -1, code(type2), (void*)type2, birddump_callingconv(type2), birddump_name (type2), 137 context ? (int)TREE_CODE(context) : -1, code(context), (void*)context, birddump_callingconv(context), birddump_name (context), 121 138 pszFunction); 122 139 } … … 535 552 { 536 553 tree node = *pnode; 537 dfprintf((stderr, "trace: ix86_handle_dll_attribute\n")); 554 dfprintf ((stderr, "trace: ix86_handle_dll_attribute: *pnode=%p name=%p:{%s} args=%p flags=%x\n", 555 *pnode, name, IDENTIFIER_POINTER (name), args, flags)); 538 556 DUMP (node); 539 557 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.