i386.c (struct ix86_frame): Remove unused frame field.

gcc/
2012-05-25  Tristan Gingold  <gingold@adacore.com>

	* config/i386/i386.c (struct ix86_frame): Remove unused frame field.
	(ix86_compute_frame_layout): Fix type of stack_alignment_needed
	and preferred_alignment.

gcc/testsuite
2012-05-25  Tristan Gingold  <gingold@adacore.com>

	* gcc.target/i386/large-frame.c: New.

From-SVN: r187873
This commit is contained in:
Tristan Gingold 2012-05-25 08:58:25 +00:00 committed by Tristan Gingold
parent d656c9c5bd
commit 4aa820fec7
4 changed files with 22 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2012-05-25 Tristan Gingold <gingold@adacore.com>
* config/i386/i386.c (struct ix86_frame): Remove unused frame field.
(ix86_compute_frame_layout): Fix type of stack_alignment_needed
and preferred_alignment.
2012-05-25 Tristan Gingold <gingold@adacore.com>
* common/config/ia64/ia64-common.c (ia64_except_unwind_info): Fix typo.

View File

@ -2408,7 +2408,6 @@ struct ix86_frame
int va_arg_size;
int red_zone_size;
int outgoing_arguments_size;
HOST_WIDE_INT frame;
/* The offsets relative to ARG_POINTER. */
HOST_WIDE_INT frame_pointer_offset;
@ -8951,9 +8950,9 @@ ix86_builtin_setjmp_frame_value (void)
static void
ix86_compute_frame_layout (struct ix86_frame *frame)
{
unsigned int stack_alignment_needed;
unsigned HOST_WIDE_INT stack_alignment_needed;
HOST_WIDE_INT offset;
unsigned int preferred_alignment;
unsigned HOST_WIDE_INT preferred_alignment;
HOST_WIDE_INT size = get_frame_size ();
HOST_WIDE_INT to_allocate;

View File

@ -1,3 +1,7 @@
2012-05-25 Tristan Gingold <gingold@adacore.com>
* gcc.target/i386/large-frame.c: New.
2012-05-24 Pat Haugen <pthaugen@us.ibm.com>
* gcc.target/powerpc/lhs-1.c: New.
* gcc.target/powerpc/lhs-2.c: New.

View File

@ -0,0 +1,10 @@
/* { dg-do compile } */
/* { dg-require-effective-target lp64 } */
/* { dg-final { scan-assembler "-429496" } } */
extern void dump (int *buf, int a);
void func (int a)
{
int bigbuf[1 << 30];
dump (bigbuf, a);
}