aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Endo <olegendo@gcc.gnu.org>2013-06-22 12:00:09 +0000
committerOleg Endo <olegendo@gcc.gnu.org>2013-06-22 12:00:09 +0000
commit664dd7217be541ccb5c8348a6678cb3a50f5d28f (patch)
tree4617d14d6832903ffbe12e648a30ccf76c92202b
parentda0180424a70a2cb14804f88019b42976a1214c5 (diff)
downloadgcc-664dd7217be541ccb5c8348a6678cb3a50f5d28f.zip
gcc-664dd7217be541ccb5c8348a6678cb3a50f5d28f.tar.gz
gcc-664dd7217be541ccb5c8348a6678cb3a50f5d28f.tar.bz2
sh.c: Remove <cstdlib> workaround.
* config/sh/sh.c: Remove <cstdlib> workaround. Co-Authored-By: Jason Merrill <jason@redhat.com> From-SVN: r200328
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/sh/sh.c6
2 files changed, 5 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 889cbcc..9ee6104 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
+
+ * config/sh/sh.c: Remove <cstdlib> workaround.
+
2013-06-21 Andi Kleen <ak@linux.intel.com>
* doc/extend.texi: Dont use __atomic_clear in HLE
@@ -18,7 +22,7 @@
(get_binfo_at_offset): Use it.
* tree.h (types_same_for_odr): Declare.
-2013-06-20 Oleg Endo <oleg.endo@t-online.de>
+2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
Jason Merrill <jason@redhat.com>
* system.h: Include <cstdlib> as well as <stdlib.h>.
diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c
index 5976206..60f4545 100644
--- a/gcc/config/sh/sh.c
+++ b/gcc/config/sh/sh.c
@@ -19,12 +19,6 @@ You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3. If not see
<http://www.gnu.org/licenses/>. */
-/* FIXME: This is a temporary hack, so that we can include <algorithm>
- below. <algorithm> will try to include <cstdlib> which will reference
- 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 "config.h"
#include "system.h"
#include "coretypes.h"