aboutsummaryrefslogtreecommitdiff
path: root/libiberty/cp-demangle.c
AgeCommit message (Collapse)AuthorFilesLines
2013-11-15* cp-demangle.c (d_copy_templates): Cast result of malloc to (struct ↵uros1-4/+6
d_print_template *). (d_print_comp): Cast result of realloc to (struct d_saved scope *). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204713 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-08libiberty/ 2013-10-25 Gary Benson <gbenson@redhat.com>gary1-2/+129
* cp-demangle.c (struct d_saved_scope): New structure. (struct d_print_info): New fields saved_scopes and num_saved_scopes. (d_print_init): Initialize the above. (d_print_free): New function. (cplus_demangle_print_callback): Call the above. (d_copy_templates): New function. (d_print_comp): New variables saved_templates and need_template_restore. [DEMANGLE_COMPONENT_REFERENCE, DEMANGLE_COMPONENT_RVALUE_REFERENCE]: Capture scope the first time the component is traversed, and use the captured scope for subsequent traversals. * testsuite/demangle-expected: Add regression test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204068 138bc75d-0d04-0410-961f-82ee72b054a4
2013-10-16merge from gccDJ Delorie1-1/+1
2013-09-10merge from gccDJ Delorie1-167/+2
2013-09-10merge from gccDJ Delorie1-2/+167
2013-04-04merge from gccDJ Delorie1-42/+29
2013-04-03merge from gccDJ Delorie1-13/+124
2013-02-15merge from gccDJ Delorie1-1/+20
2012-11-11merge from gccDJ Delorie1-10/+42
2012-10-10merge from gccDJ Delorie1-0/+26
2012-07-18merge from gccDJ Delorie1-1/+31
2012-05-22merge from gccDJ Delorie1-0/+1
2012-04-02merge from gccDJ Delorie1-0/+5
2012-03-08merge from gccDJ Delorie1-1/+7
2012-01-10merge from gccDJ Delorie1-5/+8
2012-01-06merge from gccDJ Delorie1-79/+203
2011-11-08merge from gccDJ Delorie1-2/+45
2011-11-04merge from gccDJ Delorie1-3/+8
2011-10-10merge from gccDJ Delorie1-0/+24
2011-09-23merge from gccDJ Delorie1-3/+54
2011-08-06merge from gccDJ Delorie1-2/+12
2011-07-26merge from gccDJ Delorie1-1/+9
2011-07-05merge from gccDJ Delorie1-7/+23
2011-07-01merge from gccJan Kratochvil1-2/+55
libiberty/ PR debug/49408 * cp-demangle.c (d_print_comp): Suppress argument list for function references by the '&' unary operator. Keep also already processed variant without the argument list. Suppress argument list types for function call used in an expression. * testsuite/demangle-expected: Fix excessive argument list types in `test for typed function in decltype'. New testcase for no argument list types printed. 3 new testcases for function references by the '&' unary operator..
2011-06-22merge from gccDJ Delorie1-3/+31
2011-06-13merge from gccDJ Delorie1-119/+124
2010-11-16Properly demangle a global constructor symbol.H.J. Lu1-1/+15
2010-11-16 H.J. Lu <hongjiu.lu@intel.com> PR other/42670 PR binutils/11137 * cp-demangle.c (d_make_demangle_mangled_name): New. (d_demangle_callback): Use it on DCT_GLOBAL_XTORS. * testsuite/demangle-expected: Updated.
2010-11-13merge from gccDJ Delorie1-6/+0
2010-09-102010-09-10 James Lyon <jameslyon0@googlemail.com>Tom Tromey1-0/+1
http://sourceware.org/bugzilla/show_bug.cgi?id=11572 * cp-demangle.c (d_find_pack): Add case for DEMANGLE_COMPONENT_LAMBDA. * testsuite/demangle-expected: Add regression test.
2010-06-10 PR other/43838Jakub Jelinek1-1/+11
* cp-demangle.c (struct d_print_info): Add flush_count field. (d_print_init): Initialize it to 0. (d_print_flush): Increment it. (d_print_comp): If needed flush before appending ", ". Only decrement dpi->len if no flushes happened during the recursive call. * testsuite/demangle-expected: Add a test for this.
2010-05-06merge from gccDJ Delorie1-0/+8
2010-03-22merge from gccDJ Delorie1-2/+2
2010-02-03merge from gccDJ Delorie1-10/+83
2010-01-21merge from gccDJ Delorie1-3/+12
2010-01-10Return dgs.alc on successH.J. Lu1-1/+1
2010-01-09 Ian Lance Taylor <iant@google.com> PR other/42230 * cp-demangle.c (d_demangle): Return dgs.alc on success.
2009-10-02merge from gccDJ Delorie1-61/+238
2009-07-17merge from gccDJ Delorie1-18/+43
2009-05-19merge from gccDJ Delorie1-4/+4
2009-03-23merge from gccDJ Delorie1-3/+21
2009-03-18merge from gccDJ Delorie1-8/+63
2009-01-07merge from gccDJ Delorie1-12/+5
2008-12-18merge from gccDJ Delorie1-1/+8
2008-12-10merge from gccDJ Delorie1-0/+32
2008-10-07merge from gccDJ Delorie1-73/+225
2008-09-09merge from gccDJ Delorie1-9/+125
2008-03-31merge from gccDJ Delorie1-6/+10
2008-01-27include/David Daney1-0/+125
2008-01-26 David Daney <ddaney@avtrex.com> * demangle.h (demangle_component_type): Add DEMANGLE_COMPONENT_JAVA_RESOURCE, DEMANGLE_COMPONENT_COMPOUND_NAME, and DEMANGLE_COMPONENT_CHARACTER as new enum values. (demangle_component): Add struct s_character to union u. libiberty/ 2008-01-26 David Daney <ddaney@avtrex.com> * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE, DEMANGLE_COMPONENT_COMPOUND_NAME, and DEMANGLE_COMPONENT_CHARACTER cases. (d_make_comp): Handle DEMANGLE_COMPONENT_COMPOUND_NAME and DEMANGLE_COMPONENT_JAVA_RESOURCE cases. (d_make_character): New function. (d_java_resource): Same. (d_special_name): Handle "Gr" case. (d_print_comp): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE, DEMANGLE_COMPONENT_COMPOUND_NAME, and DEMANGLE_COMPONENT_CHARACTER cases. * testsuite/demangle-expected: Add test for java resource name mangling.
2007-08-31merge from gccDJ Delorie1-1/+17
2007-08-012007-07-31 Michael Snyder <msnyder@access-company.com>Michael Snyder1-0/+6
* cp-demangle.c (d_print_comp): Guard against null.
2007-05-06 * cp-demangle.c (d_name): Detect local-source-name.Geoffrey Keating1-1/+21
(d_prefix): Likewise. (d_unqualified_name): Implement local-source-name.