From c31746887dc5007f7b77f8f99b5e9335bebec167 Mon Sep 17 00:00:00 2001 From: Carlos O'Donell Date: Fri, 28 Oct 2016 12:43:15 -0400 Subject: [PATCH] Add missing include for stdlib.h. 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 | 4 ++++ math/test-nan-overflow.c | 1 + 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 995720ec69..6c6caab25d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2016-10-28 Carlos O'Donell + + * math/test-nan-overflow.c: Include stdlib.h for malloc. + 2016-10-28 H.J. Lu [BZ #20019] diff --git a/math/test-nan-overflow.c b/math/test-nan-overflow.c index 40aae2ed14..745a044b96 100644 --- a/math/test-nan-overflow.c +++ b/math/test-nan-overflow.c @@ -20,6 +20,7 @@ #include #include #include +#include #define STACK_LIM 1048576 #define STRING_SIZE (2 * STACK_LIM) -- 2.11.4.GIT