diff options
author | Jakub Jelinek <jakub@redhat.com> | 2011-08-18 16:27:38 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2011-08-18 16:27:38 +0200 |
commit | 2a63286d368fe6b627912d8db5c879e14400c72c (patch) | |
tree | b2cf004f25491205e557f858e903fd9643f702fd | |
parent | a2f3eae24de6e78302ea2b10c3f57635ca954ec2 (diff) | |
download | gcc-2a63286d368fe6b627912d8db5c879e14400c72c.zip gcc-2a63286d368fe6b627912d8db5c879e14400c72c.tar.gz gcc-2a63286d368fe6b627912d8db5c879e14400c72c.tar.bz2 |
re PR target/50092 (internal compiler error: in elimination_costs_in_insn, at reload1.c:3633)
PR target/50092
* config/i386/i386.c (assign_386_stack_local): Call validize_mem
on the result before returning it.
* gcc.dg/torture/pr50092.c: New test.
From-SVN: r177859
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 4 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/pr50092.c | 15 |
4 files changed, 26 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d7df631..1b5bc6c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2011-08-18 Jakub Jelinek <jakub@redhat.com> + PR target/50092 + * config/i386/i386.c (assign_386_stack_local): Call validize_mem + on the result before returning it. + PR debug/50017 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi) is a debug stmt, use location of the first non-debug stmt after it. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 3356cfd..fe3ceff 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -21787,7 +21787,7 @@ assign_386_stack_local (enum machine_mode mode, enum ix86_stack_slot n) for (s = ix86_stack_locals; s; s = s->next) if (s->mode == mode && s->n == n) - return copy_rtx (s->rtl); + return validize_mem (copy_rtx (s->rtl)); s = ggc_alloc_stack_local_entry (); s->n = n; @@ -21796,7 +21796,7 @@ assign_386_stack_local (enum machine_mode mode, enum ix86_stack_slot n) s->next = ix86_stack_locals; ix86_stack_locals = s; - return s->rtl; + return validize_mem (s->rtl); } /* Calculate the length of the memory address in the instruction encoding. diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fa05947..76e8554 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-08-18 Jakub Jelinek <jakub@redhat.com> + + PR target/50092 + * gcc.dg/torture/pr50092.c: New test. + 2011-08-18 Tobias Burnus <burnus@net-b.de> PR fortran/50109 diff --git a/gcc/testsuite/gcc.dg/torture/pr50092.c b/gcc/testsuite/gcc.dg/torture/pr50092.c new file mode 100644 index 0000000..c8a929b --- /dev/null +++ b/gcc/testsuite/gcc.dg/torture/pr50092.c @@ -0,0 +1,15 @@ +/* PR target/50092 */ +/* { dg-do compile { target lp64 } } */ + +volatile int v; + +void bar (long double); +void baz (_Complex long double *); + +void +foo (void) +{ + _Complex long double w[100000000]; + bar ((long double) v / 2147483648.0); + baz (w); +} |