From: Oleg Endo Date: Sat, 3 May 2014 08:21:24 +0000 (+0000) Subject: backport: re PR target/61026 (sh-rtems4.11 build of 4.9.0 fails on FreeBSD 10 c+... X-Git-Tag: releases/gcc-4.8.3~99 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09840c2ebee383a69fb3555a5c7e8ce60905131e;p=thirdparty%2Fgcc.git backport: re PR target/61026 (sh-rtems4.11 build of 4.9.0 fails on FreeBSD 10 c++ (clang).) Back port from mainline PR target/61026 * config/sh/sh.c: Include stdlib headers before everything else. From-SVN: r210030 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0eeafbfca243..fafed2afb370 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-05-03 Oleg Endo + + Back port from mainline + PR target/61026 + * config/sh/sh.c: Include stdlib headers before everything else. + 2014-05-02 Bill Schmidt PR tree-optimization/60930 diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index 2819da80939d..9ecaa926ddad 100644 --- a/gcc/config/sh/sh.c +++ b/gcc/config/sh/sh.c @@ -24,6 +24,9 @@ along with GCC; see the file COPYING3. If not see malloc & co, which are poisoned by "system.h". The proper solution is to include in "system.h" instead of . */ #include +#include +#include +#include #include "config.h" #include "system.h" @@ -60,10 +63,6 @@ along with GCC; see the file COPYING3. If not see #include "tm-constrs.h" #include "opts.h" -#include -#include -#include - int code_for_indirect_jump_scratch = CODE_FOR_indirect_jump_scratch; #define MSW (TARGET_LITTLE_ENDIAN ? 1 : 0)