PLEASE REPLY TO [EMAIL PROTECTED] ONLY, *NOT* [EMAIL PROTECTED] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12315
------- Additional Comments From dj at redhat dot com 2003-10-28 22:43 ------- Subject: Re: [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 <[EMAIL PROTECTED]> * 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 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.