aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2012-05-25 08:58:25 +0000
committerTristan Gingold <gingold@gcc.gnu.org>2012-05-25 08:58:25 +0000
commit4aa820fec744198ccdd2d0c4680a1c95c3cdc518 (patch)
tree802aa15a3135fa27d284d255c3dfce3dba4f3370
parentd656c9c5bde6a4c48b10861c9d5e3a2542396279 (diff)
downloadgcc-4aa820fec744198ccdd2d0c4680a1c95c3cdc518.zip
gcc-4aa820fec744198ccdd2d0c4680a1c95c3cdc518.tar.gz
gcc-4aa820fec744198ccdd2d0c4680a1c95c3cdc518.tar.bz2
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
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/i386/i386.c5
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.target/i386/large-frame.c10
4 files changed, 22 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index dff80d6..efb9536 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
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.
2012-05-25 Thomas Schwinge <thomas@codesourcery.com>
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 12719e2..e6f2b7e 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -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;
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index fc3ac5c..686de85 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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.
diff --git a/gcc/testsuite/gcc.target/i386/large-frame.c b/gcc/testsuite/gcc.target/i386/large-frame.c
new file mode 100644
index 0000000..2b6df1f
--- /dev/null
+++ b/gcc/testsuite/gcc.target/i386/large-frame.c
@@ -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);
+}