re PR target/20621 (ICE: in change_address_1, at emit-rtl.c:1886)

PR target/20621
	* gcc.c-torture/execute/pr20621-1.c: New test.

From-SVN: r102601
This commit is contained in:
Richard Sandiford 2005-07-31 08:30:15 +00:00 committed by Richard Sandiford
parent d4d145acd4
commit 3601aa8ab0
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-07-31 Richard Sandiford <richard@codesourcery.com>
PR target/20621
* gcc.c-torture/execute/pr20621-1.c: New test.
2005-07-30 Thomas Koenig <Thomas.Koenig@online.de>
* gfortran.dg/comma_format_extension_4.f: Adjust length

View File

@ -0,0 +1,6 @@
/* When generating o32 MIPS PIC, main's $gp save slot was out of range
of a single load instruction. */
struct big { int i[sizeof (int) >= 4 && sizeof (void *) >= 4 ? 0x4000 : 4]; };
struct big gb;
int foo (struct big b, int x) { return b.i[x]; }
int main (void) { return foo (gb, 0) + foo (gb, 1); }