Commit Graph

744 Commits

Author SHA1 Message Date
Richard Earnshaw 7c89917ffa Sync with gcc/libiberty. 2015-01-07 17:34:29 +00:00
Jan-Benedict Glaw abdef8eb90 Sync libiberty from GCC 2014-11-17 03:30:13 +01:00
Rainer Orth d3d7100a0d Fix gnu11 fallout on Solaris 10+
* sigsetmask.c (_POSIX_SOURCE): Remove.
2014-11-05 15:07:38 +01:00
Joel Brobecker 5af04e20f6 Use strtod instead of strtold in libiberty/d-demangle.c
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.
2014-10-16 14:52:17 -07:00
Iain Buclaw b55f967878 Sync libiberty with upstream GCC.
include/ChangeLog
	* libiberty.h (PEX_STDOUT_APPEND): New flag.
	(PEX_STDERR_APPEND): Likewise.

	* 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.

	* longlong.h: Add __udiv_w_sdiv prototype.

libiberty/ChangeLog
	* cp-demangle.c (d_substitution): Handle abi tags on abbreviation.

	* pex-common.h (struct pex_funcs): Add new parameter for open_write field.
	* pex-unix.c (pex_unix_open_write): Add support for new parameter.
	* pex-djgpp.c (pex_djgpp_open_write): Likewise.
	* pex-win32.c (pex_win32_open_write): Likewise.
	* pex-common.c (pex_run_in_environment): Likewise.

	* 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.

	* simple-object-elf.c (simple_object_elf_write_ehdr): Correctly
	handle objects with more than SHN_LORESERVE sections.
	(simple_object_elf_write_shdr): Add sh_link parameter.
	(simple_object_elf_write_to_file): Correctly handle objects with
	more than SHN_LORESERVE sections.

	* 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.

	* testsuite/demangler-fuzzer.c: New file.
	* testsuite/Makefile.in (fuzz-demangler): New rule.
	(demangler-fuzzer): Likewise.
	(mostlyclean): Clean up demangler fuzzer.
2014-10-11 10:29:10 +01:00
Andrew Burgess 173373c6f6 Delete temporary string within demangler even in failure cases.
A call to demangle_template might allocate storage within a temporary
string even if the call to demangle_template eventually returns
failure.

This will never cause the demangler to crash, but does leak memory, as
a result I've not added any tests for this.

Calling string_delete is safe, even if nothing is allocated into the
string, the string is initialised with string_init, so we know the
internal pointers are NULL.

libiberty/ChangeLog

	* cplus-dem.c (do_type): Call string_delete even if the call to
	demangle_template fails.
2014-06-11 11:41:51 +01:00
Kai Tietz f69123aac5 2014-06-01 Ray Donnelly <mingw.android@gmail.com>
* pex-win32.c (argv_to_cmdline): Don't quote
	args unnecessarily.
2014-06-01 22:11:56 +02:00
Pedro Alves 6143b8235e Fix demangler testsuite crashes with CP_DEMANGLE_DEBUG defined
Running the demangler's testsuite with CP_DEMANGLE_DEBUG defined
crashes, with:

 Program received signal SIGSEGV, Segmentation fault.
 0x000000000040a8c3 in d_dump (dc=0x1, indent=12) at ../../src/libiberty/cp-demangle.c:567
 567       switch (dc->type)

 (gdb) bt 3
 #0  0x000000000040a8c3 in d_dump (dc=0x1, indent=12) at ../../src/libiberty/cp-demangle.c:567
 #1  0x000000000040ae47 in d_dump (dc=0x7fffffffd098, indent=10) at ../../src/libiberty/cp-demangle.c:787
 #2  0x000000000040ae47 in d_dump (dc=0x7fffffffd0c8, indent=8) at ../../src/libiberty/cp-demangle.c:787

Note dc=0x1, which is obviously a bogus pointer.  This is the end of
d_dump recursing for a component type that that doesn't actually have
subtrees:

 787       d_dump (d_left (dc), indent + 2);
 788       d_dump (d_right (dc), indent + 2);

This fixes the two cases the testsuite currently trips on.

libiberty/
2014-05-28  Pedro Alves  <palves@redhat.com>

	* cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM
	and DEMANGLE_COMPONENT_NUMBER.
2014-05-28 23:06:44 +01:00
Thomas Schwinge 6e933ccc75 Fix test in libiberty/testsuite/demangle-expected.
libiberty/
	* testsuite/demangle-expected: Fix last commit.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210803 138bc75d-0d04-0410-961f-82ee72b054a4
