Re: [PATCH] Avoid unnecessary inclusion of header

2019-06-17 Thread Jonathan Wakely
On 06/06/19 16:38 +0100, Jonathan Wakely wrote: This can greatly reduce the amount of preprocessed code that is included by other headers, because depends on which is huge. * include/std/array: Do not include . * include/std/optional: Include and instead of . Preproc

Re: [PATCH] Fix up g++.dg/cpp*/feat-cxx*.C tests (PR testsuite/90772, take 2, was: [PATCH] Avoid unnecessary inclusion of header)

2019-06-10 Thread Jonathan Wakely
On 06/06/19 22:34 +0200, Jakub Jelinek wrote: On Thu, Jun 06, 2019 at 10:19:52PM +0200, Jakub Jelinek wrote: Not only those, but apparently also ::size_t or std::plus; this broke FAIL: g++.dg/cpp1y/feat-cxx14.C (test for excess errors) FAIL: g++.dg/cpp1z/feat-cxx1z.C -std=gnu++17 (test for ex

[PATCH] Fix up g++.dg/cpp*/feat-cxx*.C tests (PR testsuite/90772, take 2, was: [PATCH] Avoid unnecessary inclusion of header)

2019-06-06 Thread Jakub Jelinek
On Thu, Jun 06, 2019 at 10:19:52PM +0200, Jakub Jelinek wrote: > Not only those, but apparently also ::size_t or std::plus; this broke > FAIL: g++.dg/cpp1y/feat-cxx14.C (test for excess errors) > FAIL: g++.dg/cpp1z/feat-cxx1z.C -std=gnu++17 (test for excess errors) > FAIL: g++.dg/cpp1z/pr85569.C

[PATCH] Fix up g++.dg/cpp*/feat-cxx*.C tests (was: [PATCH] Avoid unnecessary inclusion of header)

2019-06-06 Thread Jakub Jelinek
Hi! On Thu, Jun 06, 2019 at 04:38:36PM +0100, Jonathan Wakely wrote: > This can greatly reduce the amount of preprocessed code that is included > by other headers, because depends on which is huge. > > * include/std/array: Do not include . > * include/std/optional: Include and >

[PATCH] Avoid unnecessary inclusion of header

2019-06-06 Thread Jonathan Wakely
This can greatly reduce the amount of preprocessed code that is included by other headers, because depends on which is huge. * include/std/array: Do not include . * include/std/optional: Include and instead of . Preprocessed line counts for C++17 mode: Befor