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]

Re: [Bug other/12315] [3.4 Regression] ICE using -p with functions returning structs


> I'm afraid DJ's (really big) patch
> 
> http://gcc.gnu.org/ml/gcc-cvs/2003-09/msg00074.html
> 
> seems to be responsible for the regression.
> 
> DJ, could you please have a look?

Try this.

2003-10-28  DJ Delorie  <dj@redhat.com>

      * final.c (profile_function): Handle the case where svrtx is NULL.

Index: final.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/final.c,v
retrieving revision 1.293
diff -p -2 -r1.293 final.c
*** final.c     18 Oct 2003 19:13:04 -0000      1.293
--- final.c     28 Oct 2003 22:41:18 -0000
*************** profile_function (FILE *file ATTRIBUTE_U
*** 1438,1442 ****
  
  #if defined(ASM_OUTPUT_REG_PUSH)
!   if (sval && GET_CODE (svrtx) == REG)
      ASM_OUTPUT_REG_PUSH (file, REGNO (svrtx));
  #endif
--- 1438,1442 ----
  
  #if defined(ASM_OUTPUT_REG_PUSH)
!   if (sval && svrtx && GET_CODE (svrtx) == REG)
      ASM_OUTPUT_REG_PUSH (file, REGNO (svrtx));
  #endif
*************** profile_function (FILE *file ATTRIBUTE_U
*** 1469,1473 ****
  
  #if defined(ASM_OUTPUT_REG_PUSH)
!   if (sval && GET_CODE (svrtx) == REG)
      ASM_OUTPUT_REG_POP (file, REGNO (svrtx));
  #endif
--- 1469,1473 ----
  
  #if defined(ASM_OUTPUT_REG_PUSH)
!   if (sval && svrtx && GET_CODE (svrtx) == REG)
      ASM_OUTPUT_REG_POP (file, REGNO (svrtx));
  #endif


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