Patch to deprecate casts as lvalues for C

Joseph S. Myers jsm@polyomino.org.uk
Mon Oct 20 21:24:00 GMT 2003


On Mon, 20 Oct 2003, Zack Weinberg wrote:

> the code in obstack.h is nonobvious.  I'm also worried about
> divergence from the master sources.

We *have* five years of divergence.  The last merge from any sort of 
upstream seems to have been

Mon Jun  1 13:47:55 1998  Jason Molenda  (crash@bugshack.cygnus.com)

        * obstack.c: Update to latest FSF version.

Mon Jun  1 13:48:32 1998  Jason Molenda  (crash@bugshack.cygnus.com)

        * obstack.h: Update to latest FSF version.

and the last change even touching on the possibility of merging was

2000-12-29  DJ Delorie  <dj@redhat.com>

        * fnmatch.c: Make the note about the origins of this file more
        accurate, at least until we can sync with glibc.
        * getopt.c: Ditto.
        * getopt1.c: Ditto.
        * md5.c: Ditto.
        * obstack.c: Ditto.

(whence "NOTE: This source is derived from an old version taken from the
GNU C Library (glibc).").

The current gnulib versions of obstack.c and obstack.h require at least a 
C90 compiler so aren't yet suitable for libiberty as-is.

-- 
Joseph S. Myers
jsm@polyomino.org.uk



More information about the Gcc-patches mailing list