diff options
author | Jakub Jelinek <jakub@redhat.com> | 2010-03-26 17:18:51 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2010-03-26 17:18:51 +0100 |
commit | 6ca5d1f6d08c5c6b4cfd006a363b8e9ad17347dc (patch) | |
tree | 9d76e0c545aec903e1d1c2de6c36145397d24c24 /gcc/print-rtl.c | |
parent | 1360467133687fc799b31a91bb9a975bd0a634e0 (diff) | |
download | gcc-6ca5d1f6d08c5c6b4cfd006a363b8e9ad17347dc.zip gcc-6ca5d1f6d08c5c6b4cfd006a363b8e9ad17347dc.tar.gz gcc-6ca5d1f6d08c5c6b4cfd006a363b8e9ad17347dc.tar.bz2 |
re PR debug/43516 ("-fcompare-debug failure" at -O2)
PR debug/43516
* flags.h (final_insns_dump_p): New extern.
* final.c (final_insns_dump_p): New variable.
(rest_of_clean_state): Set it before -fdump-final-insns=
dumping, clear afterwards.
* print-rtl.c (print_rtx): If final_insns_dump_p don't dump
MEM_ALIAS_SET on MEMs.
From-SVN: r157753
Diffstat (limited to 'gcc/print-rtl.c')
-rw-r--r-- | gcc/print-rtl.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c index 52709da..b02143a 100644 --- a/gcc/print-rtl.c +++ b/gcc/print-rtl.c @@ -1,6 +1,6 @@ /* Print RTL for GCC. Copyright (C) 1987, 1988, 1992, 1997, 1998, 1999, 2000, 2002, 2003, - 2004, 2005, 2007, 2008, 2009 + 2004, 2005, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. This file is part of GCC. @@ -548,8 +548,11 @@ print_rtx (const_rtx in_rtx) { #ifndef GENERATOR_FILE case MEM: - fprintf (outfile, " [" HOST_WIDE_INT_PRINT_DEC, - (HOST_WIDE_INT) MEM_ALIAS_SET (in_rtx)); + if (__builtin_expect (final_insns_dump_p, false)) + fprintf (outfile, " ["); + else + fprintf (outfile, " [" HOST_WIDE_INT_PRINT_DEC, + (HOST_WIDE_INT) MEM_ALIAS_SET (in_rtx)); if (MEM_EXPR (in_rtx)) print_mem_expr (outfile, MEM_EXPR (in_rtx)); |