This is the mail archive of the gcc-patches@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]

Re: [RFA] s/char/void/g in floatformat.[ch]


> 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.


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