Commit 1a14a58c by Tobias Burnus Committed by Tobias Burnus

re PR fortran/43665 (INTENT(IN) etc. optimization of calls: function annotations…

re PR fortran/43665 (INTENT(IN) etc. optimization of calls: function annotations for noclobber/noescape arguments)

2010-09-09  Tobias Burnus  <burnus@net-b.de>

        PR fortran/43665
        * intrincic.texi (FGET, FGETC, FPUT, FPUTC, FSTAT, GETCWD, KILL,
        STAT): Show also syntax for the function version.
        * intrinsic.c (add_sym_1s_intent, add_sym_2s_intent,
         add_sym_3s_intent): Remove function.
        (add_sym_1s, add_sym_2s, add_sym_3s): Take always the intent
        as argument.
        (add_sym_2_intent): New function.
        (add_functions): Set intent for functions which modify
        the argument: fstat, fgetc, fget, hostnm, lstat, stat. Change
        argument name of hostnm from "a" to "c"
        (add_subroutines): Change add_sym_*s_intent to
        add_sym_*s and add intent to the add_sym_*s calls.

From-SVN: r164052
parent e8e399c3
2010-09-09 Tobias Burnus <burnus@net-b.de>
PR fortran/43665
* intrincic.texi (FGET, FGETC, FPUT, FPUTC, FSTAT, GETCWD, KILL,
STAT): Show also syntax for the function version.
* intrinsic.c (add_sym_1s_intent, add_sym_2s_intent,
add_sym_3s_intent): Remove function.
(add_sym_1s, add_sym_2s, add_sym_3s): Take always the intent
as argument.
(add_sym_2_intent): New function.
(add_functions): Set intent for functions which modify
the argument: fstat, fgetc, fget, hostnm, lstat, stat. Change
argument name of hostnm from "a" to "c"
(add_subroutines): Change add_sym_*s_intent to
add_sym_*s and add intent to the add_sym_*s calls.
2010-09-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
PR fortran/38282
......
......@@ -4389,7 +4389,10 @@ GNU extension
Subroutine, function
@item @emph{Syntax}:
@code{CALL FGET(C [, STATUS])}
@multitable @columnfractions .80
@item @code{CALL FGET(C [, STATUS])}
@item @code{STATUS = FGET(C)}
@end multitable
@item @emph{Arguments}:
@multitable @columnfractions .15 .70
......@@ -4451,7 +4454,10 @@ GNU extension
Subroutine, function
@item @emph{Syntax}:
@code{CALL FGETC(UNIT, C [, STATUS])}
@multitable @columnfractions .80
@item @code{CALL FGETC(UNIT, C [, STATUS])}
@item @code{STATUS = FGETC(UNIT, C)}
@end multitable
@item @emph{Arguments}:
@multitable @columnfractions .15 .70
......@@ -4671,7 +4677,10 @@ GNU extension
Subroutine, function
@item @emph{Syntax}:
@code{CALL FPUT(C [, STATUS])}
@multitable @columnfractions .80
@item @code{CALL FPUT(C [, STATUS])}
@item @code{STATUS = FPUT(C)}
@end multitable
@item @emph{Arguments}:
@multitable @columnfractions .15 .70
......@@ -4727,7 +4736,10 @@ GNU extension
Subroutine, function
@item @emph{Syntax}:
@code{CALL FPUTC(UNIT, C [, STATUS])}
@multitable @columnfractions .80
@item @code{CALL FPUTC(UNIT, C [, STATUS])}
@item @code{STATUS = FPUTC(UNIT, C)}
@end multitable
@item @emph{Arguments}:
@multitable @columnfractions .15 .70
......@@ -4945,7 +4957,10 @@ GNU extension
Subroutine, function
@item @emph{Syntax}:
@code{CALL FSTAT(UNIT, VALUES [, STATUS])}
@multitable @columnfractions .80
@item @code{CALL FSTAT(UNIT, VALUES [, STATUS])}
@item @code{STATUS = FSTAT(UNIT, VALUES)}
@end multitable
@item @emph{Arguments}:
@multitable @columnfractions .15 .70
......@@ -5313,7 +5328,10 @@ GNU extension
Subroutine, function
@item @emph{Syntax}:
@code{CALL GETCWD(C [, STATUS])}
@multitable @columnfractions .80
@item @code{CALL GETCWD(C [, STATUS])}
@item @code{STATUS = GETCWD(C)}
@end multitable
@item @emph{Arguments}:
@multitable @columnfractions .15 .70
......@@ -7034,7 +7052,10 @@ only one form can be used in any given program unit.
Subroutine, function
@item @emph{Syntax}:
@code{CALL KILL(C, VALUE [, STATUS])}
@multitable @columnfractions .80
@item @code{CALL KILL(C, VALUE [, STATUS])}
@item @code{STATUS = KILL(C, VALUE)}
@end multitable
@item @emph{Arguments}:
@multitable @columnfractions .15 .70
......@@ -7927,7 +7948,10 @@ GNU extension
Subroutine, function
@item @emph{Syntax}:
@code{CALL LSTAT(NAME, VALUES [, STATUS])}
@multitable @columnfractions .80
@item @code{CALL LSTAT(NAME, VALUES [, STATUS])}
@item @code{STATUS = LSTAT(NAME, VALUES)}
@end multitable
@item @emph{Arguments}:
@multitable @columnfractions .15 .70
......@@ -11466,7 +11490,10 @@ GNU extension
Subroutine, function
@item @emph{Syntax}:
@code{CALL STAT(NAME, VALUES [, STATUS])}
@multitable @columnfractions .80
@item @code{CALL STAT(NAME, VALUES [, STATUS])}
@item @code{STATUS = STAT(NAME, VALUES)}
@end multitable
@item @emph{Arguments}:
@multitable @columnfractions .15 .70
......@@ -12334,8 +12361,10 @@ GNU extension
Subroutine, function
@item @emph{Syntax}:
@code{CALL UMASK(MASK [, OLD])}
@code{OLD = UMASK(MASK)}
@multitable @columnfractions .80
@item @code{CALL UMASK(MASK [, OLD])}
@item @code{OLD = UMASK(MASK)}
@end multitable
@item @emph{Arguments}:
@multitable @columnfractions .15 .70
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment