This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix pt.c bootstrap breakage


On Wed, Feb 28, 2018 at 12:27 AM, David Edelsohn <dje.gcc@gmail.com> wrote:
> The recent change to pt.c broke bootstrap by including C++ header file
> <string> directly and including it first.  This patch changes to the
> necessary method which includes the header file via system.h.
>
> Okay?

Ok.  But in reality nobody should use std::string ...

> Thanks, David
>
> * pt.c: Don't include string. Define INCLUDE_STRING before system.h.
>
> Index: pt.c
> ===================================================================
> --- pt.c        (revision 258045)
> +++ pt.c        (working copy)
> @@ -24,8 +24,8 @@
>       all methods must be provided in header files; can't use a source
>       file that contains only the method templates and "just win".  */
>
> -#include <string>
>  #include "config.h"
> +#define INCLUDE_STRING
>  #include "system.h"
>  #include "coretypes.h"
>  #include "cp-tree.h"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]