Commit Graph

718 Commits

Author SHA1 Message Date
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
Tristan Gingold 083faca904 bfd/
2011-03-31  Tristan Gingold  <gingold@adacore.com>

	* vms-alpha.c (vms_get_remaining_object_record): Fix dec-c warning.
	(_bfd_vms_write_etir): Ditto.
	(_bfd_vms_slurp_etir): Avoid to use intptr_t
	* configure.com: Generate bfd_stdint.h

binutils/
2011-03-31  Tristan Gingold  <gingold@adacore.com>

	* makefile.vms (DEBUG_OBJS): Add elfcomm.obj.

libiberty/
2011-03-31  Tristan Gingold  <gingold@adacore.com>

	* makefile.vms (OBJS): Add filename_cmp.obj
2011-03-31 11:08:41 +00:00
DJ Delorie d0f0b69d10 merge from gcc 2011-03-25 16:38:27 +00:00
Michael Snyder 12f23c24fa 2011-03-04 Michael Snyder <msnyder@vmware.com>
* cplus-dem.c (ada_demangle): Stop memory leak.
	Also fix a one line indent problem.
2011-03-04 18:25:32 +00:00
Kai Tietz 007d618909 ChangeLog libiberty/
2011-02-28  Kai Tietz  <kai.tietz@onevision.com>

	* filename_cmp.c (filename_ncmp): New function.
	* functions.texi: Regenerated.

ChangeLog include/
2011-02-28  Kai Tietz  <kai.tietz@onevision.com>

	* filenames.h (filename_ncmp): New prototype.

ChangeLog bfd/
2011-02-28  Kai Tietz  <kai.tietz@onevision.com>

	* archive.c (_bfd_find_nested_archive): Use filename_(n)cmp.
	(adjust_relative_path): Likewise.
	(_bfd_construct_extended_name_table): Likewise.
	* corefile.c (generic_core_file_matches_executable_p): Likewise.
	* elf32-bfin.c (bfinfdpic_relocate_section): Likewise.
	* elf32-frv.c (elf32_frv_relocate_section): Likewise.
	* elf32-spu.c (sort_bfds): Likewise.
	(spu_elf_auto_overlay): Likewise.
	* syms.c (_bfd_stab_section_find_nearest_line): Likewise.
	* xcofflink.c (xcoff_set_import_path): Likewise.
	* xtensa-isa.c (xtensa_regfile_lookup): Likewise.
	(xtensa_regfile_lookup_shortname): Likewise.
2011-02-28 18:30:16 +00:00
Ralf Wildenhues d4d868a280 libiberty: documentation markup and order fixes.
libiberty/:
	* splay-tree.c: Escape wrapping newlines in texinfo markup
	with '@', to fix function declaration output rendering.
	* gather-docs: Relax and improve macro name matching to actually
	match all current names and to allow input line wrapping.
	* bsearch.c, concat.c, crc32.c, fnmatch.txh, fopen_unlocked.c,
	hashtab.c, insque.c, make-relative-prefix.c, memchr.c, memcmp.c,
	memcpy.c, memmem.c, memmove.c, mempcpy.c, memset.c,
	pexecute.txh, random.c, setenv.c, setproctitle.c,
	simple-object.txh, snprintf.c, stpncpy.c, strncmp.c, strtod.c,
	strtol.c, vasprintf.c, vprintf.c, vsnprintf.c, xmemdup.c:
	Wrap long texinfo input lines.
	* functions.texi: Regenerate.
2011-02-03 07:23:59 +00:00
DJ Delorie 59e11e1703 merge from gcc 2011-01-03 21:05:58 +00:00
Mike Frysinger 8b9a522f57 bfd/binutils/gas/gprof/ld/libiberty/opcodes: add .gitignore
This seems to cover a few random targets as well as --enable-targets=all.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-12-09 09:03:18 +00:00
DJ Delorie 98f0b5d4e5 merge from gcc 2010-12-08 16:24:43 +00:00
DJ Delorie 531ff9fd96 merge from gcc 2010-11-29 16:34:15 +00:00
DJ Delorie 62b06a9e17 merge from gcc 2010-11-21 04:01:17 +00:00
Ralf Wildenhues 9b980aa1ed PR other/46202: implement install-strip.
/:
	PR other/46202
	* configure.ac: Fix just-built in-tree STRIP name to be
	binutils/strip-new.
	* configure: Regenerate.
	* Makefile.def (install-strip-gcc, install-strip-binutils)
	(install-strip-opcodes, install-strip-ld, install-strip-itcl)
	(install-strip-sid): Mirror dependencies on non-strip variants
	of these targets on the respective -strip prerequisites.
	* Makefile.tpl (install-strip, install-strip-host)
	(install-strip-target): New targets.
	(install-strip-[+module+], install-strip-target-[+module+]):
	New targets.
	* Makefile.in: Regenerate.

etc/:
	* Makefile.in (install-strip): New target.


libiberty/:
	PR other/46202
	* Makefile.in (install-strip): New phony target.
	(install): Also mark as phony.
2010-11-20 19:37:58 +00:00
DJ Delorie f9e6589d87 merge from gcc 2010-11-17 02:03:43 +00:00
H.J. Lu a0692e366a Properly demangle a global constructor symbol.
2010-11-16  H.J. Lu  <hongjiu.lu@intel.com>

	PR other/42670
	PR binutils/11137
	* cp-demangle.c (d_make_demangle_mangled_name): New.
	(d_demangle_callback): Use it on DCT_GLOBAL_XTORS.

	* testsuite/demangle-expected: Updated.
2010-11-16 17:58:26 +00:00
DJ Delorie 28fadfc482 merge from gcc 2010-11-14 21:42:55 +00:00
DJ Delorie 361c311554 merge from gcc 2010-11-13 02:20:31 +00:00
Richard Henderson 9c55e06476 Use spawnve on cygwin.
* configure.ac (AC_CHECK_HEADERS): Add process.h.
	(checkfuncs): Add dup3, spawnve, spawnvpe; sort the list.
	(AC_CHECK_FUNCS): Add dup3, spawnve, spawnvpe.
	* configure, config.in: Rebuild.
	* pex-unix.c [HAVE_SPAWNVE] (pex_unix_exec_child): New function.
	[HAVE_SPAWNVE] (save_and_install_fd, restore_fd): New functions.
2010-11-04 23:41:21 +00:00
DJ Delorie ffa54e5c48 merge from gcc 2010-11-02 15:20:47 +00:00
DJ Delorie 80347f88a2 merge from gcc 2010-10-30 00:01:15 +00:00
DJ Delorie 85f1f7cf9b merge from gcc 2010-10-26 19:18:21 +00:00
DJ Delorie 94e482001f merge from gcc 2010-10-07 16:20:37 +00:00
DJ Delorie 9711ae4d9f merge from gcc 2010-10-06 23:01:30 +00:00
DJ Delorie 6a44904e97 merge from gcc 2010-09-27 21:01:18 +00:00
Tom Tromey 57cf60a5bb 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.
2010-09-10 22:42:05 +00:00
DJ Delorie 497462ef9e merge from gcc 2010-09-09 17:39:52 +00:00
DJ Delorie 23701f2e4d merge from gcc 2010-08-20 23:58:16 +00:00
Nick Clifton 9d8d6261e3 * argv.c (expandargv): Limit the number of times that response
files are opened in order to prevent infinite recursion.
2010-08-13 11:36:10 +00:00