It's (PCH) merging time! for libiberty

Matt Kraai kraai@alumni.cmu.edu
Wed Jun 5 07:47:00 GMT 2002


On Tue, Jun 04, 2002 at 09:30:46PM -0700, Geoff Keating wrote:
> 
> OK, how about this?
> 
> -- 
> - Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>
> 
> ===File ~/patches/cygnus/pch-libibertyback-2.patch==========
> Index: include/ChangeLog
> 2002-06-04  Geoffrey Keating  <geoffk@redhat.com>
> 
> 	* hashtab.h (htab_create): Restore prototype for backwards
                                                         ^^^^^^^^^
FOLDOC says `backward compatibility'.

> 	compatibility.
> 	(htab_try_create): Likewise.
> 
> Index: libiberty/ChangeLog
> 2002-06-04  Geoffrey Keating  <geoffk@redhat.com>
> 
> 	* hashtab.c (htab_create): New stub function for backwards
                                                         ^^^^^^^^^
Likewise.

> 	compatibility.
> 	(htab_try_create): Likewise.
> 
> Index: include/hashtab.h
> ===================================================================
> RCS file: /cvs/gcc/gcc/include/hashtab.h,v
> retrieving revision 1.12
> diff -p -u -p -r1.12 hashtab.h
> --- include/hashtab.h	4 Jun 2002 07:11:03 -0000	1.12
> +++ include/hashtab.h	5 Jun 2002 04:27:14 -0000
> @@ -128,7 +128,11 @@ extern htab_t	htab_create_alloc	PARAMS (
>  						 htab_eq, htab_del,
>  						 htab_alloc, htab_free));
>  
> -/* Provided for convenience... */
> +/* Backwards-compatibility functions.  */
      ^^^^^^^^^^^^^^^^^^^^^^^
Likewise.

> +extern htab_t htab_create PARAMS ((size_t, htab_hash, htab_eq, htab_del));
> +extern htab_t htab_try_create PARAMS ((size_t, htab_hash, htab_eq, htab_del));
> +
> +/* Provided for convenience.  */
>  #define htab_create(SIZE, HASH, EQ, DEL) \
>    htab_create_alloc (SIZE, HASH, EQ, DEL, xcalloc, free)
>  
> Index: libiberty/hashtab.c
> ===================================================================
> RCS file: /cvs/gcc/gcc/libiberty/hashtab.c,v
> retrieving revision 1.27
> diff -p -u -p -r1.27 hashtab.c
> --- libiberty/hashtab.c	4 Jun 2002 07:11:05 -0000	1.27
> +++ libiberty/hashtab.c	5 Jun 2002 04:27:14 -0000
> @@ -191,6 +191,29 @@ htab_create_alloc (size, hash_f, eq_f, d
>    return result;
>  }
>  
> +/* These functions exist solely for backwards compatibility.  */
                                       ^^^^^^^^^^^^^^^^^^^^^^^
Likewise.

Matt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20020605/295e76cb/attachment.sig>


More information about the Gcc-patches mailing list