[patch] gcse.c: Fix the header ordering.
Roger Sayle
roger@www.eyesopen.com
Sat Feb 1 07:01:00 GMT 2003
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
More information about the Gcc-patches
mailing list