This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[trunk<-vta] Re: [vta,vta4.3,trunk?] honor -fdump-noaddr in df_ref_debug()
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 01 Jun 2009 05:00:26 -0300
- Subject: [trunk<-vta] Re: [vta,vta4.3,trunk?] honor -fdump-noaddr in df_ref_debug()
- References: <oriqt4fllh.fsf@oliva.athome.lsd.ic.unicamp.br>
On Sep 10, 2008, Alexandre Oliva <aoliva@redhat.com> 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?
Ping?
for gcc/ChangeLog
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 ");
else
fprintf (file, "chain ");
df_chain_dump (DF_REF_CHAIN (ref), file);
--
Alexandre Oliva, freedom fighter http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/ FSF Latin America board member
Free Software Evangelist Red Hat Brazil Compiler Engineer