aboutsummaryrefslogtreecommitdiff
path: root/libiberty/testsuite
AgeCommit message (Collapse)AuthorFilesLines
2014-10-28Add strtoll and strtoull to libiberty.Yury Gribov2-1/+195
2014-10-28 Yury Gribov <y.gribov@samsung.com> include/ * libiberty.h (strtol, strtoul, strtoll, strtoull): New prototypes. libiberty/ * strtoll.c: New file. * strtoull.c: New file. * configure.ac: Add long long checks. Add harness for strtoll and strtoull. Check decls for strtol, strtoul, strtoll, strtoull. * Makefile.in (CFILES, CONFIGURED_OFILES): Add strtoll and strtoull. * config.in: Regenerate. * configure: Regenerate. * functions.texi: Regenerate. * testsuite/Makefile.in (check-strtol): New rule. (test-strtol): Likewise. (mostlyclean): Clean up strtol test. * testsuite/test-strtol.c: New test. From-SVN: r216772
2014-09-26mangle.c (is_std_substitution): Check for abi_tag.Jason Merrill1-0/+3
gcc/cp/ * mangle.c (is_std_substitution): Check for abi_tag. libiberty/ * cp-demangle.c (d_substitution): Handle abi tags on abbreviation. From-SVN: r215647
2014-09-23demangle.h (DMGL_DLANG): New macro.Iain Buclaw2-1/+940
include/: * demangle.h (DMGL_DLANG): New macro. (DMGL_STYLE_MASK): Add DMGL_DLANG. (demangling_styles): Add dlang_demangling. (DLANG_DEMANGLING_STYLE_STRING): New macro. (DLANG_DEMANGLING): New macro. (dlang_demangle): New prototype. libiberty/: * Makefile.in (CFILES): Add d-demangle.c. (REQUIRED_OFILES): Add d-demangle.o. * cplus-dem.c (libiberty_demanglers): Add dlang_demangling case. (cplus_demangle): Likewise. * d-demangle.c: New file. * testsuite/Makefile.in (really-check): Add check-d-demangle. * testsuite/d-demangle-expected: New file. From-SVN: r215530
2014-08-29cp-demangle.c (d_dump): Only access field from s_fixed part of the union for ↵Andrew Burgess1-0/+5
DEMANGLE_COMPONENT_FIXED_TYPE. * cp-demangle.c (d_dump): Only access field from s_fixed part of the union for DEMANGLE_COMPONENT_FIXED_TYPE. (d_count_templates_scopes): Likewise. From-SVN: r214740
2014-08-13demangler-fuzzer.c: New file.Gary Benson2-0/+117
libiberty/ * testsuite/demangler-fuzzer.c: New file. * testsuite/Makefile.in (fuzz-demangler): New rule. (demangler-fuzzer): Likewise. (mostlyclean): Clean up demangler fuzzer. From-SVN: r213912
2014-05-22Fix test in libiberty/testsuite/demangle-expected.Thomas Schwinge1-0/+1
libiberty/ * testsuite/demangle-expected: Fix last commit. From-SVN: r210803
2014-05-14cplus-dmem.c (internal_cplus_demangle): Free any resources allocated by ↵Andrew Burgess1-0/+4
possible previous call to gnu_special. libiberty/ 2014-05-14 Andrew Burgess <aburgess@broadcom.com> * cplus-dmem.c (internal_cplus_demangle): Free any resources allocated by possible previous call to gnu_special. (squangle_mop_up): Reset pointers to NULL after calling free. * testsuite/demangle-expected: New test case. From-SVN: r210425
2014-05-08cp-demangle.c (struct d_component_stack): New structure.Gary Benson1-0/+26
libiberty/ 2014-05-08 Gary Benson <gbenson@redhat.com> * cp-demangle.c (struct d_component_stack): New structure. (struct d_print_info): New field component_stack. (d_print_init): Initialize the above. (d_print_comp_inner): Renamed from d_print_comp. Do not restore template stack if it would cause a loop. (d_print_comp): New function. * testsuite/demangle-expected: New test cases. From-SVN: r210205
2013-11-22Fix demangler to handle conversion operators correctly.Cary Coutant1-0/+20
libiberty/ PR other/59195 * cp-demangle.c (struct d_info_checkpoint): New struct. (struct d_print_info): Add current_template field. (d_operator_name): Set flag when processing a conversion operator. (cplus_demangle_type): When processing <template-args> for a conversion operator, backtrack if necessary. (d_expression_1): Renamed from d_expression. (d_expression): New wrapper around d_expression_1. (d_checkpoint): New function. (d_backtrack): New function. (d_print_init): Initialize current_template. (d_print_comp): Set current_template. (d_print_cast): Put current_template in scope for printing conversion operator name. (cplus_demangle_init_info): Initialize is_expression and is_conversion. * cp-demangle.h (struct d_info): Add is_expression and is_conversion fields. * testsuite/demangle-expected: New test cases. From-SVN: r205292
2013-10-27* testsuite/test-demangle.c: Include unistd.h.Gerald Pfeifer1-0/+3
From-SVN: r204107
2013-10-25cp-demangle.c (struct d_saved_scope): New structure.Gary Benson1-0/+3
libiberty/ 2013-10-25 Gary Benson <gbenson@redhat.com> * 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. From-SVN: r204068
2013-10-23* testsuite/test-expandargv.c: Include unistd.h.Gerald Pfeifer1-0/+3
From-SVN: r203993
2013-10-11cp-demangle.c (d_name): Demangle local-source-names.Paul Pluzhnikov1-0/+3
2013-10-11 Paul Pluzhnikov <ppluzhnikov@google.com> * cp-demangle.c (d_name): Demangle local-source-names. * testsuite/demangle-expected: New test. From-SVN: r203476
2013-09-10re PR bootstrap/58386 (libstdc++.so.6: undefined symbol: htab_hash_pointer)Paolo Carlini1-3/+0
2013-09-10 Paolo Carlini <paolo.carlini@oracle.com> PR bootstrap/58386 Revert: 2013-09-10 Gary Benson <gbenson@redhat.com> * cp-demangle.c: Include hashtab.h. (struct d_print_info): New field saved_scopes. (d_print_init): Initialize the above. (d_print_free): New function. (cplus_demangle_print_callback): Call the above. (struct d_saved_scope): New structure. (d_store_scope): New function. (d_free_scope) Likewise. (d_restore_scope) Likewise. (d_hash_saved_scope) Likewise. (d_equal_saved_scope) Likewise. (d_print_comp): New variable saved_scope. [DEMANGLE_COMPONENT_REFERENCE, DEMANGLE_COMPONENT_RVALUE_REFERENCE]: Capture scope the first time the component is traversed, and use the captured scope for subsequent traversals. From-SVN: r202480
2013-09-10cp-demangle.c: Include hashtab.h.Gary Benson1-0/+3
2013-09-10 Gary Benson <gbenson@redhat.com> * cp-demangle.c: Include hashtab.h. (struct d_print_info): New field saved_scopes. (d_print_init): Initialize the above. (d_print_free): New function. (cplus_demangle_print_callback): Call the above. (struct d_saved_scope): New structure. (d_store_scope): New function. (d_free_scope) Likewise. (d_restore_scope) Likewise. (d_hash_saved_scope) Likewise. (d_equal_saved_scope) Likewise. (d_print_comp): New variable saved_scope. [DEMANGLE_COMPONENT_REFERENCE, DEMANGLE_COMPONENT_RVALUE_REFERENCE]: Capture scope the first time the component is traversed, and use the captured scope for subsequent traversals. From-SVN: r202442
2013-04-03cp-demangle.c (cplus_demangle_type): Fix function quals.Jason Merrill1-2/+2
libiberty/ * cp-demangle.c (cplus_demangle_type): Fix function quals. (d_pointer_to_member_type): Simplify. gcc/cp/ * mangle.c (write_type): When writing a function type with function-cv-quals, don't add the unqualified type as a substitution candidate. From-SVN: r197460
2013-04-03Demangle C++11 ref-qualifier.Jason Merrill1-0/+12
include/ * demangle.h (enum demangle_component_type): Add DEMANGLE_COMPONENT_REFERENCE_THIS, DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS. libiberty/ * cp-demangle.c (d_ref_qualifier): New. (d_nested_name, d_function_type): Use it. (d_parmlist): Don't get confused by a ref-qualifier. (cplus_demangle_type): Reorder ref-qualifier. (d_pointer_to_member_type): Likewise. (d_dump): Handle DEMANGLE_COMPONENT_REFERENCE_THIS and DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS. (d_make_comp, has_return_type, d_encoding): Likewise. (d_print_comp, d_print_mod_list, d_print_mod): Likewise. (d_print_function_type, is_ctor_or_dtor): Likewise. From-SVN: r197436
2013-02-14re PR c++/55223 ([C++11] Default lambda expression of a templated class member)Jason Merrill1-0/+3
PR c++/55223 gcc/cp/ * pt.c (tsubst_copy_and_build) [LAMBDA_EXPR]: Fix handling of default argument scope. * mangle.c (write_name): Likewise. libiberty/ * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_DEFAULT_ARG. (d_print_comp): Likewise. From-SVN: r196065
2012-11-10cp-demangle.c (d_unqualified_name): Handle abi tags here.Jason Merrill1-0/+3
* cp-demangle.c (d_unqualified_name): Handle abi tags here. (d_name): Not here. From-SVN: r193401
2012-07-18cp-demangle.c (cplus_demangle_operators): Add *_cast.Jason Merrill1-0/+3
* cp-demangle.c (cplus_demangle_operators): Add *_cast. (op_is_new_cast): New. (d_expression, d_print_comp): Check it. From-SVN: r189630
2012-05-22demangle-expected: Add regression test.Tom Tromey1-0/+4
http://sourceware.org/bugzilla/show_bug.cgi?id=14065 * testsuite/demangle-expected: Add regression test. * cp-demangle.c (d_find_pack): Return NULL for DEMANGLE_COMPONENT_UNNAMED_TYPE. From-SVN: r187773
2012-03-21mangle.c (write_type): Handle 'auto'.Jason Merrill1-0/+6
gcc/cp/ * mangle.c (write_type): Handle 'auto'. * init.c (build_new): Don't do auto deduction where it might affect template mangling. libiberty/ * cp-demangle.c (cplus_demangle_type): Handle 'auto'. From-SVN: r185595
2012-03-07cp-demangle.c (cplus_demangle_operators): Add li.Jason Merrill1-0/+3
* cp-demangle.c (cplus_demangle_operators): Add li. (d_unqualified_name): Handle it specially. From-SVN: r185082
2012-01-10cp-demangle.c (d_print_comp): Omit a trailing space in the operator name.Jason Merrill1-0/+3
* cp-demangle.c (d_print_comp) [DEMANGLE_COMPONENT_OPERATOR]: Omit a trailing space in the operator name. From-SVN: r183072
2012-01-06re PR c++/6057 (expression mangling doesn't work for operator new)Jason Merrill1-1/+40
PR c++/6057 PR c++/48051 PR c++/50855 PR c++/51322 gcc/cp/ * mangle.c (write_expression): Support NEW_EXPR, DELETE_EXPR, THROW_EXPR, CONSTRUCTOR, OVERLOAD. Fix PREINCREMENT_EXPR and PREDECREMENT_EXPR. (write_template_arg): Fix mangling of class-scope functions and argument packs. (mangle_decl): Update suggested -fabi-version argument. * operators.def: Add DOTSTAR_EXPR, REINTERPRET_CAST_EXPR, DYNAMIC_CAST_EXPR; correct CONST_CAST_EXPR, STATIC_CAST_EXPR. * tree.c (dependent_name): No longer static. * cp-tree.h: Declare it. * pt.c (unify): Defer handling of unconverted functions. include/ * demangle.h (enum demangle_component_type): Add DEMANGLE_COMPONENT_INITIALIZER_LIST, DEMANGLE_COMPONENT_NULLARY. libiberty/ * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_NULLARY and DEMANGLE_COMPONENT_INITIALIZER_LIST. (d_make_comp): Likewise. Allow null right arg for DEMANGLE_COMPONENT_TRINARY_ARG2. (cplus_demangle_operators): Adjust new/delete; add .*, :: and throw. (d_template_args, d_template_arg): Handle 'J' for argument packs. (d_exprlist): Add terminator parm. (d_expression, d_print_comp): Handle initializer lists, nullary expressions, prefix/suffix operators, and new. (d_print_subexpr): Avoid parens around DEMANGLE_COMPONENT_QUAL_NAME and DEMANGLE_COMPONENT_INITIALIZER_LIST. * testsuite/demangle-expected: Add tests. From-SVN: r182970
2012-01-06cp-demangle.c (cplus_demangle_type): decltype, pack expansion and vector are ↵Jason Merrill1-0/+12
substitutable. * cp-demangle.c (cplus_demangle_type): decltype, pack expansion and vector are substitutable. (cplus_demangle_operators): Sort. From-SVN: r182969
2011-10-10re PR c++/48665 (type of const member function)Ian Lance Taylor1-0/+5
PR c++/48665 * cp-demangle.c (d_cv_qualifiers): If qualifiers are applied to a function type, change them to apply to the "this" parameter. * testsuite/demangle-expected: Add test case. From-SVN: r179772
2011-09-23re PR c++/40831 (g++ generated symbols for cloned function that be demangled.)Cary Coutant1-0/+47
include/ChangeLog: PR 40831 * demangle.h (enum demangle_component_type): Add DEMANGLE_COMPONENT_CLONE. libiberty/ChangeLog: PR 40831 * cp-demangle.c (d_make_comp): Add new component type. (cplus_demangle_mangled_name): Check for clone suffixes. (d_parmlist): Don't error out if we see '.'. (d_clone_suffix): New function. (d_print_comp): Print info for clone suffixes. * testsuite/demangle-expected: Add new testcases. From-SVN: r179132
2011-08-06test-expandargv.c (writeout_test): Check result of fwrite.Uros Bizjak1-2/+5
* testsuite/test-expandargv.c (writeout_test): Check result of fwrite. From-SVN: r177529
2011-08-01re PR c++/49932 ([C++0x] ICE on instantiating decltype(expr)::type with ↵Jason Merrill1-0/+4
template) PR c++/49932 gcc/cp/ * mangle.c (write_prefix): Handle decltype. libiberty/ * cp-demangle.c (d_prefix): Handle decltype. From-SVN: r177074
2011-07-26Remove an extra line.H.J. Lu1-1/+0
2011-07-26 H.J. Lu <hongjiu.lu@intel.com> * testsuite/demangle-expected: Remove an extra line. From-SVN: r176796
2011-07-26cp-demangle.c (d_print_init): Initialize pack_index field.Ian Lance Taylor1-0/+6
* cp-demangle.c (d_print_init): Initialize pack_index field. (d_print_comp): Check for NULL template argument. * testsuite/demangle-expected: Add test case. From-SVN: r176791
2011-07-04cp-demangle.c (d_expression): Handle 'this'.Jason Merrill1-0/+4
* cp-demangle.c (d_expression): Handle 'this'. (d_print_comp) [DEMANGLE_COMPONENT_FUNCTION_PARAM]: Likewise. From-SVN: r175836
2011-07-01re PR debug/49408 (member function template id not matching linkage name)Jan 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.. From-SVN: r175761
2011-06-20re PR c++/37089 ([C++0x] rvalue/lvalue reference collapsing not performed in ↵Jason Merrill1-1/+4
error ouput thus printing "&&&") PR c++/37089 * cp-demangle.c (d_print_comp): Handle reference smashing. From-SVN: r175213
2011-06-13cp-demangle.c (d_print_comp): Suppress d_print_mod for DMGL_RET_POSTFIX.Jan Kratochvil1-0/+9
libiberty/ * cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>: Suppress d_print_mod for DMGL_RET_POSTFIX. * testsuite/demangle-expected: New testcases for --ret-postfix. From-SVN: r175001
2011-06-13demangle.h (DMGL_RET_POSTFIX): Extend the comment.Jan Kratochvil2-4/+26
include/ * demangle.h (DMGL_RET_POSTFIX): Extend the comment. (DMGL_RET_DROP): New. libiberty/ * cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>: Do not pass DMGL_RET_POSTFIX or DMGL_RET_DROP. Support DMGL_RET_DROP. * testsuite/demangle-expected: New testcases for --ret-drop. * testsuite/test-demangle.c: Document --ret-drop in a comment. (main): New variable ret_drop, fill it, call cplus_demangle with it. From-SVN: r175000
2011-04-10Avoid memory overrun in a test leading to potential double-free.Jim Meyering1-1/+1
2011-04-10 Jim Meyering <meyering@redhat.com> Avoid memory overrun in a test leading to potential double-free. * testsuite/test-expandargv.c (writeout_test): Fix off-by-one error: i.e., do copy the trailing NUL byte. From-SVN: r172246
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. From-SVN: r166810
2010-11-13re PR other/46332 (__cxa_demangle yields excess parentheses for function types)Ian Lance Taylor1-2/+7
libiberty/: PR other/46332 * cp-demangle.c (d_print_function_type): Don't print parentheses if there are no modifiers to print. * testsuite/demangle-expected: Tweak one test case, add another. libstdc++/: * testsuite/abi/demangle/abi_examples/14.cc (main): Change expected demangling. From-SVN: r166695
2010-09-22cplus-dem.c (ada_demangle): Add comments.Tristan Gingold1-0/+30
2010-09-22 Tristan Gingold <gingold@adacore.com> * cplus-dem.c (ada_demangle): Add comments. Handle stream and controlled type operations. Decoding of some uppercase letters moved before separators. * testsuite/demangle-expected: Add tests. From-SVN: r164518
2010-09-10cp-demangle.c (d_find_pack): Add case for DEMANGLE_COMPONENT_LAMBDA.James Lyon1-0/+5
2010-09-10 James Lyon <jameslyon0@googlemail.com> 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. From-SVN: r164203
2010-06-10re PR other/43838 (Incorrect output from abi::__cxa_demangle)Jakub Jelinek1-0/+3
PR other/43838 * 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. From-SVN: r160554
2010-05-26demangle-expected: Add tests for __int128 and unsigned __int128 types.Kai Tietz1-0/+10
libiberty/ 2010-05-26 Kai Tietz <kai.tietz@onevision.com> * testsuite/demangle-expected: Add tests for __int128 and unsigned __int128 types. gcc/testsuite 2010-05-26 Kai Tietz <kai.tietz@onevision.com> * lib/target-supports.exp (check_effective_target_int128): New function to check if __int128 types are available for target. * testsuite/c-c++-common/int128-types-1.c: New. * testsuite/c-c++-common/int128-1.c: New. * testsuite/c-c++-common/int128-2.c: New. * g++.dg/abi/mangle43.C: New. * g++.dg/init/enum1.C: Handle __int128 case and add -Wno-overflow. * g++.dg/cpp0x/nullptr04.C: Use __SIZE_TYPE__ for getting pointer-wide scalar. * g++.dg/other/pr25632.C: Likewise. * g++.dg/other/large-size-array.C (DIM): Use ULLONG_MAX for win64 case. * g++.dg/warn/pr13358-2.C: Add llp64 for check of special overflow warnings. * g++.dg/warn/pr13358-4.C: Likewise. * g++.dg/warn/Wconversion-null-2.C: Add 'long long' case. * g++.dg/warn/Wconversion-null.C: Likewise. gcc/ 2010-05-26 Kai Tietz <kai.tietz@onevision.com> * builtin-types.def (BT_INT128): New primitive type. (BT_UINT128): Likewise. * c-common.c (c_common_r): Add __int128 keyword. (c_common_type_for_size): Handle __int128. (c_common_type_for_mode): Likewise. (c_common_signed_or_unsigned_type): Likewise. (c_common_nodes_and_builtins): Add builtin type if target supports 128-bit integer scalar. * c-common.h (enum rid): Add RID_INT128. * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__ if target supports 128-bit integer scalar. * c-decl.c (declspecs_add_type): Handle new keyword __int128. (finish_declspecs): Likewise. * c-parser.c (c_token_starts_typename): Handle RID_INT128. (c_token_starts_declspecs): Likewise. (c_parser_declspecs): Likewise. (c_parser_attributes): Likewise. (c_parser_objc_selector): Likewise. * c-pretty-print.c (pp_c_integer_constant): Handle __int128. * c-tree.h (enum c_typespec_keyword): Add cts_int128. * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types. * tree.c (make_or_reuse_type): Likewise. (make_unsigned_type): Likewise. (build_common_tree_nodes_2): Likewise. * tree.h (enum integer_type_kind): Add itk_int128 and itk_unsigned_int128. (int128_integer_type_node): New define.. (int128_unsigned_type_node): New define. * cp/cp-tree.h (cp_decl_specifier_seq): Add new bifield explicit_int128_p. * cp/decl.c (grokdeclarator): Handle __int128. * cp/parser.c (cp_lexer_next_token_is_decl_specifier_ke): Likewise. (cp_parser_simple_type_specifier): Likewise. * cp/rtti.c (emit_support_tinfos): Add int128 nodes for rtti. * cp/typeck.c (cp_common_type): Handle __int128. * cp/mangle.c (integer_type_codes): Add itk_int128 and itk_unsigned_int128. * doc/extend.texi: Add documentation about __int128 type. From-SVN: r159879
2010-05-06Add support for C++0x nullptr.Jason Merrill1-0/+3
gcc: * c-common.c (c_common_reswords): Add nullptr. * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids. * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE. (gen_type_die_with_usage): Likewise. * dbxout.c (dbxout_type): Likewise. * sdbout.c (plain_type_1): Likewise. gcc/cp: * cp-tree.def: Add NULLPTR_TYPE. * cp-tree.h: Add nullptr_node. (cp_tree_index): Add CPTI_NULLPTR. (SCALAR_TYPE_P): Add NULLPTR_TYPE. * call.c (null_ptr_cst_p): Handle nullptr. (standard_conversion): Likewise. (convert_arg_to_ellipsis): Likewise. * mangle.c (write_type): Likewise. * name-lookup.c (arg_assoc_type): Likewise. * parser.c (cp_parser_primary_expression): Likewise. * typeck.c (cp_build_binary_op): Likewise. (build_reinterpret_cast_1): Likewise. * error.c (dump_type): Likewise. (dump_type_prefix, dump_type_suffix): Likewise. * decl.c (cxx_init_decl_processing): Likewise. * cxx-pretty-print.c (pp_cxx_constant): Likewise. * cvt.c (ocp_convert): Likewise. * rtti.c (typeinfo_in_lib_p, emit_support_tinfos): Put nullptr_t tinfo in libsupc++. libstdc++-v3: * config/abi/pre/gnu.ver: Add typeinfo for decltype(nullptr). libiberty: * cp-demangle.c (cplus_demangle_builtin_types): Add nullptr. (cplus_demangle_type): Handle nullptr. From-SVN: r159131
2010-03-22c-pretty-print.c (pp_c_specifier_qualifier_list): Use () rather than [], and ↵Jason Merrill1-2/+2
move before the element type. * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]: Use () rather than [], and move before the element type. * cp-demangle.c (d_print_mod): Use () rather than [] for vectors. From-SVN: r157650
2010-02-04* testsuite/demangle-expected: Add missing --format=gnu-v3.Tom Tromey1-0/+1
From-SVN: r156498
2010-02-03re PR c++/4926 (C++ ABI needs clarification on mangling of complex expressions)Jason Merrill1-0/+5
PR c++/4926 PR c++/38600 * mangle.c (write_unqualified_id): Split out from write_expression. (write_unqualified_name): Call it. (write_member_name): Likewise. (write_expression): Support TEMPLATE_ID_EXPR. Disambiguate operator names. From-SVN: r156482
2010-02-03re PR c++/12909 (ambiguity in mangling vector types)Jason Merrill1-0/+6
PR c++/12909 * mangle.c (write_type) [VECTOR_TYPE]: Change mangling. From-SVN: r156481
2010-01-26cp-demangle.c (cplus_demangle_type): Check for invalid type after "DF".Ian Lance Taylor1-2/+5
* cp-demangle.c (cplus_demangle_type): Check for invalid type after "DF". * testsuite/demangle-expected: Add test. From-SVN: r156226