* [vta, vta4.4] silence notes during second -fcompare-debug compilation
@ 2009-08-14 11:03 Alexandre Oliva
0 siblings, 0 replies; only message in thread
From: Alexandre Oliva @ 2009-08-14 11:03 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 279 bytes --]
Using -fcompare-debug is not supposed to change anything in the compiler
output, not even stderr. Turns out the second compilation wasn't
entirely silent: warnings were properly silenced, but notes were making
through. Fixed with the patch below. Installing in both braches.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: vta-diagnostics-no-info-in-compare-debug-second.patch --]
[-- Type: text/x-patch, Size: 691 bytes --]
for gcc/ChangeLog.vta
from Alexandre Oliva <aoliva@redhat.com>
* diagnostic.c (diagnostic_report_diagnostic): Skip notes during
the second compare-debug compilation.
Index: gcc/diagnostic.c
===================================================================
--- gcc/diagnostic.c.orig 2009-06-17 06:12:17.000000000 -0300
+++ gcc/diagnostic.c 2009-08-06 08:50:13.000000000 -0300
@@ -322,6 +322,9 @@ diagnostic_report_diagnostic (diagnostic
&& !diagnostic_report_warnings_p (location))
return false;
+ if (diagnostic->kind == DK_NOTE && flag_compare_debug)
+ return false;
+
if (diagnostic->kind == DK_PEDWARN)
diagnostic->kind = pedantic_warning_kind ();
[-- Attachment #3: Type: text/plain, Size: 257 bytes --]
--
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-08-14 11:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-14 11:03 [vta, vta4.4] silence notes during second -fcompare-debug compilation Alexandre Oliva
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).