On Mon, Nov 4, 2019 at 2:55 PM David Edelsohn <dje....@gmail.com> wrote:
>
> The change to add malloc.h to ggc-common.c broke bootstrap.  system.h
> must be included before system header files.  The following patch
> fixes this, committed as obvious with concurrence by Richi.

Broke x86.

I'm testing the attached.

Richard.

> Thanks, David
>
> * ggc-common.c: Include system.h before malloc.h.
>
> Index: ggc-common.c
> ===================================================================
> --- ggc-common.c        (revision 277777)
> +++ ggc-common.c        (working copy)
> @@ -21,10 +21,10 @@
>     any particular GC implementation.  */
>
>  #include "config.h"
> +#include "system.h"
>  #ifdef HAVE_MALLINFO
>  #include <malloc.h>
>  #endif
> -#include "system.h"
>  #include "coretypes.h"
>  #include "timevar.h"
>  #include "diagnostic-core.h"

Attachment: p
Description: Binary data

Reply via email to