2014-05-28 23:06:43 +01:00
Andrew Burgess 0aaa9a3aa1 cplus-demangler, free resource after a failed 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210425 138bc75d-0d04-0410-961f-82ee72b054a4
2014-05-28 23:06:43 +01:00
gary 91662bad25 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210205 138bc75d-0d04-0410-961f-82ee72b054a4
2014-05-08 10:18:30 -06:00
jakub 3f48575af8 PR sanitizer/56781 lto-plugin/ * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address. (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS, liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a over ../libiberty/pic/libiberty.a if the former exists. * Makefile.in: Regenerated. libiberty/ * maint-tool: Also emit rule for noasan/ subdirectory. * configure.ac (NOASANFLAG): Set and substitute. * Makefile.in: Regenerated. (NOASANFLAG): Set. (all, $(TARGETLIB), mostlyclean): Handle noasan subdir like pic subdir. (stamp-noasandir): New goal. * configure: Regenerated.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@209476 138bc75d-0d04-0410-961f-82ee72b054a4
2014-05-08 10:18:30 -06:00
rguenth c3c3c691f2 2014-04-01 Richard Biener <rguenther@suse.de>
libiberty/
	* simple-object.c (simple_object_internal_write): Handle
	EINTR and short writes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208972 138bc75d-0d04-0410-961f-82ee72b054a4
2014-05-08 10:18:30 -06:00
rguenth 81ad11e32c 2014-03-28 Richard Biener <rguenther@suse.de>
libiberty/
	* simple-object.c (simple_object_internal_read): Handle
	EINTR and short reads.

	lto-plugin/
	* lto-plugin.c (process_symtab): Handle EINTR and short reads.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208898 138bc75d-0d04-0410-961f-82ee72b054a4
2014-05-08 10:18:30 -06:00
uros a2d010462c * regex.c (bzero) [!_LIBC]: Cast the call to memcpy to (void).
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208558 138bc75d-0d04-0410-961f-82ee72b054a4
2014-05-08 10:18:29 -06:00
uros 10fe779dd2 * regex.c (bzero) [!_LIBC]: Define without coma expression. (regerror): Cast the call to memcpy to (void) to avoid unused value warnings.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208553 138bc75d-0d04-0410-961f-82ee72b054a4
2014-05-08 10:18:29 -06:00
tschwinge 8458514f6a Avoid "'dc' may be uninitialized" warning.
libiberty/
	* cp-demangle.c (d_demangle_callback): Put an abort call in place,
	to help the compiler.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207200 138bc75d-0d04-0410-961f-82ee72b054a4
2014-05-08 10:18:28 -06:00
tromey 281e9aa624 [PATCH] include * ansidecl.h (ANSI_PROTOTYPES, PTRCONST, LONG_DOUBLE, PARAMS) (VPARAMS, VA_START, VA_OPEN, VA_CLOSE, VA_FIXEDARG, CONST) (VOLATILE, SIGNED, PROTO, EXFUN, DEFUN, DEFUN_VOID, AND, DOTS) (NOARGS): Don't define. * libiberty.h (expandargv, writeargv): Don't use PARAMS. libiberty * _doprint.c (checkit): Use stdarg, not VA_* macros. * asprintf.c (asprintf): Use stdarg, not VA_* macros. * concat.c (concat_length, concat_copy, concat_copy2, concat) (reconcat): Use stdarg, not VA_* macros. * snprintf.c (snprintf): Use stdarg, not VA_* macros. * vasprintf.c (checkit): Use stdarg, not VA_* macros. * vsnprintf.c (checkit): Use stdarg, not VA_* macros.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206881 138bc75d-0d04-0410-961f-82ee72b054a4
2014-01-21 08:52:09 -07:00
Mike Frysinger 369be6981b libiberty: fix --enable-install-libiberty flag [PR 56780]
Commit 199570 fixed the --disable-install-libiberty behavior, but it also
added a bug where the enable path never works because the initial clear
of target_header_dir wasn't deleted.  So we end up initializing properly
at the top only to reset it at the end all the time.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206367 138bc75d-0d04-0410-961f-82ee72b054a4
2014-01-06 13:44:33 -05:00
Gary Benson fd259167db libiberty: sync with gcc
libiberty/ 2014-01-06 Gary Benson <gbenson@redhat.com>

	* cp-demangle.c (struct d_print_info): New fields
	next_saved_scope, copy_templates, next_copy_template and
	num_copy_templates.
	(d_count_templates): New function.
	(d_print_init): New parameter "dc".
	Estimate numbers of templates and scopes required.
	(d_print_free): Removed function.
	(cplus_demangle_print_callback): Allocate stack for
	templates and scopes.  Removed call to d_print_free.
	(d_copy_templates): Removed function.
	(d_save_scope): New function.
	(d_get_saved_scope): Likewise.
	(d_print_comp): Replace state saving/restoring code with
	calls to d_save_scope and d_get_saved_scope.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206362 138bc75d-0d04-0410-961f-82ee72b054a4
2014-01-06 13:44:24 -05:00
Bill Maddox eafbc3bf7b libiberty: sync with gcc
PR c++/41090
	Add -fdeclone-ctor-dtor.
include/
	* demangle.h (enum gnu_v3_ctor_kinds):
	Added literal gnu_v3_unified_ctor.
	(enum gnu_v3_ctor_kinds):
	Added literal gnu_v3_unified_dtor.
libiberty/
	* cp-demangle.c (cplus_demangle_fill_ctor,cplus_demangle_fill_dtor):
	Handle unified ctor/dtor.
	(d_ctor_dtor_name): Handle unified ctor/dtor.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206182 138bc75d-0d04-0410-961f-82ee72b054a4
2014-01-06 13:44:21 -05:00
ccoutant 492e19d098 Fix demangler to handle conversion operators correctly.
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205292 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-26 09:35:29 -07:00
schwab f0c897ef0a config/ * picflag.m4 (m68k-*-*): Use default PIC flag.
gcc/
* configure: Regenerate.

libada/
* configure: Regenerate.

libgcc/
* configure: Regenerate.

libiberty/
* configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204854 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-21 10:50:04 -07:00
uros 8467a2fd55 * cp-demangle.c (d_copy_templates): Cast result of malloc to (struct d_print_template *). (d_print_comp): Cast result of realloc to (struct d_saved scope *).
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204713 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-15 10:17:57 -07:00
glisse 689a1abf0d 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
PR tree-optimization/58689
include/
	* ansidecl.h (ATTRIBUTE_RETURNS_NONNULL): New macro.
	* libiberty.h (basename, lbasename, dos_lbasename, unix_lbasename,
	concat_copy): Mark with attributes nonnull(1) and returns_nonnull.
	(concat, reconcat, concat_copy2, choose_temp_base, xstrerror,
	xmalloc, xrealloc, xcalloc, xstrdup, xstrndup, xmemdup, pex_init):
	Mark with attribute returns_nonnull.

libiberty/
	* concat.c: Remove note about xmalloc.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204159 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-08 11:11:41 -07:00
gerald eec6550343 * testsuite/test-demangle.c: Include unistd.h.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204107 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-08 11:11:41 -07:00
gary 9548bbede5 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204068 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-08 11:11:41 -07:00
gerald ae6da67e35 * testsuite/test-expandargv.c: Include unistd.h.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203993 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-08 11:11:40 -07:00
gerald a903d6ac5a Fix up ChangeLog entries (name, e-mail, formatting, otherwise).
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203992 138bc75d-0d04-0410-961f-82ee72b054a4
2013-11-08 11:11:40 -07:00
DJ Delorie 26505cc0c4 merge from gcc 2013-10-16 00:29:48 +00:00
DJ Delorie 46dd523316 merge from gcc 2013-09-12 16:08:09 +00:00
DJ Delorie 53f94b92ee merge from gcc 2013-09-10 19:01:22 +00:00
DJ Delorie eabdca0f8d merge from gcc 2013-09-10 16:05:02 +00:00
DJ Delorie 21290977cb merge from gcc 2013-08-20 06:02:53 +00:00
DJ Delorie 632a40b341 merge from gcc 2013-07-22 18:03:12 +00:00
DJ Delorie 44b6b9d4f9 merge from gcc 2013-07-21 17:19:10 +00:00
Tristan Gingold bc771b3b8d 2013-07-09 Tristan Gingold <gingold@adacore.com>
* makefile.vms (OBJS): Add dwarfnames.obj
2013-07-09 07:44:25 +00:00
DJ Delorie a4818a052e merge from gcc 2013-06-01 01:01:44 +00:00
DJ Delorie 3ecb733811 merge from gcc 2013-05-10 03:03:04 +00:00
DJ Delorie 29f045bb48 merge from gcc 2013-04-23 04:05:04 +00:00
DJ Delorie dcd7e9d6a5 merge from gcc 2013-04-04 01:03:01 +00:00
DJ Delorie 3a4d23392f merge from gcc 2013-04-03 18:21:49 +00:00
DJ Delorie 3afd2652d4 merge from gcc 2013-03-28 02:00:05 +00:00
DJ Delorie eea302037a merge from gcc 2013-03-17 21:25:53 +00:00
Eli Zaretskii 72edb7c28f Fix compilation warning by MinGW GCC.
setenv.c [!HAVE_ENVIRON_DECL]: Avoid declaring environ if it is
 a macro, as this causes compiler warnings with MinGW.
2013-03-17 19:04:25 +00:00
DJ Delorie 2fd2526edd merge from gcc 2013-03-01 23:00:28 +00:00
DJ Delorie a9c3ecea79 merge from gcc 2013-02-15 02:48:33 +00:00
DJ Delorie 389d9b6c50 merge from gcc 2013-02-09 19:22:49 +00:00
DJ Delorie 0f5f799a26 merge from gcc 2013-02-07 04:43:49 +00:00
Kai Tietz fe4b0b4632 PR other/543413
* md5.c (md5_process_block):  Handle case that size_t is
	a wider-integer-scalar a 32-bit unsigned integer.
2013-01-31 08:10:38 +00:00
DJ Delorie 07a8e9f036 merge from gcc 2013-01-07 20:28:44 +00:00
DJ Delorie 1f3de044c6 merge from gcc 2012-11-11 22:37:30 +00:00
DJ Delorie 995b61fe5b merge from gcc 2012-10-10 03:11:33 +00:00
H.J. Lu b9b64803f6 Replace malloc with xmalloc
* argv.c (dupargv): Replace malloc with xmalloc.  Don't check
	xmalloc return.
	(buildargv): Likewise.  Also replace strdup with xstrdup.
	(expandargv): Don't check dupargv return.
2012-08-29 01:02:41 +00:00
H.J. Lu bf8247ff45 Replace alloca with xmalloc/free
PR binutils/14526
	* argv.c (buildargv): Replace alloca with xmalloc/free.
2012-08-29 00:45:49 +00:00
Andreas Schwab e372c21ce5 * floatformat.c (floatformat_to_double): Correctly handle numbers
between 1 and 2.  Simplify handling of denormal number.
(main): Test with 1.1.
2012-08-17 21:59:31 +00:00
Mike Frysinger 902e433550 libiberty/md5: fix strict alias warnings
Current libiberty md5 code triggers these warnings with gcc-4.7.1 for me:

libiberty/md5.c: In function ‘md5_finish_ctx’:
libiberty/md5.c:117:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
libiberty/md5.c:118:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]

The change below fixes things for me.  The optimized output (-O2) is the same
before/after my change on x86_64-linux.  I imagine it'll be the same for most
targets.  It seems simpler than using a union on the md5_ctx buffer since these
are the only two locations in the code where this occurs.
2012-07-31 09:02:35 +00:00
DJ Delorie 9974286ed1 merge from gcc 2012-07-27 00:02:21 +00:00
DJ Delorie 7c32896367 merge from gcc 2012-07-18 20:09:08 +00:00
Doug Evans 0429544a87 include/
* filenames.h: #include "hashtab.h".
	(filename_hash, filename_eq): Declare.
	libiberty/
	* filename_cmp.c (filename_hash, filename_eq): New functions.
2012-07-13 23:39:46 +00:00
DJ Delorie 5afcec7379 merge from gcc 2012-06-29 12:10:05 +00:00
DJ Delorie 67bf71fede merge from gcc 2012-05-22 18:05:41 +00:00
DJ Delorie fa66ec5377 merge from gcc 2012-04-27 18:03:26 +00:00
DJ Delorie b3641a6eb9 merge from gcc 2012-04-10 17:07:35 +00:00
DJ Delorie 24e829d007 merge from gcc 2012-04-02 18:50:29 +00:00
DJ Delorie 4e3aa40890 merge from gcc 2012-03-08 00:01:31 +00:00
Jakub Jelinek 1712e1d4f7 * make-relative-prefix.c (make_relative_prefix_1): Avoid warning
about using preprocessor directives inside of macro arguments.
2012-01-26 14:28:31 +00:00
DJ Delorie d12c31dfa7 merge from gcc 2012-01-23 07:01:21 +00:00
DJ Delorie fbfd63c0a6 merge from gcc 2012-01-10 18:15:34 +00:00
DJ Delorie eb7b5ddb8b merge from gcc 2012-01-06 22:04:43 +00:00
DJ Delorie dd28faae1a merge from gcc 2012-01-03 16:02:36 +00:00
DJ Delorie 3fee530e50 merge from gcc 2011-12-20 19:02:08 +00:00
Andreas Schwab 604fcd6577 config/:
* warnings.m4 (ACX_PROG_CC_WARNING_OPTS): Avoid leading dash in
	expr call.
