Commit Graph

25 Commits

Author SHA1 Message Date
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
DJ Delorie
514c97d3e0 merge from gcc 2011-09-28 20:01:45 +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
DJ Delorie
79e3146812 merge from gcc 2009-10-09 04:49:52 +00:00
DJ Delorie
acf3a81396 merge from gcc 2007-07-23 18:01:25 +00:00
DJ Delorie
db42c6e8ee merge from gcc 2007-07-12 03:10:12 +00:00
DJ Delorie
0c18fee5b3 merge from gcc 2007-05-08 01:29:33 +00:00
DJ Delorie
8535fe175a merge from gcc 2007-04-11 20:01:26 +00:00
DJ Delorie
67d78caad5 merge from gcc 2006-01-21 04:28:49 +00:00
Mark Mitchell
48e79b0a53 * argv.c (expandargv): Do not use xmalloc_failed. 2005-09-27 15:21:13 +00:00
Mark Mitchell
7b17bc2995 * libiberty.h (expandargv): New function.
* argv.c (safe-ctype.h): Include it.
	(ISBLANK): Remove.
	(stdio.h): Include.
	(buildargv): Use ISSPACE instead of ISBLANK.
	(expandargv): New function.
	* Makefile.in: Regenerated.
2005-09-26 21:02:59 +00:00
Nick Clifton
979c05d324 Update the address and phone number of the FSF organization. 2005-05-10 15:33:34 +00:00
DJ Delorie
fa99459db0 merge from gcc 2005-04-16 01:05:05 +00:00
DJ Delorie
ab70e2a569 merge from gcc 2005-04-14 02:22:18 +00:00
DJ Delorie
9334f9c6cd merge from gcc 2005-03-27 05:28:42 +00:00
DJ Delorie
1ea16ec5b4 merge from gcc 2003-04-15 21:29:34 +00:00
DJ Delorie
7ec2fc6f76 merge from gcc 2003-04-15 03:53:53 +00:00
DJ Delorie
5d852400e9 merge from gcc 2001-10-17 22:35:28 +00:00
DJ Delorie
ba19b94f67 merge from gcc 2001-10-16 02:55:31 +00:00
DJ Delorie
e6450fe561 merge from gcc 2001-10-07 17:24:36 +00:00
DJ Delorie
30673bf511 merge from gcc 2001-03-06 18:27:14 +00:00
DJ Delorie
ac424eb32c * safe-ctype.c: New file.
* Makefile.in (CFILES): Add safe-ctype.c.
(REQUIRED_OFILES): Add safe-ctype.o.

* argv.c: Define ISBLANK and use it, not isspace.
* basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h.  Use
uppercase ctype macros.  Don't test ISUPPER(c)/ISLOWER(c)
before calling TOLOWER(c)/TOUPPER(c).
2000-12-08 16:37:01 +00:00
Richard Henderson
35ca97eacf * argv.c: Include stdlib.h and string.h instead of
prototyping directly.
        * choose-temp.c: Conditionally include string.h.
1999-07-14 17:32:02 +00:00
Richard Henderson
252b5132c7 19990502 sourceware import 1999-05-03 07:29:11 +00:00