This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/14308] gcc unable to compile gdb-6.0


------- Additional Comments From drow at false dot org  2004-02-26 16:13 -------
Subject: Re:  New: gcc unable to compile gdb-6.0

On Thu, Feb 26, 2004 at 03:44:24PM -0000, mblack at csi-inc dot com wrote:
> gcc -c -g -O2    -I. -I. -I./config -DLOCALEDIR="\"/usr/local/share/locale\"" -
> DHAVE_CONFIG_H -I./../include/opcode -I./../readline/
> .. -I../bfd -I./../bfd  -I./../include -I../intl -I./../intl  -DMI_OUT=1 -
> Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wp
> arentheses -Wpointer-arith -Wuninitialized  gdbtypes.c
> gdbtypes.c: In function `recursive_dump_type':
> gdbtypes.c:3059: error: invalid lvalue in increment

Fixed in HEAD GDB:

2003-10-22  Joseph S. Myers  <jsm@polyomino.org.uk>

        * obstack.h: Merge the following change from gnulib:
        2003-10-21  Paul Eggert  <eggert@twinsun.com>
        * obstack.h (obstack_1grow_fast): Properly parenthesize arg.
        (obstack_ptr_grow_fast, obstack_int_grow_fast):
        Don't use lvalue casts, as GCC plans to remove support for them
        in GCC 3.5.  Reported by Joseph S. Myers.  This bug
        was also present in the non-GCC version, indicating that this
        code had always been buggy and had never been widely used.
        (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
        Use the fast variant of each macro, rather than copying the
        definiens of the fast variant; that way, we'll be more likely to
        catch future bugs in the fast variants.



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14308


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]