* gcc.c-torture/execute/pr20621-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102601
138bc75d-0d04-0410-961f-
82ee72b054a4
+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
--- /dev/null
+/* 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); }