libdecnumber/:
	* configure: Regenerate.
libiberty/:
	* configure: Regenerate.
2011-12-20 17:01:30 +00:00
Andreas Schwab a53e62cf56 Check for warning flags without no- prefix
config/:
	* warnings.m4 (ACX_PROG_CC_WARNING_OPTS)
	(ACX_PROG_CC_WARNING_ALMOST_PEDANTIC): Run the test without the
	no- prefix.
libdecnumber/:
	* configure: Regenerate.
libiberty/:
	* configure: Regenerate.
2011-12-19 13:20:24 +00:00
DJ Delorie 956a8f8beb merge from gcc 2011-11-08 16:01:58 +00:00
DJ Delorie abc6552b26 merge from gcc 2011-11-04 14:32:13 +00:00
DJ Delorie cf185ad7a9 merge from gcc 2011-11-02 22:02:55 +00:00
DJ Delorie eb2722c12c merge from gcc 2011-10-29 01:06:33 +00:00
DJ Delorie 85d7ed08a8 merge from gcc 2011-10-26 15:56:36 +00:00
DJ Delorie f9fb0b2d9f merge from gcc 2011-10-10 21:02:57 +00:00
DJ Delorie 514c97d3e0 merge from gcc 2011-09-28 20:01:45 +00:00
DJ Delorie 139d7133b8 merge from gcc 2011-09-26 23:05:03 +00:00
DJ Delorie 7955ede528 merge from gcc 2011-09-23 22:21:36 +00:00
DJ Delorie 634e4f4ff8 merge from gcc 2011-09-23 20:01:11 +00:00
DJ Delorie 601a99c67b merge from gcc 2011-08-22 17:16:25 +00:00
DJ Delorie 091c2a968a merge from gcc 2011-08-12 18:44:43 +00:00
DJ Delorie 6b6bd65aa5 merge from gcc 2011-08-06 18:40:27 +00:00
H.J. Lu 31ba042a69 Sync with gcc.
2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>

	* testsuite/demangle-expected: Remove an extra line.
2011-07-31 19:57:23 +00:00
DJ Delorie 04aed65246 merge from gcc 2011-07-26 16:04:38 +00:00
DJ Delorie 17a16b0f10 merge from gcc 2011-07-25 17:11:48 +00:00
DJ Delorie 26ac12805d merge from gcc 2011-07-22 14:37:58 +00:00
DJ Delorie f2917a30d0 merge from gcc 2011-07-05 15:40:17 +00:00
Joel Brobecker 7d6b320b79 [libiberty/filename_cmp] Darwin has case-insensitive filesystems
include/ChangeLog:

        * filenames.h (HAVE_CASE_INSENSITIVE_FILE_SYSTEM): Define
        on Darwin, as well as on the systems that use a DOS-like
        filesystem.

libiberty/ChangeLog:

        * filename_cmp.c (filename_cmp, filename_ncmp): Add handling of
        HAVE_CASE_INSENSITIVE_FILE_SYSTEM.
2011-07-01 18:24:39 +00:00
Jan Kratochvil 02e7efbffb merge from gcc
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-07-01 17:30:48 +00:00
DJ Delorie b24539b3f7 merge from gcc 2011-06-22 19:13:44 +00:00
DJ Delorie ddee5e46a4 merge from gcc 2011-06-13 23:01:48 +00:00
DJ Delorie 02d1f5acc5 merge from gcc 2011-06-13 16:37:46 +00:00
Corinna Vinschen fe817eb1a3 * strsignal.c (psignal): Change second parameter to const char *.
Fix comment accordingly.
2011-05-17 16:14:52 +00:00
DJ Delorie 4ff224cb8d merge from gcc 2011-04-20 19:06:46 +00:00
DJ Delorie a55c6f410e merge from gcc 2011-04-10 19:15:10 +00:00