This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Apply solution to PR Fortran/10726 to 3.3 branch.


L.S.,

PR Fortran/10726 really brought to light some silly mistakes in the g77 documentation of intrinsic functions.

This patch is necessary to repair the mistakes vis-a-vis the upcoming release of a new (printed) GCC manual).

I intend to apply the same update to the trunk.

Bootstrapped (C and Fortran only) and make -k check'd (Fortran only) on powerpc-unknown-linux-gnu.

--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://gcc-g95.sourceforge.net/ (under construction)
2003-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>

	PR fortran/10726
	* intdoc.in: Fix documentation of IDATE.
	* intdoc.texi: Regenerate.
	* news.texi: Update due to the above.

*** intdoc.in.orig	Fri Jan  3 23:32:42 2003
--- intdoc.in	Sun May 18 12:54:09 2003
***************
*** 1,3 ****
! /* Copyright (C) 1997, 1999 Free Software Foundation, Inc.
   * This is part of the G77 manual.
   * For copying conditions, see the file g77.texi. */
--- 1,3 ----
! /* Copyright (C) 1997, 1999, 2003 Free Software Foundation, Inc.
   * This is part of the G77 manual.
   * For copying conditions, see the file g77.texi. */
*************** zero if not, and negative if the informa
*** 1289,1295 ****
  
  DEFDOC (IDATE_unix, "Get local time info.", "\
! Fills @var{@1@} with the numerical values at the current local time
! of day, month (in the range 1--12), and year in elements 1, 2, and 3,
! respectively.
  The year has four significant digits.
  
--- 1289,1295 ----
  
  DEFDOC (IDATE_unix, "Get local time info.", "\
! Fills @var{@1@} with the numerical values at the current local time.
! The day (in the range 1--31), month (in the range 1--12),
! and year appear in elements 1, 2, and 3 of @var{@1@}, respectively.
  The year has four significant digits.
  
*************** DEFDOC (IDATE_vxt, "Get local time info 
*** 1309,1313 ****
  Returns the numerical values of the current local time.
  The month (in the range 1--12) is returned in @var{@1@},
! the day (in the range 1--7) in @var{@2@},
  and the year in @var{@3@} (in the range 0--99).
  
--- 1309,1313 ----
  Returns the numerical values of the current local time.
  The month (in the range 1--12) is returned in @var{@1@},
! the day (in the range 1--31) in @var{@2@},
  and the year in @var{@3@} (in the range 0--99).
  
*************** and the year in @var{@3@} (in the range 
*** 1316,1325 ****
  @cindex wraparound, Y2K
  @cindex limits, Y2K
! This intrinsic is not recommended, due to the year 2000 approaching.
! Therefore, programs making use of this intrinsic
! might not be Year 2000 (Y2K) compliant.
  For example, the date might appear,
  to such programs, to wrap around
- (change from a larger value to a smaller one)
  as of the Year 2000.
  
--- 1316,1326 ----
  @cindex wraparound, Y2K
  @cindex limits, Y2K
! This intrinsic is not recommended, due to the fact that
! its return value for year wraps around century boundaries
! (change from a larger value to a smaller one).
! Therefore, programs making use of this intrinsic, for
! instance, might not be Year 2000 (Y2K) compliant.
  For example, the date might appear,
  to such programs, to wrap around
  as of the Year 2000.
  
*** news.texi.orig	Fri Apr 11 20:07:07 2003
--- news.texi	Sun May 18 13:44:52 2003
***************
*** 11,15 ****
  @set copyrights-news 1995,1996,1997,1998,1999,2000,2001,2002,2003
  
! @set last-update-news 2003-04-11
  
  @ifset DOC-NEWS
--- 11,15 ----
  @set copyrights-news 1995,1996,1997,1998,1999,2000,2001,2002,2003
  
! @set last-update-news 2003-05-18
  
  @ifset DOC-NEWS
*************** ICE caused by invalid PARAMETER in impli
*** 191,194 ****
--- 191,196 ----
  @item 10197
  Direct access files not unformatted by default
+ @item 10726
+ Documentation for function IDATE Intrinsic (UNIX) is wrong [fixed in 3.3.1].
  @end table
  @item

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]