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.


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.

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.

Roger
--
Roger Sayle,                         E-mail: roger@eyesopen.com
OpenEye Scientific Software,         WWW: http://www.eyesopen.com/
Suite 1107, 3600 Cerrillos Road,     Tel: (+1) 505-473-7385
Santa Fe, New Mexico, 87507.         Fax: (+1) 505-473-0833


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