On Fri, Apr 22, 2016 at 12:02 PM, Szabolcs Nagy <szabolcs.n...@arm.com> wrote: > These headers include "system.h" which already includes > <new> and <string.h> so including them after "system.h" > is a noop and including them before may cause problems > if they depend on gcc macros from system.h. > > ipa-icf-gimple.c includes <list> after system.h which > poisons various libc symbols which may cause problems > and it is not used at all. > > Tested together with PATCH 2/2. > > OK for trunk?
Ok. Thanks, Richard. > gcc/ChangeLog: > > 2016-04-22 Szabolcs Nagy <szabolcs.n...@arm.com> > > * auto-profile.c: Remove <string.h> include. > * ipa-icf-gimple.c: Remove <list> include. > * diagnostic.c: Remove <new> include. > * genmatch.c: Likewise. > * pretty-print.c: Likewise. > * toplev.c: Likewise > * c/c-objc-common.c: Likewise. > * cp/error.c: Likewise. > * fortran/error.c: Likewise.