]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: re PR target/61026 (sh-rtems4.11 build of 4.9.0 fails on FreeBSD 10 c+...
authorOleg Endo <olegendo@gcc.gnu.org>
Sat, 3 May 2014 08:21:24 +0000 (08:21 +0000)
committerOleg Endo <olegendo@gcc.gnu.org>
Sat, 3 May 2014 08:21:24 +0000 (08:21 +0000)
Back port from mainline
PR target/61026
* config/sh/sh.c: Include stdlib headers before everything else.

From-SVN: r210030

gcc/ChangeLog
gcc/config/sh/sh.c

index 0eeafbfca2432ccf30edee0f8425c8c21d7bfddb..fafed2afb37095384460667a79a0545080c87932 100644 (file)
@@ -1,3 +1,9 @@
+2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
+
+       Back port from mainline
+       PR target/61026
+       * config/sh/sh.c: Include stdlib headers before everything else.
+
 2014-05-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
 
        PR tree-optimization/60930
index 2819da80939dfc3cd6f1f8ad6f1e7cd64909852c..9ecaa926ddad1a5bba03694a3e824b43b3ea6913 100644 (file)
@@ -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 <cstdlib> in "system.h" instead of <stdlib.h>.  */
 #include <cstdlib>
+#include <sstream>
+#include <vector>
+#include <algorithm>
 
 #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 <sstream>
-#include <vector>
-#include <algorithm>
-
 int code_for_indirect_jump_scratch = CODE_FOR_indirect_jump_scratch;
 
 #define MSW (TARGET_LITTLE_ENDIAN ? 1 : 0)