Hi, Richard, A test is added. Is it ok?
Thanks, Dehao gcc/testsuite/ChangeLog 2012-07-08 Dehao Chen <de...@google.com> * gcc.dg/debug_info_inline.c: New test. Index: gcc/testsuite/gcc.dg/debug_info_inline.c =================================================================== --- gcc/testsuite/gcc.dg/debug_info_inline.c (revision 0) +++ gcc/testsuite/gcc.dg/debug_info_inline.c (revision 0) @@ -0,0 +1,24 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -g" } */ + +int g, a; + +static int foo () +{ + int ret = a; + + if (g > -10) + return 10; + + return ret; +} + +int bar() +{ + if (foo()) + return 0; + else + return 1; +} + +/* { dg-final { scan-assembler "loc 1 19 0\n.*\n.LBB" } } */