summaryrefslogtreecommitdiffstats
path: root/libiberty/cplus-dem.c
Commit message (Collapse)AuthorAgeFilesLines
* * testsuite/demangle-expected: Add test case for infinite loop indj2002-02-191-2/+9
| | | | | | | | | | 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-5/+16
| | | | | | | | | | | | | | 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
* * demangle.h (cplus_demangle_v3): Add "options" parm.jason2002-02-051-7/+4
| | | | | | | | | | | | | | | | | | (cplus_demangle_v3_type): Remove prototype. (DMGL_VERBOSE): New macro. (DMGL_TYPES): New macro. * cplus-dem.c (flags): Add DMGL_VERBOSE (cplus_demangle_v3_p): Remove. (demangle_it): Add DMGL_TYPES to passed flags. * cp-demangle.c (cplus_demangle_v3_all): Remove. (cplus_demangle_v3_type): Remove. (cplus_demangle_v3): Add options parm. * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49525 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-02-02 H.J. Lu (hjl@gnu.org)hjl2002-02-031-1/+5
| | | | | | | | | | | | | | | | | | | | | * 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
* * gcc.c (default_compilers): Const-ify.ghazi2002-01-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * mips-tdump.c (stab_names): Likewise. * mips-tfile.c (map_coff_types, map_coff_storage, map_coff_sym_type, map_coff_derived_type, stabs_symbol, pseudo_ops_t, pseudo_ops): Likewise. * protoize.c (default_include): Likewise f: * com.c (clear_binding_level): Const-ify. (ffecom_arglist_expr_): Likewise. * info.c (ffeinfo_types_): Don't needlessly zero init. * lex.c (ffelex_hash_kludge): Const-ify. java: * parse.y (src_parse_roots): Don't needlessly zero init. libiberty: * cp-demangle.c (long_options): Const-ify. * cplus-dem.c (long_options): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48485 138bc75d-0d04-0410-961f-82ee72b054a4
* * cplus-dem.c (mystrstr): Delete. All callers changed to useghazi2002-01-021-27/+8
| | | | | | | strstr instead. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48476 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>rodrigc2001-12-121-0/+3
| | | | | | | | | 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
* * demangle.h (no_demangling): New.rth2001-12-061-0/+10
| | | | | | | | | | (NO_DEMANGLING_STYLE_STRING): New. * cplus-dem.c (libiberty_demanglers): Add no_demangling case. (cplus_demangle): Support no_demangling. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47733 138bc75d-0d04-0410-961f-82ee72b054a4
* * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,dj2001-10-171-1/+1
| | | | | | | | | | ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c, mkstemps.c, pexecute.c, random.c, strsitnal.c, vasprintf.c: Improve manual formatting. * functions.texi: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46323 138bc75d-0d04-0410-961f-82ee72b054a4
* include:ghazi2001-10-071-7/+7
| | | | | | | | | | | | | | | | | | | | * demangle.h (demangler_engine): Const-ify. * libiberty.h (buildargv): Likewise. libiberty: * argv.c (buildargv, tests, main): Const-ify. * cp-demangle.c (operator_code): Likewise. * cplus-dem.c (optable, libiberty_demanglers, cplus_demangle_set_style, cplus_demangle_name_to_style, print_demangler_list): Likewise. * hashtab.c (higher_prime_number): Likewise. * strcasecmp.c (charmap): Likewise. * strerror.c (error_info, strerror, main): Likewise. * strncasecmp.c (charmap): Likewise. * strsignal.c (signal_info): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46060 138bc75d-0d04-0410-961f-82ee72b054a4
* * cplus-dem.c (main): Skip initial $.jason2001-03-201-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40655 138bc75d-0d04-0410-961f-82ee72b054a4
* * cplus-dem.c (main): Cast enum style to int.danglin2001-03-051-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40242 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-02-16 Loren J. Rittle <ljrittle@acm.org>bryce2001-02-161-1/+1
| | | | | | | * cplus-dem.c (main): Initialize style. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39782 138bc75d-0d04-0410-961f-82ee72b054a4
* Add support for Java demangling under the v3 ABI:bryce2001-02-021-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | * 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
* include:zack2000-12-081-32/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * safe-ctype.h: New file. libiberty: * safe-ctype.c: New file. * Makefile.in (CFILES): Add safe-ctype.c. (REQUIRED_OFILES): Add safe-ctype.o. * argv.c: Define ISBLANK and use it, not isspace. * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c, strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c) before calling TOLOWER(c)/TOUPPER(c). gcc: * Makefile.in (HOST_RTL): Add safe-ctype.o. (safe-ctype.o): New rule. * system.h: Include safe-ctype.h, not ctype.h. No need to wrap ctype macros. * cpphash.h: Zap IStable and related macros. Define is_* in terms of safe-ctype.h macros. * cppinit.c: Delete the IStable and all related code. * tradcpp.c: Delete is_idchar, is_idstart, is_hor_space, and is_space arrays. Delete initialize_char_syntax. Change all references to the above arrays to use macros instead. * tradcpp.h: Define is_idchar, is_idstart, is_space, and is_nvspace in terms of safe_ctype.h's macros. * tradcif.y: is_idchar, is_idstart are macros not arrays. * config/i370/i370.c, config/winnt/dirent.c, config/winnt/fixinc-nt.c, config/winnt/ld.c: Use uppercase ctype macros. If we included ctype.h, include safe-ctype.h instead. * fixinc/fixfixes.c: Use uppercase ctype macros. Don't test ISLOWER(c) before calling TOUPPER(c). * fixinc/fixincl.c (extract_quoted_files): Simplify out some gunk. * fixinc/gnu-regex.c: Include safe-ctype.h, not ctype.h. No need to wrap ctype macros. Don't test ISUPPER(x) before calling TOLOWER(x). gcc/ch: * lex.c: Don't bother checking whether ISUPPER(c) before calling TOLOWER(c). Don't bother checking whether isascii(c) before testing ISSPACE(c); ISSPACE(c) includes '\n'. gcc/f: * Make-lang.in: Link f/fini with safe-ctype.o. * bad.c: Don't test ISUPPER(c) || ISLOWER(c) before calling TOUPPER(c). * com.c: Use TOUPPER, not ffesrc_toupper. * fini.c: Don't test ISALPHA(c) before calling TOUPPER(c)/TOLOWER(c). * intrin.c: Don't test IN_CTYPE_DOMAIN(c). * src.c: Delete ffesrc_toupper_ and ffesrc_tolower_ and their initializing code; use TOUPPER and TOLOWER instead of ffesrc_toupper and ffesrc_tolower. * src.h: Don't declare ffesrc_toupper_ or ffesrc_tolower_. Don't define ffesrc_toupper or ffesrc_tolower. gcc/java: * jvgenmain.c: Use ISPRINT not isascii. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38124 138bc75d-0d04-0410-961f-82ee72b054a4
* * cp-demangle.c: s/new_abi/v3/.jason2000-12-041-12/+17
| | | | | | | | | | * cplus-dem.c: Likewise. (current_demangling_style): Now auto_demangling. (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING. (main): Use standard symbol chars for auto_demangling. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38002 138bc75d-0d04-0410-961f-82ee72b054a4
* * cplus-dem.c (main): Handle gnat_demangling.hp2000-11-221-0/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37679 138bc75d-0d04-0410-961f-82ee72b054a4
* * cplus-dem.c (cplus_demangle): Fix formatting.hp2000-11-211-31/+33
| | | | | | | | | | | | (grow_vect): Ditto. (ada_demangle): Ditto. (internal_cplus_demangle): Ditto. (mop_up): Ditto. * cplus-dem.c (main): Handle java_demangling. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37612 138bc75d-0d04-0410-961f-82ee72b054a4
* * cplus-dem.c (grow_vect): Prototype.ghazi2000-11-191-4/+8
| | | | | | | (ada_demangle): Cast the arg of ctype macros to unsigned char. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37563 138bc75d-0d04-0410-961f-82ee72b054a4
* * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED forhp2000-11-161-1/+1
| | | | | | | | parameter `option'. Do s/cplus_dem.c/cplus-dem.c/g on ChangeLog. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37494 138bc75d-0d04-0410-961f-82ee72b054a4
* * cplus_dem.c: Eliminate use of DEFUN, it is obsolete and cannotgerald2000-11-151-8/+8
| | | | | | | be used in GCC. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37483 138bc75d-0d04-0410-961f-82ee72b054a4
* * cplus_dem.c: Add gnat demangler. Add java to demangle stylehp2000-11-151-0/+148
| | | | | | | list. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37475 138bc75d-0d04-0410-961f-82ee72b054a4
* * testsuite/demangle-expected: Add two tests for anonymoushp2000-09-131-0/+19
| | | | | | | | 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-1/+1
| | | | | | | | | | 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
* In include:samuel2000-09-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * dyn-string.h: Adjust formatting. (dyn_string_insert_char): New macro. New declaration. In libiberty: * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro. (substitution_def): Remove template_parm_number. (NOT_TEMPLATE_PARM): Remove. (result_insert_string): New macro. (result_insert): Likewise. (result_insert_char): Likewise. (substitution_add): Remove last parameter. Don't store template parm number. (BFT_NO_RETURN_TYPE): Define as NULL. (demangle_encoding): Adjust call to demangle_bare_function_type. (demangle_name): Adjust substitution. Adjust call to substitution_add. (demangle_prefix): Adjust call to substitution_add. (demangle_identifier): Handle anonymous namespaces. (demangle_operator_name): Change demangling of vendor-extended operator to match ABI changes. (demangle_type_ptr): Change parameters. Make recursive. Handle substitutions here. (demangle_type): Adjust calls to demangle_template_param, substitution_add, and demangle_type_ptr. Fix substitution of templated types. (demangle_function_type): Change parameter to a pointer. (demangle_bare_function_type): Likewise. Adjust insertion point. (demangle_template_param): Remove last parameter. (demangle_expr_primary): Remove unused variable. Adjust call to demangle_template_param. (is_mangled_char): Accept `$' and `.'. * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'. * dyn-string.c (dyn_string_insert_char): New function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36148 138bc75d-0d04-0410-961f-82ee72b054a4
* * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,gkm2000-08-241-13/+12
| | | | | | | | demangle_expression, demangle_function_name): Use ARRAY_SIZE. * libiberty/random.c (end_ptr): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35948 138bc75d-0d04-0410-961f-82ee72b054a4
* * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) tojason2000-08-121-31/+243
| | | | | | | if (AUTO_DEMANGLING || GNU_DEMANGLING) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35652 138bc75d-0d04-0410-961f-82ee72b054a4
* * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,law2000-07-201-2/+2
| | | | | | | and print it with %u. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35153 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-07-07 Andrew Haley <aph@cygnus.com>aph2000-07-071-0/+1
| | | | | | | | * cplus-dem.c (main): fflush() after emitting last char before waiting for input. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34902 138bc75d-0d04-0410-961f-82ee72b054a4
* In include,samuel2000-06-051-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * dyn-string.h: Move here from gcc/dyn-string.h. Add new functions. * demangle.h (DMGL_GNU_NEW_ABI): New macro. (DMGL_STYLE_MASK): Or in DMGL_GNU_NEW_ABI. (current_demangling_style): Add gnu_new_abi_demangling. (GNU_NEW_ABI_DEMANGLING_STYLE_STRING): New macro. (GNU_NEW_ABI_DEMANGLING): Likewise. (cplus_demangle_new_abi): New declaration. In libiberty, * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c. (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o. (cp-demangle.o): New dependency. (dyn-string.o): Likewise. * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions. * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI demangler. (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI demangling mode. (gnu_new_abi_symbol_characters): New function. (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New file. * cp-demangle.c: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34397 138bc75d-0d04-0410-961f-82ee72b054a4
* include:ghazi2000-05-041-4/+5
| | | | | | | | | | | | * demangle.h (demangler_engine): Constify. libiberty: * cplus-dem.c (cplus_demangle_opname, demangle_function_name): Cast the arguments to `islower' to `unsigned char'. (print_demangler_list): Prototype. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33679 138bc75d-0d04-0410-961f-82ee72b054a4
* * libiberty/cplus-dem.cjason2000-04-281-29/+121
| | | | | | | | | | | | | (libiberty_demanglers): new table for demangle styles (cplus_demangle_set_style): New function for setting style (cplus_demangle_name_to_style): New function to translate name * include/demangle.h (libiberty_demanglers): new table for different styles (cplus_demangle_set_style): New function for setting style (cplus_demangle_name_to_style): New function to translate name git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33525 138bc75d-0d04-0410-961f-82ee72b054a4
* * cplus-dem.c (cplus_demangle_opname): Changed to use islower.rth2000-04-171-4/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33189 138bc75d-0d04-0410-961f-82ee72b054a4
* * cplus-dem.c: Move declarations of standard_symbol_characters andlaw1999-10-261-6/+6
| | | | | | | | hp_symbol_characters inside #ifdef MAIN to avoid compiler warnings. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30175 138bc75d-0d04-0410-961f-82ee72b054a4
* * cplus-dem.c (INTBUF_SIZE): New macro.mmitchel1999-10-191-107/+146
| | | | | | | | | | | | | | | | (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-1/+14
| | | | | | | 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 (fancy_abort, demangle_integral_value,ghazi1999-10-021-8/+30
| | | | | | | | | | | demangle_arm_hp_template, recursively_demangle, standard_symbol_characters, hp_symbol_characters, main): Add prototype. (program_name, program_version, fatal): Constify a char*. (usage, fatal): Mark with ATTRIBUTE_NORETURN. (main): Call return, not exit. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29776 138bc75d-0d04-0410-961f-82ee72b054a4
* Warning fixes:ghazi1999-08-251-5/+5
| | | | | | | | | | | | | * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when comparing against a signed quantity. (arm_special): Likewise. (demangle_fund_type): Likewise. (do_hpacc_template_const_value): Mark parameter `work' with ATTRIBUTE_UNUSED. (main): Constify variable `valid_symbols'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28859 138bc75d-0d04-0410-961f-82ee72b054a4
* * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advancelaw1999-05-171-6/+8
| | | | | | | | the *mangled pointer beyond the end of the string. Clean up code to match prevailing coding style. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26959 138bc75d-0d04-0410-961f-82ee72b054a4
* * cplus-dem.c (standard_symbol_characters): Renamed fromlaw1999-05-131-26/+15
| | | | | | | | | | | standard_symbol_alphabet. No longer modify TABLE. (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer modify TABLE. (main): Corresponding changes. Use strchr to determine if a character is valid. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26912 138bc75d-0d04-0410-961f-82ee72b054a4
* * cplus-dem.c (main): Use table lookup to distinguish identifierjimb1999-05-111-5/+80
| | | | | | | | characters from non-identifier characters. (standard_symbol_alphabet, hp_symbol_alphabet): New functions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26887 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix from Dale Hawkins:jimb1999-04-201-1/+10
| | | | | | | | | | * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be reallocated properly if we use it again. * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be stricter about syntax. Always null-terminate string. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26562 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix from Marcus Daniels:jimb1999-04-121-1/+1
| | | | | | | | * cplus-dem.c (demangle_fund_type): Don't run off the end of the identifier looking for another underscore. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26373 138bc75d-0d04-0410-961f-82ee72b054a4
* * cplus-dem.c (demangle_template_value_parm): Handlemmitchel1999-04-111-31/+45
| | | | | | | | 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
* 1999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>tromey1999-04-091-42/+116
| | | | | | | | | | | | * cplus-dem.c: Attempt to handle overflows in counts with some semblance of grace. (consume_count): Detect overflows. Return -1 to indicate errors, instead of zero. (demangle_template_value_parm, demangle_template): Handle change to consume_count's return convention. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26309 138bc75d-0d04-0410-961f-82ee72b054a4
* Changes from official libiberty sources.law1999-04-071-14/+37
| | | | | | | | | * Missing ChangeLog entries. * Some java demangling stuff * More cygwin32->cygwin related changes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26236 138bc75d-0d04-0410-961f-82ee72b054a4
* * cplus-dem.c (consume_count): If `count' wraps, return 0 andtromey1999-03-301-2/+12
| | | | | | | | | | don't advance input pointer. (demangle_class_name): If consume_count didn't find a count, do nothing. Don't bother with `strlen' sanity check; consume_count does it for us. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26068 138bc75d-0d04-0410-961f-82ee72b054a4
* (mop_up): Set work->previous_argument to NULL after freeing it.drepper1999-01-141-116/+116
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24663 138bc75d-0d04-0410-961f-82ee72b054a4
* Warning fixes:ghazi1998-12-221-17/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * argv.c (buildargv): Cast the result of alloca in assignment. * choose-temp.c: Include stdlib.h. * cplus-dem.c (demangle_arm_pt): Remove unused prototype. (snarf_numeric_literal): Constify first parameter. (code_for_qualifier): Avoid a gcc extension, make the parameter an int, not a char. (demangle_qualifier): Likewise. (demangle_signature): Cast the argument of a ctype function to unsigned char. (arm_pt): Add parens around assignment used as truth value. (demangle_arm_hp_template): Constify variable `args'. (do_hpacc_template_const_value): Cast the argument of a ctype function to unsigned char. (do_hpacc_template_literal): Remove unused variable `i'. (snarf_numeric_literal): Constify parameter `args'. Cast the argument of a ctype function to unsigned char. * floatformat.c (floatformat_to_double): Add explicit braces to avoid ambiguous `else'. * fnmatch.c (fnmatch): Change type of variables `c', `c1', `cstart' and `cend' to unsigned char. Cast the argument of macro `FOLD', which uses ctype functions, to unsigned char. * objalloc.c (free): Add prototype. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24392 138bc75d-0d04-0410-961f-82ee72b054a4
* Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>amacleod1998-12-181-3/+4
| | | | | | | | | * cplus-dem.c (demangle_fund_type): Process CV and u codes before bumping the pointer we read from. Also prepend these codes, as we do in other places. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24374 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud