Commit Graph

654 Commits

Author SHA1 Message Date
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