Patchwork [wwwdocs] PATCH for -Wimplicit-double

login
register
mail settings
Submitter Gerald Pfeifer
Date Oct. 17, 2010, 4:07 p.m.
Message ID <alpine.LNX.2.00.1010171806190.2945@acrux.dbai.tuwien.ac.at>
Download mbox | patch
Permalink /patch/68085/
State New
Headers show

Comments

Gerald Pfeifer - Oct. 17, 2010, 4:07 p.m.
On Mon, 6 Sep 2010, Mark Mitchell wrote:
>> OK, here's the version I checked in.  I will now implement the C++
>> version of the warning.
> Here's the C++ patch.

I noticed this hasn't made it to the GCC 4.6 release notes yet,
thus applied the patch below.  Happy to make changes to improve
upon this.

Gerald

Patch

Index: changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.6/changes.html,v
retrieving revision 1.50
diff -u -3 -p -r1.50 changes.html
--- changes.html	6 Oct 2010 14:51:49 -0000	1.50
+++ changes.html	17 Oct 2010 16:05:46 -0000
@@ -106,6 +106,14 @@ 
 
 <h3>C family</h3>
 
+  <ul>
+    <li>A new warning, enabled by <code>-Wno-double-promotion</code>,
+      has been added that warns about cases where a value of type
+      <code>float</code> is implicitly promoted to <code>double</code>.
+      This is especially helpful for CPUs that handle the former in
+      hardware, but emulate the latter in software.</li>
+  </ul>
+
 <h3 id="C">C</h3>
 
   <ul>