public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch, wwwdocs, committed] Document -Winteger-division for Fortran
@ 2015-07-01 17:03 Thomas Koenig
  2015-07-01 21:39 ` Gerald Pfeifer
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Koenig @ 2015-07-01 17:03 UTC (permalink / raw)
  To: gcc-patches, Gerald Pfeifer's automatic GCC web pages tester; +Cc: fortran

[-- Attachment #1: Type: text/plain, Size: 341 bytes --]

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.

[-- Attachment #2: doc.diff --]
[-- Type: text/x-patch, Size: 420 bytes --]

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>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [patch, wwwdocs, committed] Document -Winteger-division for Fortran
  2015-07-01 17:03 [patch, wwwdocs, committed] Document -Winteger-division for Fortran Thomas Koenig
@ 2015-07-01 21:39 ` Gerald Pfeifer
  2015-07-01 21:42   ` Steve Kargl
  0 siblings, 1 reply; 3+ messages in thread
From: Gerald Pfeifer @ 2015-07-01 21:39 UTC (permalink / raw)
  To: Thomas Koenig; +Cc: gcc-patches, fortran

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [patch, wwwdocs, committed] Document -Winteger-division for Fortran
  2015-07-01 21:39 ` Gerald Pfeifer
@ 2015-07-01 21:42   ` Steve Kargl
  0 siblings, 0 replies; 3+ messages in thread
From: Steve Kargl @ 2015-07-01 21:42 UTC (permalink / raw)
  To: Gerald Pfeifer; +Cc: Thomas Koenig, gcc-patches, fortran

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.

-- 
Steve

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-07-01 21:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-01 17:03 [patch, wwwdocs, committed] Document -Winteger-division for Fortran Thomas Koenig
2015-07-01 21:39 ` Gerald Pfeifer
2015-07-01 21:42   ` Steve Kargl

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).