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: [trunk<-vta] Re: [vta,vta4.3,trunk?] honor -fdump-noaddr in df_ref_debug()


Alexandre Oliva <aoliva@redhat.com> writes:

>>From  Alexandre Oliva  <aoliva@redhat.com>
>
> 	* df-core.c (df_ref_debug): Honor -fdump-noaddr.
>
> Index: gcc/df-core.c
> ===================================================================
> --- gcc/df-core.c.orig	2009-05-28 04:16:10.000000000 -0300
> +++ gcc/df-core.c	2009-05-28 04:34:02.000000000 -0300
> @@ -2119,8 +2119,10 @@ df_ref_debug (df_ref ref, FILE *file)
>  	   DF_REF_IS_ARTIFICIAL (ref) ? -1 : DF_REF_INSN_UID (ref),
>  	   DF_REF_FLAGS (ref),
>  	   DF_REF_TYPE (ref));
> -  if (DF_REF_LOC (ref))
> +  if (DF_REF_LOC (ref) && !flag_dump_noaddr)
>      fprintf (file, "loc %p(%p) chain ", (void *)DF_REF_LOC (ref), (void *)*DF_REF_LOC (ref));
> +  else if (DF_REF_LOC (ref) && flag_dump_noaddr)
> +    fprintf (file, "loc #(#) chain ");

Format as

  if (DF_REF_LOC (ref))
    {
      if (flag_dump_noaddr)
        fprintf (file, "loc #(#) chain ");
      else
        fprintf (file, "loc %p(%p) chain ", (void *) DF_REF_LOC (ref),
                 (void *) *DF_REF_LOC (ref));
    }

OK with that change.

Thanks.

Ian


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