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/diagnostic.h | |
parent | 7e1542b921b63aea61cc239be5eeeb632631a5b9 (diff) | |
download | gcc-0e94b75085af60341759c30fb522c9438c4b18b8.tar.gz |
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/diagnostic.h')
-rw-r--r-- | gcc/diagnostic.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h index 0cfadb6fe51..e2dc8c820e1 100644 --- a/gcc/diagnostic.h +++ b/gcc/diagnostic.h @@ -113,8 +113,17 @@ struct diagnostic_context const struct line_map *last_module; int lock; + + bool inhibit_notes_p; }; +static inline void +diagnostic_inhibit_notes (diagnostic_context * context) +{ + context->inhibit_notes_p = true; +} + + /* Client supplied function to announce a diagnostic. */ #define diagnostic_starter(DC) (DC)->begin_diagnostic |