1. 15 Aug, 2015 1 commit
  2. 11 Aug, 2015 1 commit
  3. 13 Jul, 2015 1 commit
    • Fix several crashes of C++ demangler on fuzzed input. · 76d96a5a
      libiberty/
      	* cp-demangle.c (d_dump): Fix syntax error.
      	(d_identifier): Adjust type of len to match d_source_name.
      	(d_expression_1): Fix out-of-bounds access.  Check code variable for
      	NULL before dereferencing it.
      	(d_find_pack): Do not recurse for FIXED_TYPE, DEFAULT_ARG and NUMBER.
      	(d_print_comp_inner): Add NULL pointer check.
      	* cp-demangle.h (d_peek_next_char): Define as inline function when
      	CHECK_DEMANGLER is defined.
      	(d_advance): Likewise.
      	* testsuite/demangle-expected: Add new testcases.
      
      From-SVN: r225727
      Mikhail Maltsev committed
  4. 09 Jul, 2015 1 commit
  5. 08 Jul, 2015 1 commit
  6. 02 Jun, 2015 1 commit
    • re PR c++/44282 (fastcall is not mangled at all) · 603eaec4
      	PR c++/44282
      gcc/cp/
      	* mangle.c (attr_strcmp): New.
      	(write_CV_qualifiers_for_type): Also write out attributes that
      	affect type identity.
      	(write_type): Strip all attributes after writing qualifiers.
      libiberty/
      	* cp-demangle.c (cplus_demangle_type): Handle arguments to vendor
      	extended qualifier.
      
      From-SVN: r224007
      Jason Merrill committed
  7. 22 May, 2015 1 commit
  8. 16 May, 2015 8 commits
    • d-demangle.c (dlang_symbol_kinds): New enum. · 7e865541
      libiberty/ChangeLog:
      
      2015-05-16  Iain Buclaw  <ibuclaw@gdcproject.org>
      
      	* d-demangle.c (dlang_symbol_kinds): New enum.
      	(dlang_parse_symbol): Update signature.  Handle an ambiguity between
      	pascal functions and template value arguments.  Only check for a type
      	if parsing a function, or at the top level.  Return failure if the
      	entire symbol was not successfully demangled.
      	(dlang_identifier): Update signature.  Handle an ambiguity between two
      	adjacent digits in a mangled symbol string.
      	(dlang_type): Update call to dlang_parse_symbol.
      	(dlang_template_args): Likewise.
      	(dlang_parse_template): Likewise.
      	(dlang_demangle): Likewise.
      	* testsuite/d-demangle-expected: Fix bad tests found, and add problematic
      	examples to the unittests.
      
      From-SVN: r223247
      Iain Buclaw committed
    • d-demangle.c (dlang_template_args): Skip over specialized template parameters in mangled symbol. · ed4cdb85
      libiberty/ChangeLog:
      
      2015-05-16  Iain Buclaw  <ibuclaw@gdcproject.org>
      
      	* d-demangle.c (dlang_template_args): Skip over specialized template
      	parameters in mangled symbol.
      	* testsuite/d-demangle-expected: Add coverage and unittest for specialized
      	template parameters.
      
      From-SVN: r223246
      Iain Buclaw committed
    • d-demangle.c (dlang_type): Handle cent and ucent types. · 59251a73
      libiberty/ChangeLog:
      
      2015-05-16  Iain Buclaw  <ibuclaw@gdcproject.org>
      
      	* d-demangle.c (dlang_type): Handle cent and ucent types.
      	* testsuite/d-demangle-expected: Add coverage tests for cent and ucent.
      
      From-SVN: r223245
      Iain Buclaw committed
    • d-demangle.c (dlang_attributes): Handle return attributes, ignoring return… · 7ce4461f
      d-demangle.c (dlang_attributes): Handle return attributes, ignoring return parameters in the mangled string.
      
      libiberty/ChangeLog:
      
      2015-05-16  Iain Buclaw  <ibuclaw@gdcproject.org>
      
      	* d-demangle.c (dlang_attributes): Handle return attributes, ignoring
      	return parameters in the mangled string.  Return NULL if have encountered
      	an unknown attribute.
      	(dlang_function_args): Handle return parameters in the mangled string.
      	* testsuite/d-demangle-expected: Add coverage tests for functions with
      	return parameters and return attributes.
      
      From-SVN: r223244
      Iain Buclaw committed
    • d-demangle.c (dlang_identifier): Check encoded length of identifier to verify… · 5cc158e9
      d-demangle.c (dlang_identifier): Check encoded length of identifier to verify strncmp matches entire string.
      
      libiberty/ChangeLog:
      
      2015-05-16  Iain Buclaw  <ibuclaw@gdcproject.org>
      
      	* d-demangle.c (dlang_identifier): Check encoded length of identifier
      	to verify strncmp matches entire string.
      	* testsuite/d-demangle-expected: Fix wrong test for postblit symbol.
      
      From-SVN: r223243
      Iain Buclaw committed
    • d-demangle.c (dlang_type_modifiers): New function. · fa66ced4
      libiberty/ChangeLog:
      
      2015-05-16  Iain Buclaw  <ibuclaw@gdcproject.org>
      
      	* d-demangle.c (dlang_type_modifiers): New function.
      	(dlang_type_modifier_p): New function.
      	(dlang_call_convention_p): Ignore any kind of type modifier.
      	(dlang_type): Handle and emit the type modifier after delegate types.
      	(dlang_parse_symbol): Handle and emit the type modifier after the symbol.
      	* testsuite/d-demangle-expected: Add coverage tests for all valid
      	usages of function symbols with type modifiers.
      
      From-SVN: r223242
      Iain Buclaw committed
    • d-demangle.c (dlang_call_convention): Return NULL if have reached the end of the… · 76b41cad
      d-demangle.c (dlang_call_convention): Return NULL if have reached the end of the symbol, but expected something to read.
      
      libiberty/ChangeLog:
      
      2015-05-16  Iain Buclaw  <ibuclaw@gdcproject.org>
      
      	* d-demangle.c (dlang_call_convention): Return NULL if have reached the
      	end of the symbol, but expected something to read.
      	(dlang_attributes): Likewise.
      	(dlang_function_type): Likewise.
      	(dlang_type): Likewise.
      	(dlang_identifier): Likewise.
      	(dlang_value): Likewise.
      
      From-SVN: r223241
      Iain Buclaw committed
    • d-demangle.c (dlang_parse_string): Represent embedded whitespace or… · eb058b7d
      d-demangle.c (dlang_parse_string): Represent embedded whitespace or non-printable characters as hex or escape...
      
      libiberty/ChangeLog:
      
      2015-05-16  Iain Buclaw  <ibuclaw@gdcproject.org>
      
      	* d-demangle.c (dlang_parse_string): Represent embedded whitespace or
      	non-printable characters as hex or escape sequences.
      	* testsuite/d-demangle-expected: Add test for templates with tabs and
      	newlines embedded into the signature.
      
      From-SVN: r223240
      Iain Buclaw committed
  9. 08 May, 2015 1 commit
  10. 22 Apr, 2015 1 commit
  11. 14 Apr, 2015 1 commit
    • Makefile.tpl (EXTRA_HOST_EXPORTS): New variables. · 77019397
      2015-04-14  Max Ostapenko  <m.ostapenko@partner.samsung.com>
      
      	* Makefile.tpl (EXTRA_HOST_EXPORTS): New variables.
      	(EXTRA_BOOTSTRAP_FLAGS): Likewise.
      	(check-[+module+]): Add EXTRA_HOST_EXPORTS and EXTRA_BOOTSTRAP_FLAGS.
      	* Makefile.in: Regenerate.
      
      	libiberty/
      	* testsuite/Makefile.in (LIBCFLAGS): Add LDFLAGS.
      
      From-SVN: r222099
      Max Ostapenko committed
  12. 10 Apr, 2015 1 commit
    • re PR target/65351 (libiberty's pic version contains non-pic code on m32 darwin;… · cacf1f59
      re PR target/65351 (libiberty's pic version contains non-pic code on m32 darwin; causes bootstrap fail building libcc1.)
      
      	PR target/65351
      config/
      	* mh-darwin: Only apply -mdynamic-no-pic for m32 Darwin when the compiler in
      	use supports -mno-dynamic-no-pic.
      	* picflag.m4: Only append -mno-dynamic-no-pic for Darwin when -mdynamic-no-pic
      	is present in CFLAGS.
      
      libiberty/
      	* configure: Regenerate.
      libada/
      	* configure: Regenerate.
      libgcc/
      	* configure: Regenerate.
      gcc/
      	* configure: Regenerate.
      
      
      Co-Authored-By: Iain Sandoe <iain@codesourcery.com>
      
      From-SVN: r221967
      Jakub Jelinek committed
  13. 07 Apr, 2015 1 commit
  14. 19 Jan, 2015 1 commit
  15. 24 Dec, 2014 1 commit
    • xasprintf.c: New file. · e8850918
      libiberty/ChangeLog:
      
      	* xasprintf.c: New file.
      	* Makefile.in (CFILES): Add xasprintf.c.
      	(REQUIRED_OFILES): Add xasprintf.$(objext).
      	(xasprintf.$(objext)): New target.
      	* functions.texi: Regenerate.
      
      include/ChangeLog:
      
      	* libiberty.h (xasprintf): Declare.
      
      gcc/ChangeLog:
      
      	* gengtype.h (xasprintf): Remove declaration.
      	* gengtype.c (xasprintf): Remove.
      
      
      Co-Authored-By: Ben Elliston <bje@au.ibm.com>
      Co-Authored-By: Manuel López-Ibáñez <manu@gcc.gnu.org>
      
      From-SVN: r219060
      Uros Bizjak committed
  16. 11 Dec, 2014 1 commit
    • xvasprintf.c: New file. · 01ca36af
      	* xvasprintf.c: New file.
      	* vprintf-support.h: Likewise.
      	* vprintf-support.c: Likewise.
      	* Makefile.in (CFILES): Add vprintf-support.c, xvasprintf.c.
      	(REQUIRED_OFILES): Add vprintf-support.$(objext), xvasprintf.$(objext).
      	(vprintf-support.$(objext), xvasprintf.$(objext)): New targets.
      	(vasprintf.$(objext)): Depend on $(srcdir)/vprintf-support.h.
      	* functions.texi: Regenerate.
      	* vasprintf.c (int_vasprintf): Use libiberty_vprintf_buffer_size.
      
      include/ChangeLog:
      
      	* libiberty.h (xvasprintf): Declare.
      
      libcpp/ChangeLog:
      
      	* directives.c (cpp_define_formatted): Use xvasprintf.
      
      
      Co-Authored-By: Ben Elliston <bje@au.ibm.com>
      Co-Authored-By: Manuel López-Ibáñez <manu@gcc.gnu.org>
      
      From-SVN: r218618
      Uros Bizjak committed
  17. 22 Nov, 2014 2 commits
  18. 12 Nov, 2014 1 commit
  19. 11 Nov, 2014 2 commits
    • re PR driver/36312 (should refuse to overwrite input file with output file) · 3d00119c
      gcc/testsuite/ChangeLog:
      
      2014-11-11  Anthony Brandon  <anthony.brandon@gmail.com>
      	    Manuel López-Ibáñez  <manu@gcc.gnu.org>
      
      	PR driver/36312
      	* gcc.misc-tests/output.exp: New test case for identical input and
      	output files.
      
      include/ChangeLog:
      
      2014-11-11  Anthony Brandon  <anthony.brandon@gmail.com>
      	    Manuel López-Ibáñez  <manu@gcc.gnu.org>
      
      	PR driver/36312
      	* filenames.h: Add prototype for canonical_filename_eq.
      
      gcc/ChangeLog:
      
      2014-11-11  Anthony Brandon  <anthony.brandon@gmail.com>
      	    Manuel López-Ibáñez  <manu@gcc.gnu.org>
      
      	PR driver/36312
      	* diagnostic-core.h: Add prototype for fatal_error.
      	* diagnostic.c (fatal_error): New function fatal_error.
      	* gcc.c (store_arg): Remove have_o_argbuf_index.
      	(process_command): Check if input and output files are the same.
      	* toplev.c (init_asm_output): Check if input and output files are
      	the same.
      
      libiberty/ChangeLog:
      
      2014-11-11  Anthony Brandon  <anthony.brandon@gmail.com>
      	    Manuel López-Ibáñez  <manu@gcc.gnu.org>
      
      	PR driver/36312
      	* filename_cmp.c (canonical_filename_eq): New function to check if
      	file names are the same.
      	* functions.texi: Updated with documentation for new function.
      
      Co-Authored-By: Manuel López-Ibáñez <manu@gcc.gnu.org>
      
      From-SVN: r217391
      Anthony Brandon committed
    • Merger of dmalcolm/jit branch from git · 35485da9
      ChangeLog:
      	* ChangeLog.jit: New.
      	* MAINTAINERS (Various Maintainers): Add myself as jit maintainer.
      
      contrib/ChangeLog:
      	* ChangeLog.jit: New.
      	* jit-coverage-report.py: New file: a script to print crude
      	code-coverage information for the libgccjit API.
      
      gcc/ChangeLog:
      	* ChangeLog.jit: New.
      	* Makefile.in (doc_build_sys): New variable, set to "sphinx" if
      	sphinx is installed, falling back to "texinfo" otherwise.
      	(FULL_DRIVER_NAME): New variable, adapted from the
      	install-driver target.  New target, a symlink within the builddir,
      	linked to "xgcc", for use when running the JIT library from the
      	builddir.
      	(MOSTLYCLEANFILES): Add FULL_DRIVER_NAME.
      	(install-driver): Use $(FULL_DRIVER_NAME) rather than spelling it
      	out.
      	* configure.ac (doc_build_sys): New variable, set to "sphinx" if
      	sphinx is installed, falling back to "texinfo" otherwise.
      	(GCC_DRIVER_NAME): Generate a gcc-driver-name.h file containing
      	GCC_DRIVER_NAME for the benefit of jit/internal-api.c.
      	* configure: Regenerate.
      	* doc/install.texi (--enable-host-shared): Specify that this is
      	required when building libgccjit.
      	(Tools/packages necessary for modifying GCC): Add Sphinx.
      	* timevar.def (TV_JIT_REPLAY): New.
      	(TV_ASSEMBLE): New.
      	(TV_LINK): New.
      	(TV_LOAD): New.
      
      gcc/java/ChangeLog:
      	* gcc/ChangeLog.jit: New.
      
      gcc/jit/ChangeLog:
      	* ChangeLog.jit: New.
      	* ChangeLog: New.
      	* Make-lang.in: New.
      	* TODO.rst: New.
      	* config-lang.in: New.
      	* docs/Makefile: New.
      	* docs/_build/texinfo/Makefile: New.
      	* docs/_build/texinfo/factorial.png: New.
      	* docs/_build/texinfo/libgccjit.texi: New.
      	* docs/_build/texinfo/sum-of-squares.png: New.
      	* docs/conf.py: New.
      	* docs/examples/tut01-hello-world.c: New.
      	* docs/examples/tut02-square.c: New.
      	* docs/examples/tut03-sum-of-squares.c: New.
      	* docs/examples/tut04-toyvm/Makefile: New.
      	* docs/examples/tut04-toyvm/factorial.toy: New.
      	* docs/examples/tut04-toyvm/fibonacci.toy: New.
      	* docs/examples/tut04-toyvm/toyvm.c: New.
      	* docs/index.rst: New.
      	* docs/internals/index.rst: New.
      	* docs/intro/factorial.png: New.
      	* docs/intro/index.rst: New.
      	* docs/intro/sum-of-squares.png: New.
      	* docs/intro/tutorial01.rst: New.
      	* docs/intro/tutorial02.rst: New.
      	* docs/intro/tutorial03.rst: New.
      	* docs/intro/tutorial04.rst: New.
      	* docs/topics/contexts.rst: New.
      	* docs/topics/expressions.rst: New.
      	* docs/topics/functions.rst: New.
      	* docs/topics/index.rst: New.
      	* docs/topics/locations.rst: New.
      	* docs/topics/objects.rst: New.
      	* docs/topics/results.rst: New.
      	* docs/topics/types.rst: New.
      	* dummy-frontend.c: New.
      	* jit-builtins.c: New.
      	* jit-builtins.h: New.
      	* jit-common.h: New.
      	* jit-playback.c: New.
      	* jit-playback.h: New.
      	* jit-recording.c: New.
      	* jit-recording.h: New.
      	* libgccjit++.h: New.
      	* libgccjit.c: New.
      	* libgccjit.h: New.
      	* libgccjit.map: New.
      	* notes.txt: New.
      
      gcc/testsuite/ChangeLog:
      	* ChangeLog.jit: New.
      	* jit.dg/all-non-failing-tests.h: New.
      	* jit.dg/harness.h: New.
      	* jit.dg/jit.exp: New.
      	* jit.dg/test-accessing-struct.c: New.
      	* jit.dg/test-accessing-union.c: New.
      	* jit.dg/test-array-as-pointer.c: New.
      	* jit.dg/test-arrays.c: New.
      	* jit.dg/test-calling-external-function.c: New.
      	* jit.dg/test-calling-function-ptr.c: New.
      	* jit.dg/test-combination.c: New.
      	* jit.dg/test-dot-product.c: New.
      	* jit.dg/test-empty.c: New.
      	* jit.dg/test-error-accessing-field-in-other-struct.c: New.
      	* jit.dg/test-error-adding-to-terminated-block.c: New.
      	* jit.dg/test-error-array-as-pointer.c: New.
      	* jit.dg/test-error-bad-cast.c: New.
      	* jit.dg/test-error-block-in-wrong-function.c: New.
      	* jit.dg/test-error-call-through-ptr-with-mismatching-args.c: New.
      	* jit.dg/test-error-call-through-ptr-with-non-function.c: New.
      	* jit.dg/test-error-call-through-ptr-with-non-pointer.c: New.
      	* jit.dg/test-error-call-through-ptr-with-not-enough-args.c: New.
      	* jit.dg/test-error-call-through-ptr-with-too-many-args.c: New.
      	* jit.dg/test-error-call-with-mismatching-args.c: New.
      	* jit.dg/test-error-call-with-not-enough-args.c: New.
      	* jit.dg/test-error-call-with-too-many-args.c: New.
      	* jit.dg/test-error-dereference-field-of-non-pointer.c: New.
      	* jit.dg/test-error-dereference-read-of-non-pointer.c: New.
      	* jit.dg/test-error-get-type-bad-enum.c: New.
      	* jit.dg/test-error-index-not-a-numeric-type.c: New.
      	* jit.dg/test-error-mismatching-types-in-assignment.c: New.
      	* jit.dg/test-error-mismatching-types-in-call.c: New.
      	* jit.dg/test-error-missing-return.c: New.
      	* jit.dg/test-error-new-binary-op-bad-op.c: New.
      	* jit.dg/test-error-new-function-bad-kind.c: New.
      	* jit.dg/test-error-new-unary-op-bad-op.c: New.
      	* jit.dg/test-error-null-passed-to-api.c: New.
      	* jit.dg/test-error-return-within-void-function.c: New.
      	* jit.dg/test-error-unreachable-block.c: New.
      	* jit.dg/test-error-unterminated-block.c: New.
      	* jit.dg/test-error-value-not-a-numeric-type.c: New.
      	* jit.dg/test-expressions.c: New.
      	* jit.dg/test-factorial.c: New.
      	* jit.dg/test-fibonacci.c: New.
      	* jit.dg/test-functions.c: New.
      	* jit.dg/test-fuzzer.c: New.
      	* jit.dg/test-hello-world.c: New.
      	* jit.dg/test-linked-list.c: New.
      	* jit.dg/test-long-names.c: New.
      	* jit.dg/test-nested-contexts.c: New.
      	* jit.dg/test-nested-loops.c: New.
      	* jit.dg/test-operator-overloading.cc: New.
      	* jit.dg/test-quadratic.c: New.
      	* jit.dg/test-quadratic.cc: New.
      	* jit.dg/test-reading-struct.c: New.
      	* jit.dg/test-string-literal.c: New.
      	* jit.dg/test-sum-of-squares.c: New.
      	* jit.dg/test-threads.c: New.
      	* jit.dg/test-types.c: New.
      	* jit.dg/test-using-global.c: New.
      	* jit.dg/test-volatile.c: New.
      
      include/ChangeLog:
      	* ChangeLog.jit: New.
      
      libbacktrace/ChangeLog:
      	* ChangeLog.jit: New.
      
      libcpp/ChangeLog:
      	* ChangeLog.jit: New.
      
      libdecnumber/ChangeLog:
      	* ChangeLog.jit: New.
      
      libiberty/ChangeLog:
      	* ChangeLog.jit: New.
      
      zlib/ChangeLog:
      	* ChangeLog.jit: New.
      
      From-SVN: r217374
      David Malcolm committed
  20. 05 Nov, 2014 3 commits
    • Revert revision 217149 because it breaks Ada: · 10a24138
      gcc/testsuite/ChangeLog:
      
      2014-11-05  Anthony Brandon  <anthony.brandon@gmail.com>
      
              PR driver/36312
              * gcc.misc-tests/output.exp: New test case for identical input and
              output files.
      
      include/ChangeLog:
      
      2014-11-05  Anthony Brandon  <anthony.brandon@gmail.com>
      
              PR driver/36312
              * filenames.h: Add prototype for canonical_filename_eq.
      
      gcc/ChangeLog:
      
      2014-11-05  Anthony Brandon  <anthony.brandon@gmail.com>
      
              PR driver/36312
              * diagnostic-core.h: Add prototype for fatal_error.
              * diagnostic.c (fatal_error): New function fatal_error.
              * gcc.c (store_arg): Remove have_o_argbuf_index.
              (process_command): Check if input and output files are the same.
              * toplev.c (init_asm_output): Check if input and output files are
              the same.
      
      libiberty/ChangeLog:
      
      2014-11-05  Anthony Brandon  <anthony.brandon@gmail.com>
      
              PR driver/36312
              * filename_cmp.c (canonical_filename_eq): New function to check if
              file names are the same.
              * functions.texi: Updated with documentation for new function.
      
      From-SVN: r217159
      Manuel López-Ibáñez committed
    • re PR driver/36312 (should refuse to overwrite input file with output file) · 9c7a77fc
      gcc/testsuite/ChangeLog:
      
      2014-11-05  Anthony Brandon  <anthony.brandon@gmail.com>
      
      	PR driver/36312
      	* gcc.misc-tests/output.exp: New test case for identical input and
      	output files.
      
      include/ChangeLog:
      
      2014-11-05  Anthony Brandon  <anthony.brandon@gmail.com>
      
      	PR driver/36312
      	* filenames.h: Add prototype for canonical_filename_eq.
      
      gcc/ChangeLog:
      
      2014-11-05  Anthony Brandon  <anthony.brandon@gmail.com>
      
      	PR driver/36312
      	* diagnostic-core.h: Add prototype for fatal_error.
      	* diagnostic.c (fatal_error): New function fatal_error.
      	* gcc.c (store_arg): Remove have_o_argbuf_index.
      	(process_command): Check if input and output files are the same.
      	* toplev.c (init_asm_output): Check if input and output files are
      	the same.
      
      libiberty/ChangeLog:
      
      2014-11-05  Anthony Brandon  <anthony.brandon@gmail.com>
      
      	PR driver/36312
      	* filename_cmp.c (canonical_filename_eq): New function to check if
      	file names are the same.
      	* functions.texi: Updated with documentation for new function.
      
      From-SVN: r217149
      Anthony Brandon committed
    • Fix gnu11 fallout on Solaris 10+ · 8c768629
      	libobjc:
      	* thr.c (_XOPEN_SOURCE): Define as 600.
      
      	libiberty:
      	* sigsetmask.c (_POSIX_SOURCE): Remove.
      
      	libgomp:
      	* config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
      
      From-SVN: r217117
      Rainer Orth committed
  21. 28 Oct, 2014 1 commit
    • Add strtoll and strtoull to libiberty. · ea41822a
      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
      Yury Gribov committed
  22. 15 Oct, 2014 1 commit
    • libiberty: Expose choose_tmpdir, and fix constness of return type · e39423c0
      include/ChangeLog:
      	* libiberty.h (choose_tmpdir): New prototype.
      
      libiberty/ChangeLog:
      	* choose-temp.c (choose_tmpdir): Remove now-redundant local
      	copy of prototype.
      	* functions.texi: Regenerate.
      	* make-temp-file.c (choose_tmpdir): Convert return type from
      	char * to const char * - given that this returns a pointer to
      	a memoized allocation, the caller must not touch it.
      
      From-SVN: r216285
      David Malcolm committed
  23. 14 Oct, 2014 1 commit
    • Use strtod instead of strtold in libiberty/d-demangle.c · 2a523cfe
      strtold is currently used to decode templates which have a floating-point
      value encoded inside; but this routine is not available on some systems,
      such as Solaris 2.9 for instance.
      
      This patch fixes the issue by replace the use of strtold by strtod.
      It reduces a bit the precision, but it should still remain acceptable
      in most cases.
      
      libiberty/ChangeLog:
      
              * d-demangle.c: Replace strtold with strtod in global comment.
              (strtold): Remove declaration.
              (strtod): New declaration.
              (dlang_parse_real): Declare value as double instead of long
              double.  Replace call to strtold by call to strtod.
              Update format in call to snprintf.
      
      From-SVN: r216216
      Joel Brobecker committed
  24. 26 Sep, 2014 2 commits
  25. 23 Sep, 2014 1 commit
    • demangle.h (DMGL_DLANG): New macro. · 43b1b9ed
      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
      Iain Buclaw committed
  26. 19 Sep, 2014 1 commit
  27. 29 Aug, 2014 1 commit
  28. 13 Aug, 2014 1 commit