forked from gcc-mirror/gcc
-
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.
2009-06-16 Tobias Burnus <[email protected]>
PR fortran/40383 * trans-decl.c (create_function_arglist): Copy formal charlist * to have a proper passed_length for -fcheck=bounds. 2009-06-16 Tobias Burnus <[email protected]> PR fortran/40383 * gfortran.dg/bounds_check_strlen_8.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148517 138bc75d-0d04-0410-961f-82ee72b054a4
- Loading branch information
burnus
committed
Jun 16, 2009
1 parent
fb35bae
commit 6be7c32
Showing
4 changed files
with
67 additions
and
0 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 @@ | ||
2009-06-16 Tobias Burnus <[email protected]> | ||
|
||
PR fortran/40383 | ||
* trans-decl.c (create_function_arglist): Copy formal charlist to | ||
have a proper passed_length for -fcheck=bounds. | ||
|
||
2009-06-12 Steven G. Kargl <[email protected]> | ||
|
||
* arith.c (gfc_enum_initializer): Move function ... | ||
|
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 @@ | ||
2009-06-16 Tobias Burnus <[email protected]> | ||
|
||
PR fortran/40383 | ||
* gfortran.dg/bounds_check_strlen_8.f90: New test. | ||
|
||
2009-06-15 Ian Lance Taylor <[email protected]> | ||
|
||
* gcc.dg/Wjump-misses-init-1.c: New testcase. | ||
|
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,40 @@ | ||
! { dg-do run } | ||
! { dg-options "-fbounds-check" } | ||
! | ||
! PR fortran/40383 | ||
! Gave before a bogus out of bounds. | ||
! Contributed by Joost VandeVondele. | ||
! | ||
MODULE M1 | ||
INTEGER, PARAMETER :: default_string_length=80 | ||
END MODULE M1 | ||
MODULE M2 | ||
USE M1 | ||
IMPLICIT NONE | ||
CONTAINS | ||
FUNCTION F1(a,b,c,d) RESULT(RES) | ||
CHARACTER(LEN=default_string_length), OPTIONAL :: a,b,c,d | ||
LOGICAL :: res | ||
END FUNCTION F1 | ||
END MODULE M2 | ||
|
||
MODULE M3 | ||
USE M1 | ||
USE M2 | ||
IMPLICIT NONE | ||
CONTAINS | ||
SUBROUTINE S1 | ||
CHARACTER(LEN=default_string_length) :: a,b | ||
LOGICAL :: L1 | ||
INTEGER :: i | ||
DO I=1,10 | ||
L1=F1(a,b) | ||
ENDDO | ||
END SUBROUTINE | ||
END MODULE M3 | ||
|
||
USE M3 | ||
CALL S1 | ||
END | ||
|
||
! { dg-final { cleanup-modules "m1 m2 m3" } } |