This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] gcse.c: Fix the header ordering.
- From: Roger Sayle <roger at www dot eyesopen dot com>
- To: Zack Weinberg <zack at codesourcery dot com>
- Cc: Kazu Hirata <kazu at cs dot umass dot edu>, <graham dot stott at btinternet dot com>, <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 31 Jan 2003 23:33:01 -0700 (MST)
- Subject: 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