This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: new register allocator and HARD_REGNO_CALL_PART_CLOBBERED
- From: Daniel Berlin <dberlin at dberlin dot org>
- To: hermantenbrugge at home dot nl (Herman ten Brugge)
- Cc: dalej at apple dot com (Dale Johannesen),gcc at gcc dot gnu dot org
- Date: Sun, 11 May 2003 11:18:05 -0400
- Subject: Re: new register allocator and HARD_REGNO_CALL_PART_CLOBBERED
That patch did not work because it was never executed in my testcase.
It might need to be moved, i chose the earliest place that seemed to
make sense, but I might have accidently put it before we initialize the
crosses_call flag.
I have a patch that works for me and should probably work on all
targets that have HARD_REGNO_CALL_PART_CLOBBERED defined. I have tested
this on the c4x. I still think the HARD_REGNO_CALL_PART_CLOBBERED
should
be used in the new register allocation pass. But I know this is very
very
difficult.
It's not difficult, it's just exactly the kind of extra-special port
specific stuff we don't want new-regalloc to be directly handling if it
can avoid it.
If new-regalloc has to directly handle every single constraint of every
single architecture, it will become a bloated morass of special cases.
--Dan