[PATCH] Expand fortran array bounds sizes to LONGEST

Jan Kratochvil jan.kratochvil@redhat.com
Mon Oct 15 13:26:00 GMT 2012

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

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.


More information about the Gdb-patches mailing list