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
c95ee96b
Commit
c95ee96b
authored
Oct 17, 2019
by
Mark Eggleston
Committed by
Mark Eggleston
Oct 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Additional test cases for using automatic variables in equivalence statements.
From-SVN: r277097
parent
7fa848b5
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
100 additions
and
0 deletions
+100
-0
gcc/testsuite/ChangeLog
+8
-0
gcc/testsuite/gfortran.dg/auto_in_equiv_3.f90
+19
-0
gcc/testsuite/gfortran.dg/auto_in_equiv_4.f90
+18
-0
gcc/testsuite/gfortran.dg/auto_in_equiv_5.f90
+18
-0
gcc/testsuite/gfortran.dg/auto_in_equiv_6.f90
+18
-0
gcc/testsuite/gfortran.dg/auto_in_equiv_7.f90
+19
-0
No files found.
gcc/testsuite/ChangeLog
View file @
c95ee96b
2019-10-17 Mark Eggleston <mark.eggleston@codethink.com>
* gfortran.dg/auto_in_equiv_3.f90: New test.
* gfortran.dg/auto_in_equiv_4.f90: New test.
* gfortran.dg/auto_in_equiv_5.f90: New test.
* gfortran.dg/auto_in_equiv_6.f90: New test.
* gfortran.dg/auto_in_equiv_7.f90: New test.
2019-10-17 Georg-Johann Lay <avr@gjlay.de>
2019-10-17 Georg-Johann Lay <avr@gjlay.de>
* gcc.target/avr/progmem-error-1.cpp: Fix location of the
* gcc.target/avr/progmem-error-1.cpp: Fix location of the
...
...
gcc/testsuite/gfortran.dg/auto_in_equiv_3.f90
0 → 100644
View file @
c95ee96b
! { dg-do compile }
! { dg-options "-fdec-static -fdump-tree-original" }
!
subroutine
foo
integer
,
automatic
::
a
integer
::
b
equivalence
(
a
,
b
)
a
=
5
if
(
b
.ne.
5
)
stop
1
end
subroutine
! { dg-final { scan-tree-dump "union" "original" } }
! { dg-final { scan-tree-dump-not "static union" "original" } }
! { dg-final { scan-tree-dump "integer\\(kind=4\\) a" "original" } }
! { dg-final { scan-tree-dump-not "static integer\\(kind=4\\) a" "original" } }
! { dg-final { scan-tree-dump "integer\\(kind=4\\) b" "original" } }
! { dg-final { scan-tree-dump-not "static integer\\(kind=4\\) b" "original" } }
gcc/testsuite/gfortran.dg/auto_in_equiv_4.f90
0 → 100644
View file @
c95ee96b
! { dg-do compile }
! { dg-options "-fdec-static -fno-automatic -fdump-tree-original" }
!
! Neither of the local variable have the automatic attribute so they
! not be allocated on the stack.
subroutine
foo
integer
::
a
integer
::
b
equivalence
(
a
,
b
)
a
=
5
if
(
b
.ne.
5
)
stop
1
end
subroutine
! { dg-final { scan-tree-dump "static union" "original" } }
! { dg-final { scan-tree-dump "static integer\\(kind=4\\) a" "original" } }
! { dg-final { scan-tree-dump "static integer\\(kind=4\\) b" "original" } }
gcc/testsuite/gfortran.dg/auto_in_equiv_5.f90
0 → 100644
View file @
c95ee96b
! { dg-do compile }
! { dg-options "-fdump-tree-original" }
!
! Neither of the local variable have the automatic attribute so they
! not be allocated on the stack.
subroutine
foo
integer
,
save
::
a
integer
::
b
equivalence
(
a
,
b
)
a
=
5
if
(
b
.ne.
5
)
stop
1
end
subroutine
! { dg-final { scan-tree-dump "static union" "original" } }
! { dg-final { scan-tree-dump "static integer\\(kind=4\\) a" "original" } }
! { dg-final { scan-tree-dump "static integer\\(kind=4\\) b" "original" } }
gcc/testsuite/gfortran.dg/auto_in_equiv_6.f90
0 → 100644
View file @
c95ee96b
! { dg-do compile }
! { dg-options "-fdec-static -fdump-tree-original" }
!
! Neither of the local variable have the automatic attribute so they
! not be allocated on the stack.
subroutine
foo
integer
,
static
::
a
integer
::
b
equivalence
(
a
,
b
)
a
=
5
if
(
b
.ne.
5
)
stop
1
end
subroutine
! { dg-final { scan-tree-dump "static union" "original" } }
! { dg-final { scan-tree-dump "static integer\\(kind=4\\) a" "original" } }
! { dg-final { scan-tree-dump "static integer\\(kind=4\\) b" "original" } }
gcc/testsuite/gfortran.dg/auto_in_equiv_7.f90
0 → 100644
View file @
c95ee96b
! { dg-do compile }
! { dg-options "-fdec-static -fdump-tree-original" }
!
subroutine
foo
integer
::
a
integer
,
automatic
::
b
equivalence
(
a
,
b
)
a
=
5
if
(
b
.ne.
5
)
stop
1
end
subroutine
! { dg-final { scan-tree-dump "union" "original" } }
! { dg-final { scan-tree-dump-not "static union" "original" } }
! { dg-final { scan-tree-dump "integer\\(kind=4\\) a" "original" } }
! { dg-final { scan-tree-dump-not "static integer\\(kind=4\\) a" "original" } }
! { dg-final { scan-tree-dump "integer\\(kind=4\\) b" "original" } }
! { dg-final { scan-tree-dump-not "static integer\\(kind=4\\) b" "original" } }
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