Re: [PATCH] Improve expansion into DEBUG_IMPLICIT_PTR (PR debug/54970)

2012-10-26 Thread Alexandre Oliva
On Oct 18, 2012, Jakub Jelinek ja...@redhat.com wrote: 2012-10-18 Jakub Jelinek ja...@redhat.com PR debug/54970 * cfgexpand.c (expand_debug_expr): Expand MEM_REF[var, n] as DEBUG_IMPLICIT_PTR + n if var expands to DEBUG_IMPLICIT_PTR. * tree-sra.c

Re: [PATCH] Improve expansion into DEBUG_IMPLICIT_PTR (PR debug/54970)

2012-10-19 Thread Cary Coutant
2012-10-18 Jakub Jelinek ja...@redhat.com PR debug/54970 * cfgexpand.c (expand_debug_expr): Expand MEM_REF[var, n] as DEBUG_IMPLICIT_PTR + n if var expands to DEBUG_IMPLICIT_PTR. * tree-sra.c (create_access_replacement): Allow also MEM_REFs with

[PATCH] Improve expansion into DEBUG_IMPLICIT_PTR (PR debug/54970)

2012-10-18 Thread Jakub Jelinek
Hi! This patch improves debug info quality in two small changes. One is that for DEBUG stmts like DEBUG p = MEM[a, 8] for a non-addressable we were giving up instead of creating DEBUG_IMPLICIT_PTR (plus 8) for it. The reason is if (GET_CODE (op0) == DEBUG_IMPLICIT_PTR ||

Re: [PATCH] Improve expansion into DEBUG_IMPLICIT_PTR (PR debug/54970)

2012-10-18 Thread Richard Biener
On Thu, Oct 18, 2012 at 2:17 PM, Jakub Jelinek ja...@redhat.com wrote: Hi! This patch improves debug info quality in two small changes. One is that for DEBUG stmts like DEBUG p = MEM[a, 8] for a non-addressable we were giving up instead of creating DEBUG_IMPLICIT_PTR (plus 8) for it. The