This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
libffi patch for IA-64
- To: gcc-patches at gcc dot gnu dot org
- Subject: libffi patch for IA-64
- From: Jim Wilson <wilson at cygnus dot com>
- Date: Wed, 18 Apr 2001 13:39:33 -0700
- cc: java-patches at gcc dot gnu dot org
This fixes assembler warnings that appear with an ia64-linux bootstrap on
the trunk. The problem is real, there is a RAW DV on loc2. This patches
fixes the problem by getting rid of a redundant increment/decrement pair.
This was tested with an ia64-linux bootstrap.
I would have run the testsuite, but I couldn't find one. make check doesn't
do anything useful in the libffi and libjava directories. Also make check-java
doesn't do anything useful in the gcc directory.
The patch has been added to both the trunk and branch, since the same problem
is present in both places.
2001-04-18 Jim Wilson <wilson@redhat.com>
* src/ia64/unix.S: Delete unnecessary increment and decrement of loc2
to eliminate RAW DV.
Index: unix.S
===================================================================
RCS file: /cvs/gcc/gcc/libffi/src/ia64/unix.S,v
retrieving revision 1.1
diff -p -r1.1 unix.S
*** unix.S 2000/02/25 19:13:44 1.1
--- unix.S 2001/04/17 22:06:30
*************** fp_done:
*** 94,104 ****
ld8 out4=[loc2],16
ld8 out5=[loc3],16
;;
! ld8 out6=[loc2],16
ld8 out7=[loc3]
! /* loc2 points at first stack parameter. Set sp to 16 bytes */
! /* below that. */
! add sp=-16,loc2
ld8 r8=[fn],8
;;
--- 94,104 ----
ld8 out4=[loc2],16
ld8 out5=[loc3],16
;;
! ld8 out6=[loc2]
ld8 out7=[loc3]
! /* Set sp to 16 bytes below the first stack parameter. This */
! /* is the value currently in loc2. */
! mov sp=loc2
ld8 r8=[fn],8
;;