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
de5ecc6c
Commit
de5ecc6c
authored
Jun 02, 1998
by
Dave Love
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix per JCB. Add commentary.
From-SVN: r20178
parent
7eca7986
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
16 deletions
+37
-16
gcc/testsuite/g77.f-torture/compile/970125-0.f
+37
-16
No files found.
gcc/testsuite/g77.f-torture/compile/970125-0.f
View file @
de5ecc6c
integer*4 i4
C JCB comments:
integer*8 i8
C g77 doesn't accept the added line "integer(kind=7) ..." --
integer*8 max4
C it crashes!
data max4/2147483647/
C
i4 = %loc(i4)
C It's questionable that g77 DTRT with regarding to passing
i8 = %loc(i8)
C %LOC() as an argument (thus by reference) and the new global
print *, max4
C analysis. I need to look into that further; my feeling is that
print *, i4, %loc(i4)
C passing %LOC() as an argument should be treated like passing an
print *, i8, %loc(i8)
C INTEGER(KIND=7) by reference, and no more specially than that
call foo(i4, %loc(i4), i8, %loc(i8))
C (and that INTEGER(KIND=7) should be permitted as equivalent to
end
C INTEGER(KIND=1), INTEGER(KIND=2), or whatever, depending on the
subroutine foo(i4, i4a, i8, i8a)
C system's pointer size).
integer*8 i8
C
print *, i4, i4a
C The back end *still* has a bug here, which should be fixed,
print *, i8, i8a
C because, currently, what g77 is passing to it is, IMO, correct.
end
C No options:
C ../../egcs/gcc/f/info.c:259: failed assertion `ffeinfo_types_[basictype][kindtype] != NULL'
C -fno-globals -O:
C ../../egcs/gcc/expr.c:7291: Internal compiler error in function expand_expr
integer*4 i4
integer*8 i8
integer*8 max4
data max4/2147483647/
i4 = %loc(i4)
i8 = %loc(i8)
print *, max4
print *, i4, %loc(i4)
print *, i8, %loc(i8)
call foo(i4, %loc(i4), i8, %loc(i8))
end
subroutine foo(i4, i4a, i8, i8a)
integer(kind=7) i4a, i8a
integer*8 i8
print *, i4, i4a
print *, i8, i8a
end
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