diff options
author | Martin Jambor <mjambor@suse.cz> | 2017-03-20 17:41:16 +0000 |
---|---|---|
committer | Martin Jambor <mjambor@suse.cz> | 2017-03-20 17:41:16 +0000 |
commit | ad2ce058ba710a9a53c6c435792bdef971278015 (patch) | |
tree | f32b3fb0ee3465679cd2cb12da1818a8405e4297 /include | |
parent | f909477022eac61706fe38aea0154817cd1c3444 (diff) |
Merged trunk revision 246276 into the hsa branch
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/hsa@246285 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include')
-rw-r--r-- | include/demangle.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/demangle.h b/include/demangle.h index 7cc955dc28d..996203b2d78 100644 --- a/include/demangle.h +++ b/include/demangle.h @@ -494,6 +494,11 @@ struct demangle_component /* The type of this component. */ enum demangle_component_type type; + /* Guard against recursive component printing. + Initialize to zero. Private to d_print_comp. + All other fields are final after initialization. */ + int d_printing; + union { /* For DEMANGLE_COMPONENT_NAME. */ @@ -688,7 +693,7 @@ cplus_demangle_v3_components (const char *mangled, int options, void **mem); extern char * cplus_demangle_print (int options, - const struct demangle_component *tree, + struct demangle_component *tree, int estimated_length, size_t *p_allocated_size); @@ -708,7 +713,7 @@ cplus_demangle_print (int options, extern int cplus_demangle_print_callback (int options, - const struct demangle_component *tree, + struct demangle_component *tree, demangle_callbackref callback, void *opaque); #ifdef __cplusplus |