Pretty much everything in the compiler has a need for both is-a.h and input.h, so this patch moves those into coretypes.h (and rtl.h for generators.. :-P still working on a good way around that)

is-a.h is required by anything which includes gimple.h, rtl.h or cgraph.h currently, and I expect its use to grow if anything. input.h includes line-map.h and provides location_t whose use is ubiquitous throughout the compiler. tree-core.h, rtl.h, gimple.h, function.h all require its definition for instance. There are some files where input.h is included indirectly up to 7 times :-P

I think those are the last two which I'd currently propose go into coretypes.h. This patch puts them there, and removes all the other places in the compiler that include them directly, allowing them to come only from coretypes.h. The patch is big, but almost all mechanical. the first 2 files in the patch are coretypes.h and rtl.h so you don't have to paw around for them.

Bootstraps on x86_64-unknown-linux-gnu with no new regressions, and compiles the targets in config-list.mk.

OK for trunk?

Andrew

Attachment: iil.patch.Z
Description: Unix compressed data

Reply via email to