This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] gcc/config/h8300/h8300.[ch]
- To: Kazu Hirata <kazu at hxi dot com>
- Subject: Re: [patch] gcc/config/h8300/h8300.[ch]
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Wed, 26 Jul 2000 19:38:11 -0600
- cc: gcc-patches at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <392D45E2.FA2032A9@hxi.com>you write:
> Attached is a patch for gcc/config/h8300/h8300.[ch]. This patch
> allows constant memory addresses as operands in bit insns (bset, bclr,
> and btst) on the H8/300H series.
>
> In the original gcc, one has to declare something like:
>
> unsigned char H8_P1DR __attribute_ ((eightbit_data)) = 0;
>
> to have gcc generate those insns. This is inconvenient when you have
> multiple source files or want to explicitly specify its address. With
> this patch you just have to have a header file that looks like the the
> first five lines of the following code.
>
[ ... ]
> 2000-05-25 Kazu Hirata <kazu@hxi.com>
>
> * config/h8300/h8300.c (print_operand): Print ":8" when the 'R'
> operand is suitable for 8-bit absolute.
> * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): New.
> (OK_FOR_U): Add a case for the 8-bit constant address on the
> H8/300H.
Thanks. I have installed this patch.
jeff