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]

[patch] Fix nestfunc-3.c and 20000822-1.c for v850.


This bug seems to have been in the v850 port for quite a while.
The STATIC_CHAIN_REGNUM used to be r5 (it's now r20).  
TRAMPOLINE_TEMPLATE needs to modified to initialize r20 instead
of r5.

Okay to commit?

Catherine


2002-04-30  Catherine L. Moore  <clm@redhat.com>

	* config/v850/v850.h (TRAMPOLINE_TEMPLATE):  Cor
Index: v850.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/v850/v850.h,v
retrieving revision 1.61
diff -p -r1.61 v850.h
*** v850.h      12 Mar 2002 05:28:17 -0000      1.61
--- v850.h      30 Apr 2002 19:37:37 -0000
*************** extern int current_function_anonymous_ar
*** 755,761 ****
  #define TRAMPOLINE_TEMPLATE(FILE)                     \
    do {                                                        \
      fprintf (FILE, "\tjarl .+4,r12\n");                       \
!     fprintf (FILE, "\tld.w 12[r12],r5\n");            \
      fprintf (FILE, "\tld.w 16[r12],r12\n");           \
      fprintf (FILE, "\tjmp [r12]\n");                  \
      fprintf (FILE, "\tnop\n");                                \
--- 755,761 ----
  #define TRAMPOLINE_TEMPLATE(FILE)                     \
    do {                                                        \
      fprintf (FILE, "\tjarl .+4,r12\n");                       \
!     fprintf (FILE, "\tld.w 12[r12],r20\n");           \
      fprintf (FILE, "\tld.w 16[r12],r12\n");           \
      fprintf (FILE, "\tjmp [r12]\n");                  \
      fprintf (FILE, "\tnop\n");                                \


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