source: mainline/tools/toolchain-gdb-7.12.1.patch@ 223efc0

Last change on this file since 223efc0 was 223efc0, checked in by Kai Liu <nebulabox@…>, 8 years ago

Fix toolchain build broken on macOS 10.13

  • Property mode set to 100644
File size: 1.0 KB
  • gdb/doublest.c

    diff -rud gdb-7.12.1-original/gdb/doublest.c gdb-7.12.1/gdb/doublest.c
    old new  
    255255
    256256  while (mant_bits_left > 0)
    257257    {
    258       mant_bits = min (mant_bits_left, 32);
     258      mant_bits = fmin (mant_bits_left, 32);
    259259
    260260      mant = get_field (ufrom, order, fmt->totalsize, mant_off, mant_bits);
    261261
     
    565565  mant_zero = 1;
    566566  while (mant_bits_left > 0)
    567567    {
    568       mant_bits = min (mant_bits_left, 32);
     568      mant_bits = fmin (mant_bits_left, 32);
    569569
    570570      mant = get_field (uval, order, fmt->totalsize, mant_off, mant_bits);
    571571
     
    909909         comment in store_typed_floating for a discussion about
    910910         zeroing out remaining bytes in the target buffer.  */
    911911      memset (to, 0, TYPE_LENGTH (to_type));
    912       memcpy (to, from, min (TYPE_LENGTH (from_type), TYPE_LENGTH (to_type)));
     912      memcpy (to, from, fmin (TYPE_LENGTH (from_type), TYPE_LENGTH (to_type)));
    913913    }
    914914  else
    915915    {
Note: See TracBrowser for help on using the repository browser.