------- Comment #10 from jakub at gcc dot gnu dot org 2009-04-02 10:18 ------- No, please don't ever add -m64 or -m32 to dg-options, that is something the tester decides on in how it invokes make check. If a test is specific to -m64 or -m32, you should be using ilp32 or lp64 etc. effective target requirements, but in this case there is nothing in the testcase that requires -m64, the test just passes for some targets and fails for others. Don't add -c, that's implicit for dg-do compile, you're adding it for second time. Also, I don't like the s/double precision/dimension/ change, the type of the vars should be if possible explicit when you aren't testing the Fortran FE. On x86_64-linux it fails with double precision, but also real, integer or integer*8 instead of double precision, just don't leave the explicit type out.
The testcase as is in #c3 fails on x86_64-linux and succeeds on i686-linux and RUNTESTFLAGS=--target_board=unix/-m32 on x86_64-linux, I guess on Darwin similarly, it will fail with RUNTESTFLAGS=--target_board=unix/-m64. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39595