Add missing include for stdlib.h.
authorCarlos O'Donell <carlos@redhat.com>
Fri, 28 Oct 2016 16:43:15 +0000 (12:43 -0400)
committerCarlos O'Donell <carlos@redhat.com>
Fri, 28 Oct 2016 16:45:27 +0000 (12:45 -0400)
The test math/test-nan-overflow uses malloc without including
stdlib.h. On -Os builds for i486 the header inclusion order
is altered enough that the test fails to build because of the
warning which is turned into an error.

The obvious fix is to include stdlib.h since malloc is being
used directly.

ChangeLog
math/test-nan-overflow.c

index 995720e..6c6caab 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2016-10-28  Carlos O'Donell  <carlos@redhat.com>
+
+       * math/test-nan-overflow.c: Include stdlib.h for malloc.
+
 2016-10-28  H.J. Lu  <hongjiu.lu@intel.com>
 
        [BZ #20019]
index 40aae2e..745a044 100644 (file)
@@ -20,6 +20,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <sys/resource.h>
+#include <stdlib.h>
 
 #define STACK_LIM 1048576
 #define STRING_SIZE (2 * STACK_LIM)