aboutsummaryrefslogtreecommitdiff
path: root/libiberty/testsuite
AgeCommit message (Collapse)AuthorFilesLines
2012-01-10merge from gccDJ Delorie1-0/+3
2012-01-06merge from gccDJ Delorie1-1/+52
2011-10-10merge from gccDJ Delorie1-0/+5
2011-09-23merge from gccDJ Delorie1-0/+47
2011-08-06merge from gccDJ Delorie2-2/+9
2011-07-31Sync with gcc.H.J. Lu1-1/+0
2011-07-26 H.J. Lu <hongjiu.lu@intel.com> * testsuite/demangle-expected: Remove an extra line.
2011-07-26merge from gccDJ Delorie1-0/+6
2011-07-05merge from gccDJ Delorie1-0/+4
2011-07-01merge from gccJan Kratochvil1-1/+17
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-1/+4
2011-06-13merge from gccDJ Delorie2-4/+35
2011-04-10merge from gccDJ Delorie1-1/+1
2010-11-16Properly demangle a global constructor symbol.H.J. Lu1-2/+2
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-2/+7
2010-09-27merge from gccDJ Delorie1-0/+30
2010-09-102010-09-10 James Lyon <jameslyon0@googlemail.com>Tom Tromey1-0/+5
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-0/+3
* 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-26merge from gccDJ Delorie1-0/+10
2010-05-06merge from gccDJ Delorie1-0/+3
2010-03-22merge from gccDJ Delorie1-2/+2
2010-02-04merge from gccDJ Delorie1-0/+1
2010-02-03merge from gccDJ Delorie1-2/+16
2010-01-11merge from gccDJ Delorie1-0/+95
2009-10-09merge from gccDJ Delorie1-1/+33
2009-10-02merge from gccDJ Delorie1-5/+21
2009-06-16 PR 10197Nick Clifton1-5/+5
* testsuite/test-demangle.c: Rename getline to get_line to avoid conflicts with system function of the same name.
2009-03-23merge from gccDJ Delorie1-3/+7
2009-03-18merge from gccDJ Delorie1-7/+11
2008-10-07merge from gccDJ Delorie1-14/+18
2008-09-09merge from gccDJ Delorie1-0/+16
2008-04-18merge from gccDJ Delorie1-0/+20
2008-02-19 PR other/12618Ben Elliston1-1/+2
* testsuite/Makefile.in (mostlyclean): Remove any core file.
2008-01-27include/David Daney1-0/+4
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-05-06 * cp-demangle.c (d_name): Detect local-source-name.Geoffrey Keating1-0/+16
(d_prefix): Likewise. (d_unqualified_name): Implement local-source-name.
2007-03-16 * cp-demangle.c (d_encoding): Exit early on error.Geoffrey Keating1-0/+4
(d_pointer_to_member_type): Exit early if cplus_demangle_type returns NULL. (cplus_demangle_type): Likewise. * testsuite/demangle-expected: New testcase.
2007-03-05merge from gccDJ Delorie1-1/+2
2006-12-21 * cp-demangle.h: Add comment explaining what to do to avoidGeoffrey Keating2-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.
2006-10-11merge from gccDJ Delorie1-1/+1
2006-09-22merge from gccDJ Delorie1-0/+5
2006-08-28merge from gccDJ Delorie1-0/+6
2006-04-07merge from gccDJ Delorie1-2/+2
2006-01-21merge from gccDJ Delorie2-1/+307
2005-12-11merge from gccDJ Delorie2-1/+31
2005-08-172005-08-17 Kelley Cook <kcook@gcc.gnu.org>Kelley Cook3-4/+4
* strverscmp.c: Update FSF address. * testsuite/Makefile.in: Likewise. * testsuite/test-demangle.c: Likewise. * testsuite/test-pexecute.c: Likewise.
2005-07-03merge from gccDJ Delorie1-0/+6
2005-05-25include/Richard Henderson1-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.
2005-05-11merge from gccDJ Delorie3-4/+4
2005-05-10Update the address and phone number of the FSF organization.Nick Clifton3-4/+4
2005-04-04merge from gccDJ Delorie1-2/+3
2005-03-29libiberty:Ian Lance Taylor2-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.