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]

avr port: bugfix for last patch




Sat May 13 00:09:59 2000  Denis Chertykov  <denisc@overta.ru>

	* config/avr/t-avr: Added definition of FLOAT while generates
	fp-bit.c

	* config/avr/avr.md: `NEXT_INSN (insn)' substituted to `insn' in
	peepholes for tst+jump = sbrs/sbrc optimization.


Index: gcc/config/avr/avr.md
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/avr/avr.md,v
retrieving revision 1.4
diff -c -3 -p -r1.4 avr.md
*** avr.md	2000/05/11 18:53:24	1.4
--- avr.md	2000/05/12 20:13:50
***************
*** 1856,1862 ****
  	(if_then_else (lt (cc0) (const_int 0))
  		      (label_ref (match_operand 1 "" ""))
  		      (pc)))]
!   "jump_over_one_insn_p (NEXT_INSN (insn), operands[1])"
    "sbrs %B0,7")
  
  (define_peephole
--- 1856,1862 ----
  	(if_then_else (lt (cc0) (const_int 0))
  		      (label_ref (match_operand 1 "" ""))
  		      (pc)))]
!   "jump_over_one_insn_p (insn, operands[1])"
    "sbrs %B0,7")
  
  (define_peephole
***************
*** 1874,1880 ****
  	(if_then_else (lt (cc0) (const_int 0))
  		      (label_ref (match_operand 1 "" ""))
  		      (pc)))]
!   "jump_over_one_insn_p (NEXT_INSN (insn), operands[1])"
    "sbrs %D0,7")
  
  (define_peephole
--- 1874,1880 ----
  	(if_then_else (lt (cc0) (const_int 0))
  		      (label_ref (match_operand 1 "" ""))
  		      (pc)))]
!   "jump_over_one_insn_p (insn, operands[1])"
    "sbrs %D0,7")
  
  (define_peephole
Index: gcc/config/avr/t-avr
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/avr/t-avr,v
retrieving revision 1.2
diff -c -3 -p -r1.2 t-avr
*** t-avr	2000/05/09 17:53:54	1.2
--- t-avr	2000/05/12 20:13:50
*************** TARGET_LIBGCC2_CFLAGS = -DDF=SF -Dinhibi
*** 32,37 ****
--- 32,38 ----
  #LIBGCC2 = $(LIBGCC1)
  
  fp-bit.c: $(srcdir)/config/fp-bit.c $(srcdir)/config/avr/t-avr
+ 	echo '#define FLOAT' > fp-bit.c
  	echo '#define FLOAT_ONLY' >> fp-bit.c
  	echo '#define CMPtype QItype' >> fp-bit.c
  	echo '#define DF SF' >> fp-bit.c


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