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
RevLine 
[223efc0]1diff -rud gdb-7.12.1-original/gdb/doublest.c gdb-7.12.1/gdb/doublest.c
2--- gdb-7.12.1-original/gdb/doublest.c 2017-01-21 21:48:42.000000000 +0800
3+++ gdb-7.12.1/gdb/doublest.c 2017-12-06 11:08:35.000000000 +0800
4@@ -255,7 +255,7 @@
5
6 while (mant_bits_left > 0)
7 {
8- mant_bits = min (mant_bits_left, 32);
9+ mant_bits = fmin (mant_bits_left, 32);
10
11 mant = get_field (ufrom, order, fmt->totalsize, mant_off, mant_bits);
12
13@@ -565,7 +565,7 @@
14 mant_zero = 1;
15 while (mant_bits_left > 0)
16 {
17- mant_bits = min (mant_bits_left, 32);
18+ mant_bits = fmin (mant_bits_left, 32);
19
20 mant = get_field (uval, order, fmt->totalsize, mant_off, mant_bits);
21
22@@ -909,7 +909,7 @@
23 comment in store_typed_floating for a discussion about
24 zeroing out remaining bytes in the target buffer. */
25 memset (to, 0, TYPE_LENGTH (to_type));
26- memcpy (to, from, min (TYPE_LENGTH (from_type), TYPE_LENGTH (to_type)));
27+ memcpy (to, from, fmin (TYPE_LENGTH (from_type), TYPE_LENGTH (to_type)));
28 }
29 else
30 {
Note: See TracBrowser for help on using the repository browser.