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] - Use of powerpc 64bit instructions in 32bit ABI


On Wed, Oct 15, 2003 at 04:08:23PM -0700, Fariborz Jahanian wrote:
> Apple patch keeps 64bit values in GPRs. If this can be accomplished without
> changes to common part please let us know how sparc port accomplishes this.

By letting HARD_REGNO_MODE_OK return true for DImode.

Now lets stop arguing about this.  Your patch is *not* going
to go in as-is.  You have two choices:

  (1) Arrange for BITS_PER_WORD to remain unchanged for G5 in
      32-bit mode, and rearrange a bit of the backend to let it
      know that 64-bit quantities may be held in registers.

      I really suspect that you want to persue this option.

  (2) Have BITS_PER_WORD==64, but rewrite your patch such that
      you do not break middle-end constraints.  I've already 
      pointed out two parts that are wrong and how to fix them.

In either case, do not give us another 5000 line patch.  It
must be broken up into smaller logically coherent parts.


r~


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