--- Comment #6 from burnus at gcc dot gnu dot org 2008-06-18 05:33 ---
I get in valgrind (trunk revision 136838) with -m32 and -m64 on x86-64-linux:
==3145== Invalid read of size 4
==3145==at 0x804876D: check_integer4_rank1_ (test.f90:14)
==3145==by 0x80489E1: MAIN__ (test.f90:2
--- Comment #5 from jvdelisle at gcc dot gnu dot org 2008-06-18 04:57
---
OK, with r136820
$ gfc -m64 -fbounds-check pr36553.f90
$ ./a.out
At line 17 of file pr36553.f90
Fortran runtime error: Array bound mismatch, size mismatch for dimension 1 of
array 'expected' (0/33290630479208413
--- Comment #4 from jvdelisle at gcc dot gnu dot org 2008-06-18 04:27
---
When I revert just the files in my patch, the test case passes with -m32 and
segfaults on -m64 at run time. I don't think this is related to 136821
directly.
Looking at the -fdump-tree-original between -m32 and -
--- Comment #3 from jvdelisle at gcc dot gnu dot org 2008-06-18 00:18
---
I can reproduce this on x86-64-linux by using the -m32 option.
--
jvdelisle at gcc dot gnu dot org changed:
What|Removed |Added
-
--- Comment #2 from dominiq at lps dot ens dot fr 2008-06-17 22:04 ---
(In reply to comment #1)
> It runs fine for me on x86_ia64 - did you use any options?
I have set the build to i686-apple-darwin9. The bus error comes with default
(-m32 and no options), the test passes with -m64.
-
--- Comment #1 from pault at gcc dot gnu dot org 2008-06-17 19:33 ---
(In reply to comment #0)
> At revision 136821 the following code:
Dominique,
It runs fine for me on x86_ia64 - did you use any options?
I've CC'd Jerry, since 136821 was his.
Paul
--
pault at gcc dot gnu dot or