This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, fortran] PR28585: Add Fortran 2003 NEW_LINE intrinsic function
- From: FX Coudert <fxcoudert at gmail dot com>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: "'fortran at gcc dot gnu dot org'" <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 8 Oct 2006 15:22:30 +0200
- Subject: Re: [Patch, fortran] PR28585: Add Fortran 2003 NEW_LINE intrinsic function
- References: <4504A704.70502@net-b.de> <450F010F.6080701@net-b.de> <451AFCC8.4060602@net-b.de> <BA54FB26-AEA1-4D02-9594-5012D47F7CB2@gmail.com> <45281E81.1030407@net-b.de> <4528D7EE.5050707@net-b.de>
Hi Tobias,
I commited your patch. Here are a few last remarks:
1. there was a warning when building with your patch:
trunk/gcc/fortran/simplify.c: In function ‘gfc_simplify_new_line’:
trunk/gcc/fortran/simplify.c:2621: warning: unused variable ‘index’
Some oddity in Make-lang.in specifies that simplify.c should be build
with -Wno-error, that's why the build did not explode in your hands.
In the patch I commited, I removed the declaration of unused variable
index.
2. when submitting a patch, we need to know what is the extent of
your testing. The usual minimal testing is "built and regression-
tested on [build-triplet]", if you have run the testsuite for the
freshly built compiler; for doc changes, you probably also want to
"make info && make html" to be sure TeXinfo accepts your changes (and
mention that).
3. there was still some non-NEW_LINE stuff in your intrinsic.texi
diff; I applied only the relevant parts
4. bad style in your ChangeLog entry:
2006-10-08 Tobias Burnus <burnus@net-b.de>
PR fortran/28585
* intrinsic.c(add_functions): Add new_line Fortran 2003 intrinsic
intrinsic.h: Add gfc_simplify_new_line and
gfc_check_new_line prototypes
check.c: Add gfc_check_new_line
simplify.c: Add gfc_simplify_new_line
* intrinsic.text: Document new_line intrinsic
* gfortran.dg/new_line.f90: new testcase
The "perfect style" would be, I guess:
2006-10-08 Tobias Burnus <burnus@net-b.de>
PR fortran/28585
* intrinsic.c (add_functions): Add new_line Fortran 2003
intrinsic.
* intrinsic.h: Add gfc_simplify_new_line and gfc_check_new_line
prototypes.
* check.c (gfc_check_new_line): New function.
* simplify.c (gfc_simplify_new_line): New function.
* intrinsic.texi: Document new_line intrinsic.
2006-10-08 Tobias Burnus <burnus@net-b.de>
PR fortran/28585
* gfortran.dg/new_line.f90: New test.
That is: tabs for left spacing, * for each file, function names
modified or added inside parentheses, separate ChangeLog entries for
front-end, library and testsuite.
I attach the diff I commited as revision 117555. Thanks again, Tobias!
FX
Attachment:
new_line.diff
Description: Binary data