forked from iains/gcc-14-branch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
re PR fortran/55789 (Needless realloc with array constructor.)
2013-02-06 Paul Thomas <[email protected]> PR fortran/55789 * trans-array.c (trans_array_constructor): Remove condition 'dynamic' = true if the loop ubound is a VAR_DECL. 2013-02-06 Paul Thomas <[email protected]> PR fortran/55789 * gfortran.dg/array_constructor_41.f90: New test. From-SVN: r195815
- Loading branch information
Paul Thomas
committed
Feb 6, 2013
1 parent
c362c67
commit d0c4e31
Showing
4 changed files
with
44 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
2013-02-06 Paul Thomas <[email protected]> | ||
|
||
PR fortran/55789 | ||
* trans-array.c (trans_array_constructor): Remove condition | ||
'dynamic' = true if the loop ubound is a VAR_DECL. | ||
|
||
2013-02-04 Paul Thomas <[email protected]> | ||
|
||
PR fortran/56008 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
2013-02-06 Paul Thomas <[email protected]> | ||
|
||
PR fortran/55789 | ||
* gfortran.dg/array_constructor_41.f90: New test. | ||
|
||
2013-02-06 Janus Weil <[email protected]> | ||
|
||
PR fortran/55978 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
! { dg-do compile } | ||
! { dg-options "-fdump-tree-original" } | ||
! Test fix for PR55789 | ||
! | ||
! Contributed by Joost VandVandole <[email protected]> | ||
! | ||
MODULE M1 | ||
CONTAINS | ||
SUBROUTINE cp_1d_i4_sort(arr) | ||
INTEGER(kind=4), DIMENSION(:), & | ||
INTENT(inout) :: arr | ||
arr = (/ (i, i = 1, SIZE(arr)) /) | ||
END SUBROUTINE | ||
END MODULE M1 | ||
|
||
PROGRAM TEST | ||
USE M1 | ||
INTEGER :: arr(1) | ||
INTERFACE | ||
SUBROUTINE mtrace() BIND(C,name="mtrace") | ||
END SUBROUTINE | ||
END INTERFACE | ||
INTERFACE | ||
SUBROUTINE muntrace() BIND(C,name="muntrace") | ||
END SUBROUTINE | ||
END INTERFACE | ||
CALL mtrace() | ||
CALL cp_1d_i4_sort(arr) | ||
CALL muntrace() | ||
END | ||
|
||
! { dg-final { scan-tree-dump-times "realloc" 0 "original" } } | ||
! { dg-final { cleanup-tree-dump "original" } } |