summaryrefslogtreecommitdiff
path: root/libiberty
Commit message (Collapse)AuthorAgeFilesLines
* cpp-id-data.h (UC): Was U, conflicts with U...Kris Van Hees2008-04-182-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libcpp/ChangeLog: 2008-04-14 Kris Van Hees <kris.van.hees@oracle.com> * include/cpp-id-data.h (UC): Was U, conflicts with U... literal. * include/cpplib.h (CHAR16, CHAR32, STRING16, STRING32): New tokens. (struct cpp_options): Added uliterals. (cpp_interpret_string): Update prototype. (cpp_interpret_string_notranslate): Idem. * charset.c (init_iconv_desc): New width member in cset_converter. (cpp_init_iconv): Add support for char{16,32}_cset_desc. (convert_ucn): Idem. (emit_numeric_escape): Idem. (convert_hex): Idem. (convert_oct): Idem. (convert_escape): Idem. (converter_for_type): New function. (cpp_interpret_string): Use converter_for_type, support u and U prefix. (cpp_interpret_string_notranslate): Match changed prototype. (wide_str_to_charconst): Use converter_for_type. (cpp_interpret_charconst): Add support for CPP_CHAR{16,32}. * directives.c (linemarker_dir): Macro U changed to UC. (parse_include): Idem. (register_pragma_1): Idem. (restore_registered_pragmas): Idem. (get__Pragma_string): Support CPP_STRING{16,32}. * expr.c (eval_token): Support CPP_CHAR{16,32}. * init.c (struct lang_flags): Added uliterals. (lang_defaults): Idem. * internal.h (struct cset_converter) <width>: New field. (struct cpp_reader) <char16_cset_desc>: Idem. (struct cpp_reader) <char32_cset_desc>: Idem. * lex.c (digraph_spellings): Macro U changed to UC. (OP, TK): Idem. (lex_string): Add support for u'...', U'...', u... and U.... (_cpp_lex_direct): Idem. * macro.c (_cpp_builtin_macro_text): Macro U changed to UC. (stringify_arg): Support CPP_CHAR{16,32} and CPP_STRING{16,32}. gcc/ChangeLog: 2008-04-14 Kris Van Hees <kris.van.hees@oracle.com> * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros. (fname_as_string): Match updated cpp_interpret_string prototype. (fix_string_type): Support char16_t* and char32_t*. (c_common_nodes_and_builtins): Add char16_t and char32_t (and derivative) nodes. Register as builtin if C++0x. (c_parse_error): Support CPP_CHAR{16,32}. * c-common.h (RID_CHAR16, RID_CHAR32): New elements. (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE, CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE, CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE, CTI_CHAR32_ARRAY_TYPE>: New elements. (char16_type_node, signed_char16_type_node, unsigned_char16_type_node, char32_type_node, signed_char32_type_node, char16_array_type_node, char32_array_type_node): New defines. * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype. (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}. (lex_string): Support CPP_STRING{16,32}, match updated cpp_interpret_string and cpp_interpret_string_notranslate prototypes. (lex_charconst): Support CPP_CHAR{16,32}. * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32} and CPP_STRING{16,32}. gcc/cp/ChangeLog: 2008-04-14 Kris Van Hees <kris.van.hees@oracle.com> * cvt.c (type_promotes_to): Support char16_t and char32_t. * decl.c (grokdeclarator): Disallow signed/unsigned/short/long on char16_t and char32_t. * lex.c (reswords): Add char16_t and char32_t (for c++0x). * mangle.c (write_builtin_type): Mangle char16_t/char32_t as vendor extended builtin type u8char32_t. * parser.c (cp_lexer_next_token_is_decl_specifier_keyword): Support RID_CHAR{16,32}. (cp_lexer_print_token): Support CPP_STRING{16,32}. (cp_parser_is_string_literal): Idem. (cp_parser_string_literal): Idem. (cp_parser_primary_expression): Support CPP_CHAR{16,32} and CPP_STRING{16,32}. (cp_parser_simple_type_specifier): Support RID_CHAR{16,32}. * tree.c (char_type_p): Support char16_t and char32_t as char types. * typeck.c (string_conv_p): Support char16_t and char32_t. gcc/testsuite/ChangeLog: 2008-04-14 Kris Van Hees <kris.van.hees@oracle.com> Tests for char16_t and char32_t support. * g++.dg/ext/utf-cvt.C: New * g++.dg/ext/utf-cxx0x.C: New * g++.dg/ext/utf-cxx98.C: New * g++.dg/ext/utf-dflt.C: New * g++.dg/ext/utf-gnuxx0x.C: New * g++.dg/ext/utf-gnuxx98.C: New * g++.dg/ext/utf-mangle.C: New * g++.dg/ext/utf-typedef-cxx0x.C: New * g++.dg/ext/utf-typedef- * g++.dg/ext/utf-typespec.C: New * g++.dg/ext/utf16-1.C: New * g++.dg/ext/utf16-2.C: New * g++.dg/ext/utf16-3.C: New * g++.dg/ext/utf16-4.C: New * g++.dg/ext/utf32-1.C: New * g++.dg/ext/utf32-2.C: New * g++.dg/ext/utf32-3.C: New * g++.dg/ext/utf32-4.C: New * gcc.dg/utf-cvt.c: New * gcc.dg/utf-dflt.c: New * gcc.dg/utf16-1.c: New * gcc.dg/utf16-2.c: New * gcc.dg/utf16-3.c: New * gcc.dg/utf16-4.c: New * gcc.dg/utf32-1.c: New * gcc.dg/utf32-2.c: New * gcc.dg/utf32-3.c: New * gcc.dg/utf32-4.c: New libiberty/ChangeLog: 2008-04-14 Kris Van Hees <kris.van.hees@oracle.com> * testsuite/demangle-expected: Added tests for char16_t and char32_t. From-SVN: r134438
* re PR other/35457 (Error building GCC trunk on CELL SPU)Paolo Bonzini2008-04-183-6/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-04-18 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/35457 * configure.ac: Include override.m4. * configure: Regenerate. libgomp: 2008-04-18 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/35457 * aclocal.m4: Regenerate. * configure: Regenerate. libdecnumber: 2008-04-18 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/35457 * aclocal.m4: Regenerate. * configure: Regenerate. gcc: 2008-04-18 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/35457 * aclocal.m4: Regenerate. * configure: Regenerate. libstdc++-v3: 2008-04-18 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/35457 * aclocal.m4: Regenerate. * configure: Regenerate. libobjc: 2008-04-18 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/35457 * aclocal.m4: Regenerate. * configure: Regenerate. intl: 2008-04-18 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/35457 * aclocal.m4: Regenerate. * configure: Regenerate. libgfortran: 2008-04-18 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/35457 * aclocal.m4: Regenerate. * configure: Regenerate. libmudflap: 2008-04-18 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/35457 * aclocal.m4: Regenerate. * configure: Regenerate. boehm-gc: 2008-04-18 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/35457 * aclocal.m4: Regenerate. * configure: Regenerate. libiberty: 2008-04-18 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/35457 * aclocal.m4: Add override.m4. * configure: Regenerate. libffi: 2008-04-18 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/35457 * aclocal.m4: Regenerate. * configure: Regenerate. libssp: 2008-04-18 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/35457 * aclocal.m4: Regenerate. * configure: Regenerate. config: 2008-04-18 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/35457 * confsubdir.m4: Rename to... * override.m4: ... this. Make sure aclocal always picks it. Add more lenient precious variable check, backported from autoconf trunk. libjava/libltdl: 2008-04-18 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/35457 * aclocal.m4: Regenerate. * configure: Regenerate. libjava/classpath: 2008-04-18 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/35457 * aclocal.m4: Regenerate. * configure: Regenerate. libjava: 2008-04-18 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/35457 * aclocal.m4: Regenerate. * configure: Regenerate. libcpp: 2008-04-18 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/35457 * aclocal.m4: Regenerate. * configure: Regenerate. fixincludes: 2008-04-18 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/35457 * Makefile.in: Rewrite aclocal.m4 rule. * aclocal.m4: Regenerate. * configure: Regenerate. From-SVN: r134434
* Update copyright date.Ian Lance Taylor2008-03-311-1/+2
| | | | From-SVN: r133762
* cp-demangle.c (d_substitution): Correct overflow check to avoid ↵Ian Lance Taylor2008-03-312-5/+13
| | | | | | | | | -fstrict-overflow optimizations. * cp-demangle.c (d_substitution): Correct overflow check to avoid -fstrict-overflow optimizations. From-SVN: r133761
* configure.ac (frags): Don't set, use frag instead.Paolo Bonzini2008-03-274-46/+50
| | | | | | | | | | | 2008-03-27 Paolo Bonzini <bonzini@gnu.org> * configure.ac (frags): Don't set, use frag instead. (PICFLAG): Set here and substitute. * Makefile.in (PICFLAG): Substitute from autoconf. * configure: Regenerate. From-SVN: r133639
* sha1.h: New file, from gnulib.Ian Lance Taylor2008-03-253-5/+436
| | | | | | | | | | | | include/: * sha1.h: New file, from gnulib. libiberty/: * sha1.c: New file, from gnulib. * Makefile.in: Rebuild dependencies. (CFILES): Add sha1.c. (REQUIRED_OFILES): Add sha1.o. From-SVN: r133503
* make-relative-prefix.c (make_relative_prefix_1): Handle NULL return from strdup.Doug Evans2008-03-242-7/+10
| | | | | | | * make-relative-prefix.c (make_relative_prefix_1): Handle NULL return from strdup. From-SVN: r133482
* cplus-dem.c (malloc, realloc): Use void * instead of char * as return type.Seongbae Park2008-03-132-2/+7
| | | | | | | | | 2008-03-12 Seongbae Park <seongbae.park@gmail.com> * cplus-dem.c (malloc, realloc): Use void * instead of char * as return type. From-SVN: r133181
* md5.c (md5_process_bytes): Do not assume that memcpy will provide a return ↵Nick Clifton2008-03-112-1/+7
| | | | | | | | | value. * md5.c (md5_process_bytes): Do not assume that memcpy will provide a return value. From-SVN: r133107
* re PR other/12618 (core not cleaned up by 'make distclean')Ben Elliston2008-02-192-1/+7
| | | | | | | PR other/12618 * testsuite/Makefile.in (mostlyclean): Remove any core file. From-SVN: r132405
* demangle.h (demangle_component_type): Add DEMANGLE_COMPONENT_JAVA_RESOURCE...David Daney2008-01-273-0/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | include/ 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. From-SVN: r131883
* cplus-dem.c (demangle_function_name): Changed to return value indicating if ↵Thiago Jung Bauermann2008-01-232-12/+27
| | | | | | | | | | | | | a name was correctly demangled. 2008-01-23 Thiago Jung Bauermann <bauerman@br.ibm.com> * cplus-dem.c (demangle_function_name): Changed to return value indicating if a name was correctly demangled. (iterate_demangle_function): Use demangle_function_name return value. From-SVN: r131754
* re PR other/33768 (splay-tree.c typo)Manuel López-Ibáñez2008-01-192-2/+8
| | | | | | | | | | 2008-01-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org> PR other/33768 * splay-tree.c (rotate_left): Fix minor typo in comment. (rotate_right): Likewise. From-SVN: r131650
* floatformat.c (floatformat_ibm_long_double_is_valid): Fix compiler warnings.Joseph Myers2007-11-132-7/+11
| | | | | | | | | * floatformat.c (floatformat_ibm_long_double_is_valid): Fix compiler warnings. (floatformat_ibm_long_double): Use floatformat_ibm_long_double_is_valid. From-SVN: r130131
* floatformat.h (struct floatformat): Add split_half field.Joseph Myers2007-11-082-39/+191
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | include: 2007-11-07 Joseph Myers <joseph@codesourcery.com> Daniel Jacobowitz <dan@codesourcery.com> * floatformat.h (struct floatformat): Add split_half field. (floatformat_ibm_long_double): New. libiberty: 2007-11-07 Joseph Myers <joseph@codesourcery.com> Daniel Jacobowitz <dan@codesourcery.com> * floatformat.c (mant_bits_set): New. (floatformat_to_double): Use it. Note no special handling of split formats. (floatformat_from_double): Note no special handing of split formats. (floatformat_ibm_long_double_is_valid, floatformat_ibm_long_double): New. (floatformat_ieee_single_big, floatformat_ieee_single_little, floatformat_ieee_double_big, floatformat_ieee_double_little, floatformat_ieee_double_littlebyte_bigword, floatformat_vax_f, floatformat_vax_d, floatformat_vax_g, floatformat_i387_ext, floatformat_m68881_ext, floatformat_i960_ext, floatformat_m88110_ext, floatformat_m88110_harris_ext, floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword, floatformat_ia64_spill_big, floatformat_ia64_spill_little, floatformat_ia64_quad_big, floatformat_ia64_quad_little): Update for addition of split_half field. Co-Authored-By: Daniel Jacobowitz <dan@codesourcery.com> From-SVN: r129977
* pexecute.txh (pex_free): Document process killing.Tom Tromey2007-09-062-1/+7
| | | | | | | | | libiberty: * pexecute.txh (pex_free): Document process killing. include: * libiberty.h (pex_free): Document process killing. From-SVN: r128192
* mangle.c (write_type): Change mangling of rvalue reference from `RR' to `O'.Doug Gregor2007-08-312-1/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-08-31 Douglas Gregor <doug.gregor@gmail.com> * mangle.c (write_type): Change mangling of rvalue reference from `RR' to `O'. 2007-08-31 Douglas Gregor <doug.gregor@gmail.com> * demangle.h (enum demangle_component_type): Add DEMANGLE_COMPONENT_RVALUE_REFERENCE. 2007-08-31 Douglas Gregor <doug.gregor@gmail.com> * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_RVALUE_REFERENCE. (d_make_comp): Ditto. (cplus_demangle_type): Ditto. (d_print_comp): Ditto. (d_print_mod): Ditto. (d_print_function_type): Ditto. 2007-08-31 Douglas Gregor <doug.gregor@gmail.com> * testsuite/abi/demangle/cxx0x/rref.cc: New. From-SVN: r127999
* [patch]: libiberty pex for _WIN64.Kai Tietz2007-08-246-55/+69
| | | | From-SVN: r127761
* make-relative-prefix.c (make_relative_prefix_1): Resource leaks.Michael Snyder2007-08-172-27/+18
| | | | | | | 2007-08-17 Michael Snyder <msnyder@access-company.com> * make-relative-prefix.c (make_relative_prefix_1): Resource leaks. From-SVN: r127595
* make-relative-prefix.c (make_relative_prefix_1): Fix resource leak.Michael Snyder2007-08-032-2/+13
| | | | | | | * make-relative-prefix.c (make_relative_prefix_1): Fix resource leak. From-SVN: r127183
* * cp-demangle.c (d_print_comp): Guard against null.Michael Snyder2007-08-012-0/+10
| | | | From-SVN: r127139
* ternary.h: Remove.Ben Elliston2007-07-253-178/+15
| | | | | | | | | | | | | | include/ * ternary.h: Remove. libiberty/ * Makefile.in (CFILES): Remove ternary.c. (REQUIRED_OFILES): Remove ./ternary.o. (INSTALLED_HEADERS): Remove ternary.h. (ternary.o): Remove. * ternary.c: Remove. From-SVN: r126902
* argv.c (writeargv): Fix typo in inline documentation.DJ Delorie2007-07-233-8/+23
| | | | | | | * argv.c (writeargv): Fix typo in inline documentation. * functions.texi: Regenerate. From-SVN: r126855
* configure.ac (target_header_dir, msdosdjgpp): Remove duplicate gettimeofday ↵DJ Delorie2007-07-173-2/+8
| | | | | | | | | | entry. * configure.ac (target_header_dir, msdosdjgpp): Remove duplicate gettimeofday entry. * configure: Likewise. From-SVN: r126704
* maint-tool (deps): Output stamp-h instead of config.h.Alexandre Oliva2007-07-123-80/+82
| | | | | | | | * maint-tool (deps): Output stamp-h instead of config.h. * Makefile.in: Rebuild deps. (maintainer-clean-subdir): Depend on stamp-h rather than config.h. From-SVN: r126569
* argv.c (writeargv): Removed declaration of unused variable.Simon Baldwin2007-07-022-1/+4
| | | | | | | | 2007-07-02 Simon Baldwin <simonb@google.com> * argv.c (writeargv): Removed declaration of unused variable. From-SVN: r126217
* configure.ac: Use ACX_PROG_CC_ALMOST_PEDANTIC too.Paolo Bonzini2007-06-143-2/+73
| | | | | | | | | 2007-06-14 Paolo Bonzini <bonzini@gnu.org> * configure.ac: Use ACX_PROG_CC_ALMOST_PEDANTIC too. * configure: Regenerate. From-SVN: r125716
* acinclude.m4 (gcc_AC_CHECK_PROG_VER): Remove.Paolo Bonzini2007-06-144-39/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | gcc: 2007-06-14 Paolo Bonzini <bonzini@gnu.org> * acinclude.m4 (gcc_AC_CHECK_PROG_VER): Remove. * aclocal.m4: Regenerate. * configure.ac: Use ACX_PROG_CC_WARNING_OPTS, ACX_PROG_CC_WARNINGS_ARE_ERRORS, ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_CHECK_PROG_VER. * configure: Regenerate. * Makefile.in (LOOSE_WARN): Subst loose_warn. * Makefile.in (quickstrap): Build libgcc too. libiberty: 2007-06-14 Paolo Bonzini <bonzini@gnu.org> * aclocal.m4: Include config/warnings.m4. * configure.ac: Use ACX_PROG_CC_WARNING_OPTS. * configure: Regenerate. config: 2007-06-14 Paolo Bonzini <bonzini@gnu.org> * acx.m4 (ACX_CHECK_PROG_VER): Remove duplicate lines. From-SVN: r125700
* configure.ac: Non-default multilibs can be cross compilations.Geoffrey Keating2007-06-073-0/+48
| | | | | | | * configure.ac: Non-default multilibs can be cross compilations. * configure: Regenerate From-SVN: r125536
* libiberty.h (writeargv): Declare.Nathan Froyd2007-05-082-0/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | include/ 2007-05-07 Nathan Froyd <froydnj@codesourcery.com> * libiberty.h (writeargv): Declare. libiberty/ 2007-05-07 Nathan Froyd <froydnj@codesourcery.com> * argv.c (writeargv): New function. gcc/ 2007-05-07 Nathan Froyd <froydnj@codesourcery.com> * gcc.c (at_file_supplied): New variable. (main): Set it if we expanded argv. (do_spec_1): Pass an @-file to the linker if we were called with an @-file argument and HAVE_GNU_LD. * collect2.c (at_file_supplied): New variable. (response_file): New variable. (collect_exit): Unlink response_file if necessary. (handler): Likewise. (do_wait): Likewise. (main): Set at_file_supplied if we expanded argv. (collect_execute): Pass an @-file to subprocesses if we were called with an @-file argument. * configure.ac: Add define for HAVE_GNU_LD. * configure: Regenerate. * config.in: Regenerate. From-SVN: r124532
* Index: libiberty/ChangeLogGeoffrey Keating2007-05-063-1/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | 2007-05-04 Geoffrey Keating <geoffk@apple.com> * cp-demangle.c (d_name): Detect local-source-name. (d_prefix): Likewise. (d_unqualified_name): Implement local-source-name. Index: gcc/cp/ChangeLog 2007-05-04 Geoffrey Keating <geoffk@apple.com> PR 31775 * mangle.c (write_mangled_name): Mangle static variable names. (write_unqualified_name): Use local-source-name for namespace-scope static variables. Index: gcc/testsuite/ChangeLog 2007-05-04 Geoffrey Keating <geoffk@apple.com> PR 31775 * g++.dg/other/nested-extern.cc: New. * g++.dg/other/nested-extern-1.C: New. * g++.dg/other/nested-extern-2.C: New. From-SVN: r124467
* filename_cmp.c: Replace include of ctype.h by include of safe-ctype.h.Joel Brobecker2007-05-033-4/+13
| | | | | | | | | | * filename_cmp.c: Replace include of ctype.h by include of safe-ctype.h. (filename_cmp): Use TOLOWER instead of tolower for conversions that are locale-independent. * Makefile.in (filename_cmp.o): Add dependency on safe-ctype.h. From-SVN: r124399
* argv.c: Use ANSI C declarations.Thomas Neumann2007-04-113-11/+11
| | | | | | | * argv.c: Use ANSI C declarations. * make-relative-prefix.c: Likewise. From-SVN: r123722
* * filename_cmp.c (filename_cmp): Improve documentation.Joel Brobecker2007-04-062-5/+10
| | | | From-SVN: r123537
* * filename_cmp.c: Include "config.h".Andreas Schwab2007-04-022-0/+8
| | | | From-SVN: r123425
* filename_cmp.c: New file.Joel Brobecker2007-03-294-5/+108
| | | | | | | | | | * filename_cmp.c: New file. * Makefile.in (CFILES): Add filename_cmp.c. (REQUIRED_OFILES): Add filename_cmp.o (filename_cmp.o): New rule. * functions.texi: Regenerate. From-SVN: r123342
* cp-demangle.c (d_encoding): Exit early on error.Geoffrey Keating2007-03-163-2/+16
| | | | | | | | | | * cp-demangle.c (d_encoding): Exit early on error. (d_pointer_to_member_type): Exit early if cplus_demangle_type returns NULL. (cplus_demangle_type): Likewise. * testsuite/demangle-expected: New testcase. From-SVN: r122972
* Makefile.in: Add install-pdf target as copied from automake v1.10 rules.Brooks Moses2007-03-013-2/+26
| | | | | | | | * Makefile.in: Add install-pdf target as copied from automake v1.10 rules. * testsuite/Makefile.in: Add dummy install-pdf target. From-SVN: r122438
* re PR other/16513 (Libiberty doesn't honor the multi-os-directory settings)Peter Breitenlohner2007-03-012-10/+17
| | | | | | | | | | | PR other/16513 * Makefile.in: Install library under $(MULTIOSDIR), not $(MULTISUBDIR). Install headers in multilib independent location. Co-Authored-By: Eric Botcazou <ebotcazou@libertysurf.fr> From-SVN: r122430
* configure.ac: add djgpp-specific results, so we don't have to link during a ↵DJ Delorie2007-02-263-0/+43
| | | | | | | | | | cross compilation. * configure.ac: add djgpp-specific results, so we don't have to link during a cross compilation. * configure: Regenerated. From-SVN: r122343
* hex.c: Fix typo.Ralf Wildenhues2007-01-314-4/+10
| | | | | | | | * hex.c: Fix typo. * choose-temp.c: Likewise. * functions.texi: Regenerate. From-SVN: r121435
* libiberty.h (PEX_STDERR_TO_PIPE): New define.Vladimir Prus2007-01-315-19/+126
| | | | | | | | | | | | | | | include/ * libiberty.h (PEX_STDERR_TO_PIPE): New define. (PEX_BINARY_ERROR): New define. (pex_read_err): New function. libiberty/ * pex-common.h (struct pex_obj): New fields stderr_pipe and read_err. * pex-common.c (pex_init_common): Initialize stderr_pipe. From-SVN: r121430
* strsignal.c (psignal): Change type of signo to int.Ben Elliston2007-01-313-4/+9
| | | | | | | * strsignal.c (psignal): Change type of signo to int. * functions.texi: Regenerate. From-SVN: r121364
* demangle.h: New cplus_demangle_print_callback...Simon Baldwin2007-01-293-315/+486
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | include/: * demangle.h: New cplus_demangle_print_callback, cplus_demangle_v3_callback, and java_demangle_v3_callback function prototypes, and demangle_callbackref type definition. libiberty/: * cp-demangle.h (cplus_demangle_operators): External definition suppressed if not building for libstdc++. * cp-demangle.c (__gcclibcxx_demangle_callback): Augmented interface to demangling, provides a malloc-less version of __cxa_demangle. (cplus_demangle_print_callback): Public callback version of cplus_demangle_print. (struct d_growable_string): New growable string structure. (d_growable_string_init): New function, provides support for growable strings separate from print info. (d_growable_string_resize): Likewise. (d_growable_string_append_buffer): Likewise. (d_growable_string_callback_adapter):): Likewise. (d_print_init): New print info initialization function. (d_print_error): Macro replace by inline function. (d_print_saw_error): Likewise. (d_append_char): Likewise. (d_append_buffer): Likewise. (d_append_string): New inline function, replaces the d_append_string_constant macro. (d_flush_buffer): New function, flushes buffer to callback. (d_demangle_callback, is_ctor_or_dtor): Malloc-based fallback for unsupported dynamic arrays replaced by alloca(). (d_demangle): Return string length estimating removed. (d_dump): Moved error case handling from call site into function. (d_print_resize): Function removed. (d_print_append_char): Likewise. (d_print_append_buffer): Likewise. (d_print_error): Likewise. (d_print_comp): Added special case handling for Java arrays. (java_demangle_v3): Removed string post-processing for Java arrays, now replaced by special case handling in d_print_comp. (cplus_demangle_v3_callback): Augmented interface to demangling, provides a malloc-less version of cplus_demangle_v3. (java_demangle_v3_callback): Augmented interface to demangling, provides a malloc-less version of java_demangle_v3. From-SVN: r121305
* * pex-unix.c (writeerr): Cast write result to void.Ben Elliston2007-01-122-1/+3
| | | | From-SVN: r120702
* Typo fix.Ben Elliston2007-01-121-2/+2
| | | | From-SVN: r120699
* choose-temp.c (choose_temp_base): Check the result of the call to mktemp ↵Ben Elliston2007-01-122-2/+6
| | | | | | | | | rather than testing the length of the... * choose-temp.c (choose_temp_base): Check the result of the call to mktemp rather than testing the length of the modified string. From-SVN: r120698
* cp-demangle.h: Add comment explaining what to do to avoid overrunning string.Geoffrey Keating2006-12-215-34/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cp-demangle.h: Add comment explaining what to do to avoid 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. From-SVN: r120097
* re PR driver/29931 (following argv[0] symlink in process_command breaks ↵Andrew Stubbs2006-11-302-7/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | symlinked-together toolchain) include: 2006-05-03 Andrew Stubbs <andrew.stubbs@st.com> J"orn Rennecke <joern.rennecke@st.com> PR driver/29931 * libiberty.h (make_relative_prefix_ignore_links): Declare. libiberty: 2006-05-03 Andrew Stubbs <andrew.stubbs@st.com> J"orn Rennecke <joern.rennecke@st.com> PR driver/29931 * make-relative-prefix.c (make_relative_prefix_1): New function, broken out of make_relative_prefix. Make link resolution dependent on new parameter. (make_relative_prefix): Use make_relative_prefix_1. (make_relative_prefix_ignore_links): New function. Co-Authored-By: J"orn Rennecke <joern.rennecke@st.com> From-SVN: r119366
* pex-win32.c (no_suffixes): Remove.Vladimir Prus2006-11-082-7/+15
| | | | | | | | | | | 2006-11-08 Vladimir Prus <vladimir@codesourcery.com> * pex-win32.c (no_suffixes): Remove. (std_suffixes): Add "" as first element. (find_executable): Remove detection of already-present extension. Try all suffixes in std_suffixes. From-SVN: r118595