This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Add block debug info to phi_arg_d


On Sun, Jul 8, 2012 at 9:29 AM, Dehao Chen <dehao@google.com> wrote:
> Hi, Richard,
>
> A test is added. Is it ok?

Ok.

Thanks,
RIchard.

> Thanks,
> Dehao
>
> gcc/testsuite/ChangeLog
>
> 2012-07-08  Dehao Chen  <dehao@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" } } */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]