diff mbox

[wwwdocs,committed] Document -Winteger-division for Fortran

Message ID 55941D68.9060902@netcologne.de
State New
Headers show

Commit Message

Thomas Koenig July 1, 2015, 5:03 p.m. UTC
Hello world,

I just committed the following patch to the WWW docs.

An error was reported by Gerald's script, but that seems to
have been spurious.  At least, there was no error on
revalidation.

Regards

	Thomas

2015-07-01  Thomas Koenig  <tkoenig@netcologne.de>

	    * gcc-6/changes.html:  Document -Winteger-division for
	    Fortran.

Comments

Gerald Pfeifer July 1, 2015, 9:39 p.m. UTC | #1
On Wed, 1 Jul 2015, Thomas Koenig wrote:
> I just committed the following patch to the WWW docs.

Thanks.  In the description, are the integers constants truncated
or (the result of) the division?

> An error was reported by Gerald's script, but that seems to have 
> been spurious.  At least, there was no error on revalidation.

Sorry about that!  This happens perhaps once a year and I believe
is due to a server or connection timeout somewhere.  Your change
and the page per see indeed appear fine.

erald
Steve Kargl July 1, 2015, 9:42 p.m. UTC | #2
On Wed, Jul 01, 2015 at 11:39:09PM +0200, Gerald Pfeifer wrote:
> On Wed, 1 Jul 2015, Thomas Koenig wrote:
> > I just committed the following patch to the WWW docs.
> 
> Thanks.  In the description, are the integers constants truncated
> or (the result of) the division?
> 

The result is truncated.

real x
x = 4/5 
end

is truncated to 'x = 0'.  The remainder of 4 is tossed.
diff mbox

Patch

Index: changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-6/changes.html,v
retrieving revision 1.12
diff -r1.12 changes.html
67a68,70
>     <li>The <code>-Winteger-division</code> option has been added, which
>       warns about divisions of integer constants which are truncated.
>       This option is included in <code>-Wall</code> by default.</li>