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]

Re: [patch] gcc/config/h8300/h8300.[ch]


  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


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