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]
Other format: [Raw text]

PowerPC attribute fix


	The call to save FP registers was not marked as a branch.  Fixed
thus.

David

2003-05-23  Dorit Naishlos  <gcchaifa@il.ibm.com>

        * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add branch attribute.

Index: rs6000.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.md,v
retrieving revision 1.255
diff -c -p -r1.255 rs6000.md
*** rs6000.md	14 May 2003 16:41:16 -0000	1.255
--- rs6000.md	23 May 2003 14:50:11 -0000
***************
*** 14452,14458 ****
  		   (set (match_operand:DF 3 "memory_operand" "=m")
  			(match_operand:DF 4 "gpc_reg_operand" "f"))])]
   "TARGET_32BIT"
!  "bl %z2")
  
  (define_insn "*save_fpregs_di"
   [(match_parallel 0 "any_operand"
--- 14543,14550 ----
  		   (set (match_operand:DF 3 "memory_operand" "=m")
  			(match_operand:DF 4 "gpc_reg_operand" "f"))])]
   "TARGET_32BIT"
!  "bl %z2"
!  [(set_attr "type" "branch")])
  
  (define_insn "*save_fpregs_di"
   [(match_parallel 0 "any_operand"
***************
*** 14461,14467 ****
  		   (set (match_operand:DF 3 "memory_operand" "=m")
  			(match_operand:DF 4 "gpc_reg_operand" "f"))])]
   "TARGET_64BIT"
!  "bl %z2")
  
  ; These are to explain that changes to the stack pointer should
  ; not be moved over stores to stack memory.
--- 14553,14560 ----
  		   (set (match_operand:DF 3 "memory_operand" "=m")
  			(match_operand:DF 4 "gpc_reg_operand" "f"))])]
   "TARGET_64BIT"
!  "bl %z2"
!  [(set_attr "type" "branch")])
  
  ; These are to explain that changes to the stack pointer should
  ; not be moved over stores to stack memory.


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