<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/1.5.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Compiler Warnings</title>
	<link>http://www.airs.com/blog/archives/159</link>
	<description>Ian Lance Taylor</description>
	<pubDate>Wed, 19 Nov 2008 06:07:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=1.5.2</generator>

	<item>
 		<title>Comment on Compiler Warnings by: Ian Lance Taylor</title>
		<link>http://www.airs.com/blog/archives/159#comment-11531</link>
		<pubDate>Wed, 19 Mar 2008 01:33:07 +0000</pubDate>
		<guid>http://www.airs.com/blog/archives/159#comment-11531</guid>
					<description>That is an interesting idea.  gcc generally aims -O0 at a combination of easy debugging plus fast compile times.  We could have an option to abandon that.

There would still be the problem that the warnings would change with new gcc releases, though.</description>
		<content:encoded><![CDATA[	<p>That is an interesting idea.  gcc generally aims -O0 at a combination of easy debugging plus fast compile times.  We could have an option to abandon that.</p>
	<p>There would still be the problem that the warnings would change with new gcc releases, though.
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Compiler Warnings by: ncm</title>
		<link>http://www.airs.com/blog/archives/159#comment-11488</link>
		<pubDate>Tue, 18 Mar 2008 06:54:01 +0000</pubDate>
		<guid>http://www.airs.com/blog/archives/159#comment-11488</guid>
					<description>It's good to know that's acknowledged as a bug.

I don't care whether warnings come from the front end or the optimizer.  What would be helpful is if we could compile -O0 for comprehensible debugging, and run the optimizer at -O&amp;#8734; for the warnings but otherwise discard the results.  I would run it that way all the time, when developing.</description>
		<content:encoded><![CDATA[	<p>It&#8217;s good to know that&#8217;s acknowledged as a bug.</p>
	<p>I don&#8217;t care whether warnings come from the front end or the optimizer.  What would be helpful is if we could compile -O0 for comprehensible debugging, and run the optimizer at -O&infin; for the warnings but otherwise discard the results.  I would run it that way all the time, when developing.
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Compiler Warnings by: Ian Lance Taylor</title>
		<link>http://www.airs.com/blog/archives/159#comment-11440</link>
		<pubDate>Mon, 17 Mar 2008 18:31:47 +0000</pubDate>
		<guid>http://www.airs.com/blog/archives/159#comment-11440</guid>
					<description>The issue with the order of warning options is a bug.  It's already better in gcc 4.2.3 and 4.3.0.  See http://gcc.gnu.org/PR32102.

I agree that your example of spurious warnings is a problem.  Unfortunately that is the kind of problem which is hard to fix if warnings is only emitted by the frontend.</description>
		<content:encoded><![CDATA[	<p>The issue with the order of warning options is a bug.  It&#8217;s already better in gcc 4.2.3 and 4.3.0.  See <a href='http://gcc.gnu.org/PR32102' rel='nofollow'>http://gcc.gnu.org/PR32102</a>.</p>
	<p>I agree that your example of spurious warnings is a problem.  Unfortunately that is the kind of problem which is hard to fix if warnings is only emitted by the frontend.
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on Compiler Warnings by: ncm</title>
		<link>http://www.airs.com/blog/archives/159#comment-11386</link>
		<pubDate>Sun, 16 Mar 2008 07:57:37 +0000</pubDate>
		<guid>http://www.airs.com/blog/archives/159#comment-11386</guid>
					<description>My problem with Gcc warnings is that Order Matters.  E.g., &quot;-Wstrict-overflow=5  -W&quot; is the same as &quot;-W&quot;.  IMHO &quot;-W&quot; should never reduce the level of any warning level.  The choices above are quibbles in the face of such counterintuitive behavior.

Uninitialized-variable warnings are a big problem, as noted by some Linux kernel developers.  Spurious warnings, for cases like &quot;if (A) b=c; d(); if (A) e(b);&quot; are especially annoying because if you silence them by initializing b with a dummy value, you wipe out a future, smarter compiler's ability to detect real errors.</description>
		<content:encoded><![CDATA[	<p>My problem with Gcc warnings is that Order Matters.  E.g., &#8220;-Wstrict-overflow=5  -W&#8221; is the same as &#8220;-W&#8221;.  IMHO &#8220;-W&#8221; should never reduce the level of any warning level.  The choices above are quibbles in the face of such counterintuitive behavior.</p>
	<p>Uninitialized-variable warnings are a big problem, as noted by some Linux kernel developers.  Spurious warnings, for cases like &#8220;if (A) b=c; d(); if (A) e(b);&#8221; are especially annoying because if you silence them by initializing b with a dummy value, you wipe out a future, smarter compiler&#8217;s ability to detect real errors.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
