This is the mail archive of the 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]

[trunk<-vta] Re: [vta,vta4.3,trunk?] honor -fdump-noaddr in df_ref_debug()

On Sep 10, 2008, Alexandre Oliva <> wrote:

> df_ref_debug() printed addresses in spite of -fdump-noaddr, generating
> noise when comparing intermediate debug dumps while testing
> -fcompare-debug.  This fixes it.  Ok for trunk?


for  gcc/ChangeLog
from  Alexandre Oliva  <>

	* 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 ");
     fprintf (file, "chain ");
   df_chain_dump (DF_REF_CHAIN (ref), file);
Alexandre Oliva, freedom fighter
You must be the change you wish to see in the world. -- Gandhi
Be Free! --   FSF Latin America board member
Free Software Evangelist      Red Hat Brazil Compiler Engineer

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