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
7a324846
Commit
7a324846
authored
Oct 07, 2019
by
Mark Eggleston
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete auto-in_equiv.f90 forgot to use svn delete the first time.
From-SVN: r276651
parent
9b036587
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
63 deletions
+0
-63
gcc/testsuite/gfortran.dg/auto_in_equiv_3.f90
+0
-63
No files found.
gcc/testsuite/gfortran.dg/auto_in_equiv_3.f90
deleted
100644 → 0
View file @
9b036587
! { dg-do run }
! { dg-options "-fdec-static -fno-automatic" }
! Contributed by Mark Eggleston <mark.eggleston@codethink.com>
! Storage is NOT on the static unless explicitly specified using the
! DEC extension "automatic". The address of the first local variable
! is used to determine that storage for the automatic local variable
! is different to that of a local variable with no attributes. The
! contents of the local variable in suba should be overwritten by the
! call to subb.
!
program
test
integer
::
dummy
integer
,
parameter
::
address
=
kind
(
loc
(
dummy
))
integer
(
address
)
::
ad1
integer
(
address
)
::
ad2
integer
(
address
)
::
ad3
logical
::
ok
call
suba
(
0
,
ad1
)
call
subb
(
0
,
ad2
)
call
suba
(
1
,
ad1
)
call
subc
(
0
,
ad3
)
ok
=
(
ad1
.eq.
ad3
)
.and.
(
ad1
.ne.
ad2
)
if
(
.not.
ok
)
stop
4
contains
subroutine
suba
(
option
,
addr
)
integer
,
intent
(
in
)
::
option
integer
(
address
),
intent
(
out
)
::
addr
integer
,
automatic
::
a
integer
::
b
equivalence
(
a
,
b
)
addr
=
loc
(
a
)
if
(
option
.eq.
0
)
then
! initialise a and c
a
=
9
if
(
a
.ne.
b
)
stop
1
if
(
loc
(
a
)
.ne.
loc
(
b
))
stop
2
else
! a should've been overwritten
if
(
a
.eq.
9
)
stop
3
end
if
end
subroutine
suba
subroutine
subb
(
dummy
,
addr
)
integer
,
intent
(
in
)
::
dummy
integer
(
address
),
intent
(
out
)
::
addr
integer
::
x
addr
=
loc
(
x
)
x
=
77
end
subroutine
subb
subroutine
subc
(
dummy
,
addr
)
integer
,
intent
(
in
)
::
dummy
integer
(
address
),
intent
(
out
)
::
addr
integer
,
automatic
::
y
addr
=
loc
(
y
)
y
=
77
end
subroutine
subc
end
program
test
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