http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54519
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-10-05 19:24:41 UTC --- Author: jakub Date: Fri Oct 5 19:24:38 2012 New Revision: 192139 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=192139 Log: PR debug/54519 * ipa-split.c (split_function): Add debug args and debug source and normal stmts for args_to_skip which are gimple regs. * tree-inline.c (copy_debug_stmt): When inlining, adjust source debug bind stmts to debug binds of corresponding DEBUG_EXPR_DECL. * gcc.dg/guality/pr54519-1.c: New test. * gcc.dg/guality/pr54519-2.c: New test. * gcc.dg/guality/pr54519-3.c: New test. * gcc.dg/guality/pr54519-4.c: New test. * gcc.dg/guality/pr54519-5.c: New test. * gcc.dg/guality/pr54519-6.c: New test. Added: trunk/gcc/testsuite/gcc.dg/guality/pr54519-1.c trunk/gcc/testsuite/gcc.dg/guality/pr54519-2.c trunk/gcc/testsuite/gcc.dg/guality/pr54519-3.c trunk/gcc/testsuite/gcc.dg/guality/pr54519-4.c trunk/gcc/testsuite/gcc.dg/guality/pr54519-5.c trunk/gcc/testsuite/gcc.dg/guality/pr54519-6.c Modified: trunk/gcc/ChangeLog trunk/gcc/ipa-split.c trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-inline.c