public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* HP-UX IA64 Patch to fix earlier patch
@ 2002-11-06 14:01 Steve Ellcey
  2002-11-14 10:37 ` Jim Wilson
  0 siblings, 1 reply; 5+ messages in thread
From: Steve Ellcey @ 2002-11-06 14:01 UTC (permalink / raw)
  To: gcc-patches

I sent a patch a while back to change argument passing on HP-UX IA64 and
make it match what the HP compiler does
(http://gcc.gnu.org/ml/gcc-patches/2002-10/msg01782.html).

Somehow I managed to screw up the patch and the change wound up in
store_bit_field instead of extract_bit_field.  This change undoes that
earlier patch and puts the extra test where it should be.

Neither the earlier patch nor this one should affect any other platform
because FUNCTION_ARG_REG_LITTLE_ENDIAN is set to 0 in defaults.h so it
has no effect on the test except for HP-UX IA64.

2002-11-06  Steve Ellcey  <sje@cup.hp.com>

	* expmed.c (store_bit_field): Remove use of
	FUNCTION_ARG_REG_LITTLE_ENDIAN.
	(extract_bit_field): Add use of 
	FUNCTION_ARG_REG_LITTLE_ENDIAN.


*** gcc.orig/gcc/expmed.c	Wed Nov  6 13:52:53 2002
--- gcc/gcc/expmed.c	Wed Nov  6 13:53:24 2002
*************** store_bit_field (str_rtx, bitsize, bitnu
*** 404,410 ****
       But as we have it, it counts within whatever size OP0 now has.
       On a bigendian machine, these are not the same, so convert.  */
    if (BYTES_BIG_ENDIAN
-       && !FUNCTION_ARG_REG_LITTLE_ENDIAN
        && GET_CODE (op0) != MEM
        && unit > GET_MODE_BITSIZE (GET_MODE (op0)))
      bitpos += unit - GET_MODE_BITSIZE (GET_MODE (op0));
--- 404,409 ----
*************** extract_bit_field (str_rtx, bitsize, bit
*** 1089,1094 ****
--- 1088,1094 ----
       But as we have it, it counts within whatever size OP0 now has.
       On a bigendian machine, these are not the same, so convert.  */
    if (BYTES_BIG_ENDIAN
+       && !FUNCTION_ARG_REG_LITTLE_ENDIAN
        && GET_CODE (op0) != MEM
        && unit > GET_MODE_BITSIZE (GET_MODE (op0)))
      bitpos += unit - GET_MODE_BITSIZE (GET_MODE (op0));

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <200211150002.gAF021fD013288@hiauly1.hia.nrc.ca>]

end of thread, other threads:[~2002-11-16  1:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-06 14:01 HP-UX IA64 Patch to fix earlier patch Steve Ellcey
2002-11-14 10:37 ` Jim Wilson
     [not found] <200211150002.gAF021fD013288@hiauly1.hia.nrc.ca>
2002-11-15 15:48 ` Steve Ellcey
2002-11-15 17:00   ` John David Anglin
2002-11-15 17:38   ` Jim Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).