summaryrefslogtreecommitdiff
path: root/libiberty/testsuite
Commit message (Collapse)AuthorAgeFilesLines
* * cp-demangle.h: Add comment explaining what to do to avoidgeoffk2006-12-212-4/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | overrunning string. (d_check_char): New. (d_next_char): Don't advance past trailing '\0'. * cp-demangle.c (cplus_demangle_mangled_name): Use d_check_char. (d_nested_name): Likewise. (d_special_name): Likewise. (d_call_offset): Likewise. (d_function_type): Likewise. (d_array_type): Likewise. (d_pointer_to_member_type): Likewise. (d_template_param): Likewise. (d_template_args): Likewise. (d_template_arg): Likewise. (d_expr_primary): Likewise. (d_local_name): Likewise. (d_substitution): Likewise. (d_ctor_dtor_name): Use d_advance rather than d_next_char. * testsuite/test-demangle.c: Include sys/mman.h. (MAP_ANONYMOUS): Define. (protect_end): New. (main): Use protect_end. * testsuite/demangle-expected: Add testcases for overrunning the end of the string. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120097 138bc75d-0d04-0410-961f-82ee72b054a4
* --(top level)--------------------------------------------brooks2006-10-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-10-10 Brooks Moses <bmoses@stanford.edu> * Makefile.def: Added pdf target handling. * Makefile.tpl: Added pdf target handling. * Makefile.in: Regenerated. ---fixincludes-------------------------------------------- 2006-10-10 Brooks Moses <bmoses@stanford.edu> * Makefile.in: Added empty "pdf" target. ---gcc---------------------------------------------------- 2006-10-10 Brooks Moses <bmoses@stanford.edu> * configure.ac: Added pdf to "Make-hooks" * Makefile.in: Added TEXI2PDF definition, and various pdf-file targets and *.pdf file patterns in cleanup targets. * configure: Regenerated. ---gcc/cp------------------------------------------------- 2006-10-10 Brooks Moses <bmoses@stanford.edu> * Make-lang.in: Added "c++.pdf" target support. ---gcc/fortran-------------------------------------------- 2006-10-10 Brooks Moses <bmoses@stanford.edu> * Make-lang.in: Added "fortran.pdf", "gfortran.pdf" target support. ---gcc/java----------------------------------------------- 2006-10-10 Brooks Moses <bmoses@stanford.edu> * Make-lang.in: Added "java.pdf", "gcj.pdf" target support. ---gcc/objc----------------------------------------------- 2006-10-10 Brooks Moses <bmoses@stanford.edu> * Make-lang.in: Added empty "objc.pdf" target. ---gcc/objcp---------------------------------------------- 2006-10-10 Brooks Moses <bmoses@stanford.edu> * Make-lang.in: Added empty "obj-c++.pdf" target. ---gcc/treelang------------------------------------------- 2006-10-10 Brooks Moses <bmoses@stanford.edu> * Make-lang.in: Added "treelang.pdf" target support. ---gnattools---------------------------------------------- 2006-10-10 Brooks Moses <bmoses@stanford.edu> * Makefile.in: Added empty "pdf" target. ---libcpp------------------------------------------------- 2006-10-10 Brooks Moses <bmoses@stanford.edu> * Makefile.in: Added empty "pdf" target. ---libdecnumber------------------------------------------- 2006-10-10 Brooks Moses <bmoses@stanford.edu> * Makefile.in: Added empty "pdf" target. ---libiberty---------------------------------------------- 2006-10-10 Brooks Moses <bmoses@stanford.edu> * Makefile.in: Added "pdf", "libiberty.pdf" target support. * testsuite/Makefile.in: Added empty "pdf" target. ---libobjc------------------------------------------------ 2006-10-10 Brooks Moses <bmoses@stanford.edu> * Makefile.in: Added empty "pdf" target. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117618 138bc75d-0d04-0410-961f-82ee72b054a4
* PR other/29176ian2006-09-221-0/+5
| | | | | | | | * cp-demangle.c (d_substitution): Check for overflow when computing substitution index. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117144 138bc75d-0d04-0410-961f-82ee72b054a4
* PR other/28797ian2006-08-271-0/+6
| | | | | | | | | * cp-demangle.c (d_pointer_to_member_type): Do add a substitution for a qualified member which is not a function. * testsuite/demangle-expected: Add test case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116493 138bc75d-0d04-0410-961f-82ee72b054a4
* libiberty/carlos2006-04-061-2/+2
| | | | | | | | | | | | | | | 2006-04-06 Carlos O'Donell <carlos@codesourcery.com> * Makefile.in: Add install-html, install-html-am, and install-html-recursive targets. Define mkdir_p and NORMAL_INSTALL. * configure.ac: AC_SUBST datarootdir, docdir, htmldir. * configure: Regenerate. * testsuite/Makefile.in: Add install-html and html targets. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112741 138bc75d-0d04-0410-961f-82ee72b054a4
* libiberty/carlos2006-01-202-1/+307
| | | | | | | | | | | | | 2006-01-20 Carlos O'Donell <carlos@codesourcery.com> * testsuite/Makefile.in: Add test-expandargv test. * testsuite/test-expandargv.c: New test. * argv.c (expandargv): Check for errors with ferror, rather than just by looking at return value from fread. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110047 138bc75d-0d04-0410-961f-82ee72b054a4
* Fixes java/PR9861tlaurenzo2005-12-112-1/+31
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108374 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>kcook2005-08-173-4/+4
| | | | | | | | | | * strverscmp.c: Update FSF address. * testsuite/Makefile.in: Likewise. * testsuite/test-demangle.c: Likewise. * testsuite/test-pexecute.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103199 138bc75d-0d04-0410-961f-82ee72b054a4
* PR other/22268ian2005-07-011-0/+6
| | | | | | | | | * cp-demangle.c (d_expr_primary): Don't run off the end of the string while looking for the end of a literal value. * testsuite/demangle-expected: Add test case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101506 138bc75d-0d04-0410-961f-82ee72b054a4
* include/rth2005-05-251-0/+4
| | | | | | | | | | | | * demangle.h (DEMANGLE_COMPONENT_HIDDEN_ALIAS): New. libiberty/ * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS. (d_make_comp, d_print_comp): Likewise. (d_special_name): Generate one. * testsuite/demangle-expected: Add a hidden alias test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100174 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variableian2005-04-041-2/+3
| | | | | | | declaration before statement. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97576 138bc75d-0d04-0410-961f-82ee72b054a4
* libiberty:ian2005-03-292-0/+532
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * pex-common.c: New file. * pex-one.c: New file. * pexecute.c: New file. * pex-common.h: Include <stdio.h>. (struct pex_obj): Define. (struct pex_funcs): Define. (pex_init_common): Declare. * pex-unix.c: Rewrite. * pex-win32.c: Rewrite. * pex-djgpp.c: Rewrite. * pex-msdos.c: Rewrite. * testsuite/text-pexecute.c: New file. * pexecute.txh: Rewrite. * configure.ac: Check for wait3 and wait4. Set CHECK to really-check rather than check-cplus-dem. * functions.texi: Rebuild. * Makefile.in: Rebuild dependencies. (CFILES): Add pexecute.c, pex-common.c, pex-one.c. (REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o. * testsuite/Makefile.in (really-check): New target. (check-pexecute, test-pexecute): New targets. * configure: Rebuild. include: * libiberty.h: Include <stdio.h>. (PEX_RECORD_TIMES, PEX_USE_PIPES, PEX_SAVE_TEMPS): Define. (PEX_LAST, PEX_SEARCH, PEX_SUFFIX, PEX_STDERR_TO_STDOUT): Define. (PEX_BINARY_INPUT, PEX_BINARY_OUTPUT): Define. (pex_init, pex_run, pex_read_output): Declare. (pex_get_status, pex_get_times, pex_free, pex_one): Declare. (struct pex_time): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97148 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/demangle-expected: Add test case.ian2004-06-281-0/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83799 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> foraj2004-03-071-1/+7
| | | | | | | | prototypes. (main): Initialize style. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79062 138bc75d-0d04-0410-961f-82ee72b054a4
* * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,ian2004-02-251-4/+4
| | | | | | | | | | | | | | | | | | | D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG, D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT. * cp-demangle.c (cplus_demangle_builtin_types): Change char and short types to D_PRINT_DEFAULT. Change other integer types to use new D_PRINT_* values where appropriate. Change float types to D_PRINT_FLOAT. (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_* values. * testsuite/demangle-expected: Adjust two test cases. * cp-demangle.c (d_print_function_type): Print a space before the parenthesis around the function type in more cases. * testsuite/demangle-expected: Adjust one test case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78421 138bc75d-0d04-0410-961f-82ee72b054a4
* * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extraian2004-02-251-2/+2
| | | | | | | | | parentheses around a cast. * testsuite/demangle-expected: Adjust two test cases to match new output. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78416 138bc75d-0d04-0410-961f-82ee72b054a4
* * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don'tian2004-02-241-0/+18
| | | | | | | | | | | | | push more than one of the same CV-qualifier on the top of the stack. (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified, move the CV-qualifiers to apply to the element type instead. (d_print_array_type): When checking the modifiers, keep looking past ones which have been printed already. * testsuite/demangle-expected: Add three test cases. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78354 138bc75d-0d04-0410-961f-82ee72b054a4
* * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, stripian2004-01-022-758/+1648
| | | | | | | | | | | | | | | CV-qualifiers from D_COMP_LOCAL_NAME right subtree. * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when demangling template parameters. * testsuite/test-demangle.c (fail): New static function. (main): Support new options in input file: --no-params, --is-v3-ctor, and --is-v3-dtor. * testsuite/demangle-expected: Add --no-params to most tests, and add the correct result when parameters are not demangled. Add some simple tests for V3 constructor/destructor recognition. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75336 138bc75d-0d04-0410-961f-82ee72b054a4
* * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'ian2003-12-201-0/+4
| | | | | | | | after the identifier. * testsuite/demangle-expected: Add test case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74885 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix for PR c++/13447:ian2003-12-191-0/+21
| | | | | | | | | | | | | | | | | | | | | | | * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME. (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME. (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like D_COMP_QUAL_NAME. (is_ctor_or_dtor): Likewise. (d_local_name): Use D_COMP_LOCAL_NAME rather than D_COMP_QUAL_NAME. (d_print_comp) [D_COMP_LOCAL_NAME]: New. (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree. (d_print_mod_list): Handle D_COMP_LOCAL_NAME. * testsuite/demangle-expected: Add two test cases. * cp-demangle.c (d_print_function_type): Clear the global modifier list when printing the modifiers, not just when printing the function parameters. * testsuite/demangle-expected: Add two test cases. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74850 138bc75d-0d04-0410-961f-82ee72b054a4
* * cp-demangle.c (d_print_function_type): Print the functionian2003-12-151-0/+5
| | | | | | | | parameters with no modifiers. * testsuite/demangle-expected: Add test case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74652 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix handling of constructor/destructor of standard substitution:ian2003-12-151-1/+11
| | | | | | | | | | | | | | | | | | * cp-demangle.c (struct d_standard_sub_info): Define. (d_substitution): Add prefix argument. Change all callers. Rework handling of standard substitutions to print full name when qualifying a constructor/destructor, or when DMGL_VERBOSE is set. * testsuite/demangle-expected: Add test case. Fix handling of negative literal constants: * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG. (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG. (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number. (d_print_comp): Handle D_COMP_LITERAL_NEG. * testsuite/demangle-expected: Add test case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74632 138bc75d-0d04-0410-961f-82ee72b054a4
* * cp-demangle.c (IS_UPPER, IS_LOWER): Define.ian2003-12-041-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (d_last_char): Define new macro. (d_make_name): Reject an empty name. (d_prefix, d_unqualified_name, d_type): Use new IS_* macros. (d_substitution, d_print_identifier): Likewise. (d_print_comp) [D_COMP_OPERATOR]: Likewise. (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro. (d_print_mod) Use new d_last_char macro. (d_print_cast): Use new d_last_char macro. (is_ctor_or_dtor): Don't leak memory. Fix handling of member function modifiers: * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS, D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS. (d_dump): Dump new d_comp_type values. (d_make_comp): Accept new d_comp_type values. (has_return_type): Only accept _THIS variants of qualifiers. (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of qualifiers. (d_cv_qualifiers): Add member_fn parameter. Change all callers. (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing qualifiers and printing them at the end, add _THIS qualifiers to the modifier list. (d_print_comp) [D_COMP_*_THIS]: New cases. (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of qualifiers. (d_print_mod_list): Add suffix parameter. Change all callers. Keep walking the list even if the current modifier has been printed. (d_print_mod): Handle new _THIS qualifiers. (d_print_function_type): Handle new _THIS qualifiers when deciding whether to print a parenthesis. Put a space before the parenthesis in some cases. Call d_print_mod_list again at the end, passing suffix as 1. (is_ctor_or_dtor): Look for new _THIS qualifiers. * testsuite/demangle-expected: Add test case. Fix for PR gcc/13304: * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character before the '<' is itself a '<', insert a space. (d_print_cast): Likewise. * testsuite/demangle-expected: Add test case. Fix for PR gcc/13244: * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression which uses the '>' operator in an extra layer of parens. * testsuite/demangle-expected: Add test case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74290 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/demangle-expected: Revert one part of 2003-06-26 patchian2003-12-011-2/+13
| | | | | | | | to restore expected result of EDG test case to original expected result. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74128 138bc75d-0d04-0410-961f-82ee72b054a4
* * cp-demangle.c (struct d_print_mod): Add templates field.ian2003-11-261-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (d_make_builtin_type): Check for NULL type. (d_make_extended_operator): Check for NULL name. (d_make_ctor, d_make_dtor): Likewise. (d_mangled_name): Add top_level parameter. Change all callers. (d_encoding): If DMGL_PARAMS is not set, strip off initial CV-qualifiers. (d_type): Check some return values we rely on. (d_bare_function_type, d_array_type): Likewise. (d_pointer_to_member_type, d_template_args): Likewise. (d_add_substitution): Fail if argument is NULL. (d_print_resize): Check whether buf is NULL. (d_print_comp): Save current templates list with each modifier. Don't pass the modifier list down when printing a template. (d_print_cast): Don't pass the modifier list down when printing a template. (d_print_mod_list): Temporarily set templates list while printing a modifier. (d_print_mod): Check that buf is not NULL before using it. (d_print_function_type): Print parens if there is no modifier. (d_init_info): Permit as many substitutions as there are characters in the mangled name. * testsuite/demangle-expected: Add two new test cases. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73970 138bc75d-0d04-0410-961f-82ee72b054a4
* * cp-demangle.c (has_return_type): Skip qualifiers when checkingian2003-11-211-0/+21
| | | | | | | | whether we have a template. * testsuite/demangle-expected: Add four new tests. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73819 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/demangle-expected: Minor changes to match output ofian2003-11-211-5/+5
| | | | | | | | new demangler: adjust whitespace in four tests, and change order of qualifiers in one test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73813 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE toian2003-11-181-1/+1
| | | | | | | cplus_demangle. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73709 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.ian2003-11-181-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73708 138bc75d-0d04-0410-961f-82ee72b054a4
* * cplus-dem.c (demangle_template): Register a new Btype onlybrobecke2003-10-201-0/+6
| | | | | | | | when needed. * testsuite/demangle-expected: Add a new test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72729 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-10-16 H.J. Lu <hongjiu.lu@intel.com>hjl2003-10-161-1/+1
| | | | | | | | * testsuite/demangle-expected: Update the expected output of _GLOBAL__I__Z2fnv. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72552 138bc75d-0d04-0410-961f-82ee72b054a4
* 2003-06-26 H.J. Lu <hongjiu.lu@intel.com>hjl2003-06-261-1/+261
| | | | | | | * testsuite/demangle-expected: Add more GNU V3 testcases. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68540 138bc75d-0d04-0410-961f-82ee72b054a4
* PR other/10810danglin2003-06-051-1/+1
| | | | | | | * test-demangle.c (getline): Fix fence-post error. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67499 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc:zack2002-09-114-60/+199
| | | | | | | | | | | | | | | | | | | | | | | | * Makefile.in: Remove all references to s-under and underscore.c. * collect2.c, tlink.c: Change all uses of prepends_underscore to look directly at USER_LABEL_PREFIX. gcc/cp: * Make-lang.in: Build cp/cxxfilt.o from $(srcdir)/cp/cxxfilt.c, and c++filt from cxxfilt.o + version.o + $(LIBDEPS). * cxxfilt.c: New file: split from libiberty/cplus-dem.c, with minor adjustments (use version_string, eliminate yet another duplicate of xmalloc) libiberty: * cplus-dem.c: Code code under #ifdef MAIN moved to gcc/cp/cxxfilt.c. * testsuite/Makefile.in: Adjust for test-demangle. * testsuite/regress-demangle: Deleted. * testsuite/test-demangle.c: New file. * testsuite/demangle-expected: Change \$ to $ throughout, now that this file is not being read by a shell script. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57037 138bc75d-0d04-0410-961f-82ee72b054a4
* * cp-demangle.c (demangle_identifier): Support extended Unicodejason2002-07-091-0/+4
| | | | | | | characters. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55354 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/demangle-expected: Add test case for infinite loop indj2002-02-191-0/+6
| | | | | | | | | | demangler. * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle if do_type() doesn't make any progress --- prevents an infinite loop. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49875 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-02-18 Carlo Wood <carlo@gnu.org>rodrigc2002-02-181-6/+6
| | | | | | | | | | | | | | PR c++/5390 * cplus-dem.c (demangle_integral_value): Accept multi-digit numbers that do not start with an underscore; This is needed for integer template parameters. This doesn't break anything because multi-digit numbers are never followed by a digit. * testsuite/demangle-expected: Corrected all mangled test cases with multi-digit template parameters: g++ 2.95.x does not generate underscores around these parameters. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49851 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-02-02 H.J. Lu (hjl@gnu.org)hjl2002-02-031-1/+1
| | | | | | | | | | | | | | | | | | | | | * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2. (cplus_demangle_v3_all): New. (cplus_demangle_v3): Call cplus_demangle_v3_all. (cplus_demangle_v3_type): Call cplus_demangle_v3_all. * cplus-dem.c (cplus_demangle_v3_p): New function pointer. Initialized to cplus_demangle_v3. (cplus_demangle_with_style): Call cplus_demangle_v3_p instead of cplus_demangle_v3. (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for command line symbol. * testsuite/regress-demangle: Pass the mangled name at the command line. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49456 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-01-30 Phil Edwards <pme@gcc.gnu.org>pme2002-01-311-0/+4
| | | | | | | | | | * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2. (cplus_demangle_v3): Mimic __cxa_demangle and fall back on cp_demangle_type. * testsuite/demangle-expected: New gnu-v3 test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49353 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>rodrigc2001-12-121-0/+4
| | | | | | | | | PR other/2719 * cplus-dem.c (consume_count): Treat negative count as an error. * testsuite/demangle-expected: Added testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47952 138bc75d-0d04-0410-961f-82ee72b054a4
* Add support for Java demangling under the v3 ABI:bryce2001-02-021-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | * cp-demangle.c (NAMESPACE_SEPARATOR): New define. (struct demangling_def): Add `style' field. (demangling_new): New parameter `style'. Set it in demangling_t. (demangle_prefix): Use NAMESPACE_SEPARATOR. (demangle_type_ptr): Don't emit pointer symbol if doing Java output. (cp_demangle): New parameter `style'. Pass it to demangling_new(). (main): Call cp_demangle with extra parameter. (java_demangle_v3): New function. (java_builtin_type_names): New. Table of primitive type names used for Java demangling. (demangle_builtin_type): Look up in java_builtin_type_names if doing Java output. * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java demangling. (long_options): Remove obsolete `java' option. (main): Remove explicit handling of `java' option. Instead, pass style parameter in cplus_demangle flags as gdb does. * testsuite/demangle.expected: Add some Java test cases. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39399 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/demangle-expected: Add two tests for anonymoushp2000-09-131-0/+8
| | | | | | | | namespaces. * cplus-dem.c (gnu_special): Handle anonymous namespaces. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36398 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/demangle-expected: Add four tests for type_infohp2000-09-101-0/+16
| | | | | | | | | | mangling. * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type, for a non-template non-qualified type_info function or node. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36301 138bc75d-0d04-0410-961f-82ee72b054a4
* Add testcases and missing changelogs:hp2000-08-311-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | | 2000-08-31 Hans-Peter Nilsson <hp@axis.com> * testsuite/demangle-expected: Add nine tests for underscore-after-number followed by five tests for name-signature delimiter. 2000-07-24 Hans-Peter Nilsson <hp@axis.com> * cplus-dem.c (work_stuff_copy_to_from): New. (delete_non_B_K_work_stuff): New. (delete_work_stuff): New. (mop_up): Break out work_stuff destruction to delete_work_stuff. (iterate_demangle_function): New. (demangle_prefix): Call iterate_demangle_function instead of demangle_function_name. Leave handling of name-signature __-delimiters to iterate_demangle_function. * cplus-dem.c (demangle_integral_value): Strip an optional following underscore cautiously. Handle negative numbers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36086 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/regress-demangle (failed test): Show result andhp2000-07-171-0/+2
| | | | | | | expected output. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35093 138bc75d-0d04-0410-961f-82ee72b054a4
* * cplus-dem.c (INTBUF_SIZE): New macro.mmitchel1999-10-191-0/+12
| | | | | | | | | | | | | | | | (string_append_template_idx): New function. (demangle_expression): Likewise. (demangle_integral_value): Use it. (demangle_real_value): New function, split out from ... (demangle_template_value_parm): ... here. Use string_append_template_idx. Use demangle_real_value. (demangle_template): Use string_append_template_idx. (demangle_qualified): Use consume_count_with_underscores. (get_count): Tweak formatting. (do_type): Use string_append_template_idx. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30091 138bc75d-0d04-0410-961f-82ee72b054a4
* * cplus-dem.c (do_type): Handle pointer to member types whosemmitchel1999-10-111-0/+4
| | | | | | | enclosing classes have namespace scope. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29901 138bc75d-0d04-0410-961f-82ee72b054a4
* * cplus-dem.c (demangle_template_value_parm): Handlemmitchel1999-04-111-0/+4
| | | | | | | | pointers-to-members. (do_type): Handle template parameters as qualifiers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26350 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/regress-demangle: New file.tromey1999-04-053-0/+2571
* testsuite/demangle-expected: New file. * Makefile.in (all, check, installcheck, info, install-info, clean-info, dvi, install, etags, tags, mostlyclean, clean, distclean, maintainer-clean, realclean): Depend on corresponding `-subdir' target. (all-subdir check-subdir installcheck-subdir info-subdir install-info-subdir clean-info-subdir dvi-subdir install-info-subdir etags-subdir mostlyclean-subdir clean-subdir distclean-subdir maintainer-clean-subdir): New target. * testsuite/Makefile.in: New file. * configure: Rebuilt. * configure.in: Create testsuite/Makefile. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26205 138bc75d-0d04-0410-961f-82ee72b054a4