Commit a6b29221 by Jason Merrill Committed by Jason Merrill

* system.h: #include <new> earlier.

From-SVN: r260620
parent 3d76db63
2018-05-23 Jason Merrill <jason@redhat.com>
* system.h: #include <new> earlier.
2018-05-17 Jason Merrill <jason@redhat.com> 2018-05-17 Jason Merrill <jason@redhat.com>
* line-map.c (linemap_init): Use placement new. * line-map.c (linemap_init): Use placement new.
......
...@@ -37,6 +37,10 @@ along with GCC; see the file COPYING3. If not see ...@@ -37,6 +37,10 @@ along with GCC; see the file COPYING3. If not see
#include <stdio.h> #include <stdio.h>
#ifdef __cplusplus
#include <new>
#endif
/* Define a generic NULL if one hasn't already been defined. */ /* Define a generic NULL if one hasn't already been defined. */
#ifndef NULL #ifndef NULL
#define NULL 0 #define NULL 0
...@@ -438,10 +442,6 @@ extern void fancy_abort (const char *, int, const char *) ATTRIBUTE_NORETURN; ...@@ -438,10 +442,6 @@ extern void fancy_abort (const char *, int, const char *) ATTRIBUTE_NORETURN;
/* Some compilers do not allow the use of unsigned char in bitfields. */ /* Some compilers do not allow the use of unsigned char in bitfields. */
#define BOOL_BITFIELD unsigned int #define BOOL_BITFIELD unsigned int
#ifdef __cplusplus
#include <new>
#endif
/* Poison identifiers we do not want to use. */ /* Poison identifiers we do not want to use. */
#if (GCC_VERSION >= 3000) #if (GCC_VERSION >= 3000)
#undef calloc #undef calloc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment