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
4c54501b
Commit
4c54501b
authored
20 years ago
by
Steven G. Kargl
Committed by
Steven G. Kargl
20 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix illogical logic.
From-SVN: r97082
parent
d7b1468b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
11 deletions
+21
-11
gcc/fortran/ChangeLog
+4
-0
gcc/fortran/arith.c
+17
-11
No files found.
gcc/fortran/ChangeLog
View file @
4c54501b
2005-03-26 Steven G. Kargl <kargls@comcast.net>
* arith.c (check_result): Fix illogical logic.
2005-03-26 Canqun Yang <canqun@nudt.edu.cn>
* trans-common.c (create_common): Build RECORD_NODE for common blocks
...
...
This diff is collapsed.
Click to expand it.
gcc/fortran/arith.c
View file @
4c54501b
...
...
@@ -552,21 +552,27 @@ gfc_range_check (gfc_expr * e)
static
arith
check_result
(
arith
rc
,
gfc_expr
*
x
,
gfc_expr
*
r
,
gfc_expr
**
rp
)
{
if
(
rc
!=
ARITH_OK
)
gfc_free_expr
(
r
);
else
{
if
(
rc
==
ARITH_UNDERFLOW
&&
gfc_option
.
warn_underflow
)
gfc_warning
(
"%s at %L"
,
gfc_arith_error
(
rc
),
&
x
->
where
);
arith
val
=
rc
;
if
(
rc
==
ARITH_ASYMMETRIC
)
gfc_warning
(
"%s at %L"
,
gfc_arith_error
(
rc
),
&
x
->
where
);
if
(
val
==
ARITH_UNDERFLOW
)
{
if
(
gfc_option
.
warn_underflow
)
gfc_warning
(
"%s at %L"
,
gfc_arith_error
(
val
),
&
x
->
where
);
val
=
ARITH_OK
;
}
rc
=
ARITH_OK
;
*
rp
=
r
;
if
(
val
==
ARITH_ASYMMETRIC
)
{
gfc_warning
(
"%s at %L"
,
gfc_arith_error
(
val
),
&
x
->
where
);
val
=
ARITH_OK
;
}
return
rc
;
if
(
val
!=
ARITH_OK
)
gfc_free_expr
(
r
);
else
*
rp
=
r
;
return
val
;
}
...
...
This diff is collapsed.
Click to expand it.
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