Re: [PATCH][debug] Handle debug references to skipped params

2018-07-08 Thread Jakub Jelinek
On Sun, Jul 08, 2018 at 11:22:41AM +0200, Tom de Vries wrote: > --- a/gcc/cfgexpand.c > +++ b/gcc/cfgexpand.c > @@ -5141,6 +5141,10 @@ expand_debug_source_expr (tree exp) > >switch (TREE_CODE (exp)) > { > +case VAR_DECL: > + if (DECL_ABSTRACT_ORIGIN (exp)) > + return expand_

[PATCH][debug] Handle debug references to skipped params

2018-07-08 Thread Tom de Vries
On Fri, Jul 06, 2018 at 04:38:50PM +0200, Richard Biener wrote: > On Fri, Jul 6, 2018 at 12:47 PM Tom de Vries wrote: > > On 07/05/2018 01:39 PM, Richard Biener wrote: > I now also spotted the code in remap_ssa_name that is supposed to handle > this it seems and for the testcase we only give up