From: Oleg Endo Date: Sat, 3 May 2014 07:51:02 +0000 (+0000) Subject: re PR target/61026 (sh-rtems4.11 build of 4.9.0 fails on FreeBSD 10 c++ (clang).) X-Git-Tag: releases/gcc-5.1.0~7799 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0bcf70f8511b8b1a363a63f6cdae3ac32d44d3a9;p=thirdparty%2Fgcc.git re PR target/61026 (sh-rtems4.11 build of 4.9.0 fails on FreeBSD 10 c++ (clang).) PR target/61026 * config/sh/sh.c: Include stdlib headers before everything else. From-SVN: r210028 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 959780580130..92812c5882ae 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-05-03 Oleg Endo + + PR target/61026 + * config/sh/sh.c: Include stdlib headers before everything else. + 2014-05-02 Jakub Jelinek * gimplify.c (gimplify_adjust_omp_clauses_1): Handle diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index 6d909c79ef78..12724a20d260 100644 --- a/gcc/config/sh/sh.c +++ b/gcc/config/sh/sh.c @@ -19,6 +19,10 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#include +#include +#include + #include "config.h" #include "system.h" #include "coretypes.h" @@ -70,10 +74,6 @@ along with GCC; see the file COPYING3. If not see #include "pass_manager.h" #include "context.h" -#include -#include -#include - int code_for_indirect_jump_scratch = CODE_FOR_indirect_jump_scratch; /* These are some macros to abstract register modes. */