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] gcse.c: Fix the header ordering.


Roger Sayle <roger@www.eyesopen.com> writes:

> On Fri, 31 Jan 2003, Zack Weinberg wrote:
>> rtl.h is supposed to be machine independent - that is, it should have
>> no dependencies on tm.h or any insn-*.h.  The CC0_P macro needs to be
>> moved to a more appropriate location.
>
> Whilst I agree with your ideal of making rtl.h machine independent,
> the current situation is (and has been for a while) that rtl.h has
> multiple dependencies on target headers, and that these dependencies
> aren't explicit is causing real failures in the compiler.

Sure - but let's not make it worse, okay?

> For example, if you look at the definition of the enumeration
> global_rtx_index, you'll notice that its littered with
> "#if FRAME_POINTER_REGNUM == ARG_POINTER_REGNUM", and so on.

This shouldn't be the same category of problem, since both these
macros are normally defined in tm.h, not insn-config.h.  I want them
out of there too, though.

zw


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