This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [libiberty and gdb] floatformat_is_valid
- From: Mark Kettenis <kettenis at chello dot nl>
- To: drow at mvista dot com
- Cc: gdb-patches at sources dot redhat dot com, binutils at sources dot redhat dot com, gcc-patches at gcc dot gnu dot org
- Date: Mon, 15 Sep 2003 23:52:30 +0200 (CEST)
- Subject: Re: [libiberty and gdb] floatformat_is_valid
- References: <20030915143933.GA22129@nevyn.them.org>
Date: Mon, 15 Sep 2003 10:39:33 -0400
From: Daniel Jacobowitz <drow@mvista.com>
2003-09-15 Daniel Jacobowitz <drow@mvista.com>
* floatformat.h (floatformat_is_valid): Add prototype.
2003-09-15 Daniel Jacobowitz <drow@mvista.com>
* floatformat.c (floatformat_is_valid): New function.
(get_field, put_field): Correct comments.
2003-09-15 Daniel Jacobowitz <drow@mvista.com>
* values.c (unpack_double): Call floatformat_is_valid.
There's a problem with cons-correctness :-(.
gcc -c -g -O2 -I. -I../../src/gdb -I../../src/gdb/config -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I../../src/gdb/../include/opcode -I../../src/gdb/../readline/.. -I../bfd -I../../src/gdb/../bfd -I../../src/gdb/../include -I../intl -I../../src/gdb/../intl -DMI_OUT=1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral -Werror ../../src/gdb/values.c
cc1: warnings being treated as errors
../../src/gdb/values.c: In function `unpack_double':
../../src/gdb/values.c:744: warning: passing arg 2 of `floatformat_is_valid' discards qualifiers from pointer target type
gmake[1]: *** [values.o] Error 1
gmake[1]: Leaving directory `/usr/home/kettenis/sandbox/gdb/obj/gdb'
gmake: *** [all-gdb] Error 2
Could you fix that please?
Mark