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: [patch] Fix PR/14058


> > 2004-02-07  Josef Zlomek  <zlomekj@suse.cz>
> > 
> > 	* emit-rtl.c (set_decl_incoming_rtl): New.
> > 	* tree.h (set_decl_incoming_rtl): New.
> > 	* function.c (assign_parms): Use set_decl_incoming_rtl for setting
> > 	DECL_INCOMING_RTL.
> > 	* ada/misc.c (adjust_decl_rtl): Likewise.
> 
> +FAIL: gcc.c-torture/unsorted/pp.c,  -O0  
> 
> /vol/gnu/src/gcc/gcc-dist/gcc/testsuite/gcc.c-torture/unsorted/pp.c: In function `foo':
> /vol/gnu/src/gcc/gcc-dist/gcc/testsuite/gcc.c-torture/unsorted/pp.c:4: internal compiler error: Segmentation Fault
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x0010be20 in set_decl_incoming_rtl (t=0xff1d1500, x=0xff1d40c0) at /vol/gnu/src/gcc/gcc-dist/gcc/emit-rtl.c:859
> 859               if (REG_P (XEXP (y, 0)))
> 
> #0  0x0010be20 in set_decl_incoming_rtl (t=0xff1d1500, x=0xff1d40c0) at /vol/gnu
> /src/gcc/gcc-dist/gcc/emit-rtl.c:859
> #1  0x00180454 in assign_parms (fndecl=0xff1d1180) at /vol/gnu/src/gcc/gcc-dist/gcc/function.c:4654
> Program received signal SIGSEGV, Segmentation fault.
> 0x0010be20 in set_decl_incoming_rtl (t=0xff1d1500, x=0xff1d40c0) at /vol/gnu/src/gcc/gcc-dist/gcc/emit-rtl.c:859
> 859               if (REG_P (XEXP (y, 0)))

Thanks, I'll look into it.
> 
> Since this happens in your new set_decl_incoming_rtl function, this patch
> is most likely the culprit.

Actually set_decl_incoming_rtl is a copy of set_decl_rtl. Probably something
more complicated can be a parameter of set_decl_incoming_rtl.

Josef


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