This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[Patch H8/300] : ld.texinfo is updated
- From: "Anil Paranjape" <AnilP1 at KPITCummins dot com>
- To: <binutils at sources dot redhat dot com>
- Cc: "Kazu Hirata" <kazu at cs dot umass dot edu>,"Nick Clifton" <nickc at redhat dot com>
- Date: Wed, 21 Apr 2004 11:08:31 +0530
- Subject: [Patch H8/300] : ld.texinfo is updated
Hi,
Please find following patch for ld.texinfo.
ChangeLog
2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
*ld.texinfo (synthesizing on H8/300) : Information about linker relaxation support for
bit manipulation instructions and system control instructions is added.
*********************** Patch starts here ***************************************************
--- binutils-040325/ld/ld.texinfo.old Thu Mar 18 18:20:20 2004
+++ binutils-040325/ld/ld.texinfo Wed Apr 21 16:28:03 2004
@@ -4655,6 +4655,23 @@ page of memory, and changes them to use
(That is: the linker turns @samp{mov.b @code{@@}@var{aa}:16} into
@samp{mov.b @code{@@}@var{aa}:8} whenever the address @var{aa} is in the
top page of memory).
+
+@item bit manipulation instructions
+@command{ld} finds all bit manipulation instructions like @code{band, bclr,
+biand, bild, bior, bist, bixor, bld, bnot, bor, bset, bst, btst, bxor}
+which use 32 bit and 16 bit absolute address form, but refer to the top
+page of memory, and changes them to use the 8 bit address form.
+(That is: the linker turns @samp{bset #xx:3,@code{@@}@var{aa}:32} into
+@samp{bset #xx:3,@code{@@}@var{aa}:8} whenever the address @var{aa} is in
+the top page of memory).
+
+@item system control instructions
+@commnad{ld} finds all @code{ldc.w, stc.w} instrcutions which use the
+32 bit absolute address form, but refer to the top page of memory, and
+changes them to use 16 bit address form.
+(That is: the linker turns @samp{ldc.w @code{@@}@var{aa}:32,ccr} into
+@samp{ldc.w @code{@@}@var{aa}:16,ccr} whenever the address @var{aa} is in
+the top page of memory).
@end table
@ifclear GENERIC
*********************** Patch ends here ***************************************************
Regards,
Anil Paranjpe
-----Original Message-----
From: Nick Clifton [mailto:nickc@redhat.com]
Sent: Monday, February 09, 2004 5:47 PM
To: Anil Paranjape
Cc: Kazu Hirata; binutils@sources.redhat.com
Subject: Re: Unreviewed Patch : Patch H8/300 : Linker relaxation for ldc
and stc instructions
Hi Anil,
> Please review the patch and ld test case from following link,
> http://sources.redhat.com/ml/binutils/2004-01/msg00423.html
I have applied your patch. (Sorry for the delay!) There was one
minor omission - a ChangeLog entry for the patch to the
include/opcode/h8300.h file - but I have added this.
Cheers
Nick