Commit graph

16 commits

Author SHA1 Message Date
DJ Delorie
b5c3b3deb6 merge from gcc 2005-01-11 21:01:13 +00:00
DJ Delorie
70ecf948d9 merge from gcc 2003-06-22 16:35:53 +00:00
Nick Clifton
5a4e47bd30 asprintf.c: Change comment to note that -1 is returned upon error.
vasprintf.c: Likewise.	(vasprintf): Return -1 upon error.
functions.texi: Document changes to asprintf and vasprintf.
2003-06-03 18:17:29 +00:00
Jim Blandy
e4f7904629 libiberty/ChangeLog:
2003-05-14  Jim Blandy  <jimb@redhat.com>

	* hex.c (_hex_value): Make this unsigned.
	(hex_value): Update documentation for new return type.  hex_value
	now expands to an unsigned int expression, to avoid unexpected
	sign extension when we store it in a bfd_vma, which is larger than
	int on some platforms.
	* functions.texi: Regenerated.

include/ChangeLog:
2003-05-14  Jim Blandy  <jimb@redhat.com>

	* libiberty.h (hex_value): Make the value an unsigned int, to
	avoid unexpected sign-extension when cast to unsigned types larger
	than int --- like bfd_vma, on some platforms.
	(_hex_value): Update declaration.
2003-05-15 19:08:25 +00:00
DJ Delorie
2ed1e5cc55 merge from gcc 2003-04-16 23:09:21 +00:00
DJ Delorie
10b57b38b3 merge from gcc 2003-04-16 03:51:54 +00:00
Daniel Jacobowitz
ba61a41253 * Makefile.in (CFILES): Add lrealpath.c.
(REQUIRED_OFILES): Add lrealpath.o.
	(lrealpath.o): Add rule.
	* aclocal.m4 (libiberty_NEED_DECLARATION): Add.
	* configure.in: Add realpath and canonicalize_file_name to
	checkfuncs and AC_CHECK_FUNCS.  Use libiberty_NEED_DECLARATION
	for canonicalize_file_name.
	* lrealpath.c: New file.
	* make-relative-prefix.c: Update documentation.
	(make_relative_prefix): Simplify.  Use lbasename and lrealpath.
	* config.in: Regenerated.
	* configure: Regenerated.
	* functions.texi: Regenerated.
2003-02-20 22:14:18 +00:00
DJ Delorie
5a17353c6b merge from gcc 2003-01-24 21:31:35 +00:00
DJ Delorie
2a80c0a458 merge from gcc 2002-11-22 21:02:14 +00:00
DJ Delorie
7dd4d42a60 merge from gcc 2002-03-28 04:06:38 +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
56056af518 merge from gcc 2001-10-10 00:05:13 +00:00
DJ Delorie
99b5813985 merge from gcc 2001-10-07 22:42:23 +00:00
DJ Delorie
fa9f0e33b3 merge from gcc 2001-09-27 20:27:58 +00:00
DJ Delorie
3942352316 merge from gcc 2001-09-26 18:45:50 +00:00