diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2010-02-26 22:06:56 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2010-02-26 22:06:56 +0000 |
commit | 0e94b75085af60341759c30fb522c9438c4b18b8 (patch) | |
tree | dc7e9199bbd5f92c7eed38be3754a171070f0408 /gcc/toplev.c | |
parent | 7e1542b921b63aea61cc239be5eeeb632631a5b9 (diff) | |
download | gcc-0e94b75085af60341759c30fb522c9438c4b18b8.zip gcc-0e94b75085af60341759c30fb522c9438c4b18b8.tar.gz gcc-0e94b75085af60341759c30fb522c9438c4b18b8.tar.bz2 |
diagnostic.c (diagnostic_initialize): Update.
2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
* diagnostic.c (diagnostic_initialize): Update.
(diagnostic_report_diagnostic): Test inhibit_notes_p for
informative notes.
* diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
(diagnostic_inhibit_notes): New.
* toplev.c (process_options): inhibit notes with -fcompare-debug.
From-SVN: r157100
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index 402ad82..385d5e1 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -1810,6 +1810,10 @@ process_options (void) OVERRIDE_OPTIONS; #endif + /* Avoid any informative notes in the second run of -fcompare-debug. */ + if (flag_compare_debug) + diagnostic_inhibit_notes (global_dc); + if (flag_section_anchors && !target_supports_section_anchors_p ()) { warning (OPT_fsection_anchors, |