This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Expand fortran array bounds sizes to LONGEST
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Siddhesh Poyarekar <siddhesh at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 15 Oct 2012 15:25:55 +0200
- Subject: Re: [PATCH] Expand fortran array bounds sizes to LONGEST
- References: <20120821152540.013b4d99@spoyarek>
Hi Siddhesh,
On Tue, 21 Aug 2012 11:55:40 +0200, Siddhesh Poyarekar wrote:
> Attached patch does this expansion and also includes a test case that
> verifies that the problem is fixed. I have also verified on x86_64 that
> this patch does not cause any regressions.
[...]
> * gdb.fortran/array-bounds.exp: New test case.
> * gdb.fortran/array-bounds.f: New test case.
[...]
> + dimension foo(4294967296:4294967297)
> + dimension bar(-4294967297:-4294967296)
Sergio has found it FAILS with 32-bit i386 target (even on x86_64 with -m32).
I have filed for it now:
Invalid debug/ array bounds w/-fno-range-check and 32-bit target
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54934
It should be at least XFAILed for 32-bit targets. If GCC accepts it as
a valid bug GDB should provide a hand-modified pre-compiled .S file for i386.
One should re-check the GCC Bug state before checking this GDB part it.
Thanks,
Jan