This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [RFA] s/char/void/g in floatformat.[ch]
- From: DJ Delorie <dj at redhat dot com>
- To: mark dot kettenis at xs4all dot nl
- Cc: gcc-patches at gnu dot org, binutils at sources dot redhat dot com, gdb-patches at sources dot redhat dot com
- Date: Mon, 15 Aug 2005 10:52:17 -0400
- Subject: Re: [RFA] s/char/void/g in floatformat.[ch]
- References: <200508151415.j7FEFGiV026412@elgar.sibelius.xs4all.nl>
> The fact that the floatformat_xxx functions use `char *' for byte
> buffers used to store floating-point numbers doesn't help with GCC
> 4's `unsigned char' vs. '(signed) char' "madness". GDB now uses
> `gdb_byte' instead of '(unsigned) char', but we obviously cannot use
> that in libiberty. Therefore I propose we take the easy way out and
> use `void *' for the byte buffers. That should remove the need for
> nasty casts in all code that uses the floatformat stuff.
>
> Mark
Ok.
> P.S. I still think this code should be removed from libiberty/ and
> moved back into gdb/. Or does newlib still use it?
opcodes uses it for m68k.