[PATCH, PR 43141] Create ABSTRACT_ORIGIN for decls changed by IPA-SRA

Martin Jambor mjambor@suse.cz
Fri Mar 19 18:18:00 GMT 2010


Hi,

On Mon, Mar 15, 2010 at 05:02:54AM -0800, H.J. Lu wrote:
> On Thu, Mar 11, 2010 at 3:01 PM, Martin Jambor <mjambor@suse.cz> wrote:
> > the patch below (a bit simpler than the one attached in bugzilla)
> > fixes PR 43141 by building an ABSTRACT_ORIGIN decl for it.  This does
> > lead to emitting deleted parameters in debug info and is easier than
> > creating a decl for the function that we actually use and update all
> > calls.  Obviously it is a bit of a hack, but I hope it is an
> > acceptable one.
> >


> It should be "tree-optimization".
> 
> >        * tree-sra.c (create_abstract_origin): New function.
> >        (modify_function): Call create_abstract_origin.
> >
> 
> Is that possible to add a testcase to gcc.dg/guality?
> 

Can I add a guality test just to check for a presence of a declaration
- even if we cannot determine its value?  All the guality tests I
found verified that gdb reports that a variable has an expected value
but no information about the value of the removed unused parameter
(which can be anything) is stored in the debug info.

Thanks,

Martin



More information about the Gcc-patches mailing list