Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
bac23dd6
Commit
bac23dd6
authored
May 26, 1999
by
Craig Burley
Committed by
Craig Burley
May 26, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename -fsubscript-check to -fbounds-check
From-SVN: r27170
parent
b7f2c1fc
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
27 deletions
+31
-27
gcc/f/ChangeLog
+10
-0
gcc/f/g77.texi
+11
-11
gcc/f/lang-options.h
+4
-4
gcc/f/news.texi
+2
-8
gcc/f/top.c
+4
-4
No files found.
gcc/f/ChangeLog
View file @
bac23dd6
Wed May 26 11:45:21 1999 Craig Burley <craig@jcb-sc.com>
Rename -fsubscript-check to -fbounds-check and
-ff2c-subscript-check to -ffortran-bounds-check:
* g77.texi: Rename options in docs, clarify usage.
* lang-options.h: Rename options, clarify doclets.
* news.texi: Rename options, don't bother with fortran-specific
option.
* top.c (ffe_decode_option): Rename recognized strings.
Tue May 25 18:21:09 1999 Craig Burley <craig@jcb-sc.com>
* com.c (FFECOM_FASTER_ARRAY_REFS): Delete this vestige,
...
...
gcc/f/g77.texi
View file @
bac23dd6
...
...
@@ -2,7 +2,7 @@
@c
%**
start
of
header
@setfilename
g77
.
info
@set
last
-
update
1999
-
05
-
13
@set
last
-
update
1999
-
05
-
26
@set
copyrights
-
g77
1995
-
1999
@include
root
.
texi
...
...
@@ -1471,7 +1471,7 @@ by type. Explanations are in the following sections.
-
falias
-
check
-
fargument
-
alias
-
fargument
-
noalias
-
fno
-
argument
-
noalias
-
global
-
fno
-
globals
-
fflatten
-
arrays
-
f
subscript
-
check
-
ff2c
-
subscript
-
check
-
f
bounds
-
check
-
ffortran
-
bounds
-
check
@end
smallexample
@end
table
...
...
@@ -3386,10 +3386,10 @@ It is intended for use only by @code{g77} developers,
to evaluate code-generation issues.
It might be removed at any time.
@cindex -f
subscript
-check option
@cindex -ff
2c-subscript
-check option
@item -f
subscript
-check
@itemx -ff
2c-subscript
-check
@cindex -f
bounds
-check option
@cindex -ff
ortran-bounds
-check option
@item -f
bounds
-check
@itemx -ff
ortran-bounds
-check
@cindex bounds checking
@cindex range checking
@cindex array bounds checking
...
...
@@ -3414,12 +3414,12 @@ such as references to below the beginning of an assumed-size array.
@code{g77} also generates checks for @code{CHARACTER} substring references,
something @code{f2c} currently does not do.
Since a future version of @code{g77} might use a different implementation,
use the new @samp{-ff2c-subscript-check} option
if your application requires use of @code{s_rnge} or a compile-time diagnostic
.
Use the new @samp{-ffortran-bounds-check} option
to specify bounds-checking for only the Fortran code you are compiling,
not necessarily for code written in other languages
.
@emph{Note:} To provide more detailed information on the offending subscript,
@code{g77} provides @code{s_rnge}
@code{g77} provides
the @code{libg2c} run-time library routine
@code{s_rnge}
with somewhat differently-formatted information.
Here's a sample diagnostic:
...
...
@@ -11178,7 +11178,7 @@ themselves as @emph{visible} problems some time later.
Overflowing the bounds of an array---usually by writing beyond
the end of it---is one of two kinds of bug that often occurs
in Fortran code.
(Compile your code with the @samp{-f
subscript
-check} option
(Compile your code with the @samp{-f
bounds
-check} option
to catch many of these kinds of errors at program run time.)
The other kind of bug is a mismatch between the actual arguments
...
...
gcc/f/lang-options.h
View file @
bac23dd6
...
...
@@ -149,10 +149,10 @@ FTNOPT( "-fglobals", "" )
FTNOPT
(
"-fno-globals"
,
"Disable fatal diagnostics about inter-procedural problems"
)
FTNOPT
(
"-ftypeless-boz"
,
"Make prefix-radix non-decimal constants be typeless"
)
FTNOPT
(
"-fno-typeless-boz"
,
""
)
FTNOPT
(
"-f
subscript-check"
,
"Generate code to check array-subscript range
s"
)
FTNOPT
(
"-fno-
subscript
-check"
,
""
)
FTNOPT
(
"-ff
2c-subscript-check"
,
"Generate f2c-like code to check array-subscript ranges
"
)
FTNOPT
(
"-fno-f
2c-subscript
-check"
,
""
)
FTNOPT
(
"-f
bounds-check"
,
"Generate code to check subscript and substring bound
s"
)
FTNOPT
(
"-fno-
bounds
-check"
,
""
)
FTNOPT
(
"-ff
ortran-bounds-check"
,
"Fortran-specific form of -fbounds-check
"
)
FTNOPT
(
"-fno-f
ortran-bounds
-check"
,
""
)
FTNOPT
(
"-Wglobals"
,
""
)
FTNOPT
(
"-Wno-globals"
,
"Disable warnings about inter-procedural problems"
)
/*"-Wimplicit",*/
...
...
gcc/f/news.texi
View file @
bac23dd6
...
...
@@ -9,7 +9,7 @@
@c
in
the
standalone
derivations
of
this
file
(
e
.
g
.
NEWS
).
@set
copyrights
-
news
1995
-
1999
@set
last
-
update
-
news
1999
-
05
-
13
@set
last
-
update
-
news
1999
-
05
-
26
@include
root
.
texi
...
...
@@ -217,16 +217,10 @@ The @samp{-ax} option is now obeyed when compiling Fortran programs.
@end
ifclear
@item
The
new
@samp
{
-
f
subscript
-
check
}
option
The
new
@samp
{
-
f
bounds
-
check
}
option
causes
@code
{
g77
}
to
compile
run
-
time
bounds
checks
of
array
subscripts
,
as
well
as
of
substring
start
and
end
points
.
The
current
implementation
uses
the
@code
{
libf2c
}
library
routine
@code
{
s_rnge
}
to
print
the
diagnostic
.
Since
a
future
version
of
@code
{
g77
}
might
use
a
different
implementation
,
use
the
new
@samp
{
-
ff2c
-
subscript
-
check
}
option
if
your
application
requires
use
of
@code
{
s_rnge
}
or
a
compile
-
time
diagnostic
.
@item
Source
file
names
with
the
suffixes
@samp
{.
FOR
}
and
@samp
{.
FPP
}
now
are
recognized
by
@code
{
g77
}
...
...
gcc/f/top.c
View file @
bac23dd6
...
...
@@ -323,13 +323,13 @@ ffe_decode_option (argc, argv)
ffe_set_is_globals
(
TRUE
);
else
if
(
strcmp
(
&
opt
[
2
],
"no-globals"
)
==
0
)
ffe_set_is_globals
(
FALSE
);
else
if
(
strcmp
(
&
opt
[
2
],
"
subscript
-check"
)
==
0
)
else
if
(
strcmp
(
&
opt
[
2
],
"
bounds
-check"
)
==
0
)
ffe_set_is_subscript_check
(
TRUE
);
else
if
(
strcmp
(
&
opt
[
2
],
"no-
subscript
-check"
)
==
0
)
else
if
(
strcmp
(
&
opt
[
2
],
"no-
bounds
-check"
)
==
0
)
ffe_set_is_subscript_check
(
FALSE
);
else
if
(
strcmp
(
&
opt
[
2
],
"f
2c-subscript
-check"
)
==
0
)
else
if
(
strcmp
(
&
opt
[
2
],
"f
ortran-bounds
-check"
)
==
0
)
ffe_set_is_subscript_check
(
TRUE
);
else
if
(
strcmp
(
&
opt
[
2
],
"no-f
2c-subscript
-check"
)
==
0
)
else
if
(
strcmp
(
&
opt
[
2
],
"no-f
ortran-bounds
-check"
)
==
0
)
ffe_set_is_subscript_check
(
FALSE
);
else
if
(
strcmp
(
&
opt
[
2
],
"typeless-boz"
)
==
0
)
ffe_set_is_typeless_boz
(
TRUE
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment