summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authormrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>2015-01-01 01:44:11 +0000
committermrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>2015-01-01 01:44:11 +0000
commitd57044f22a371f74e26c7ee83b3b9149d2435747 (patch)
tree7ae9e44d9415fda48d9ff0f110268f84166b8f95 /gcc
parentd7a39feac282e76c74e7e8cace461cffc2eeac0f (diff)
downloadgcc-d57044f22a371f74e26c7ee83b3b9149d2435747.tar.gz
2014-12-31 James Bowman <james.bowman@ftdichip.com>
* gcc.c-torture/execute/pr20621-1.c: Pass if stack < 64K. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@219134 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/pr20621-1.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index c831ce348af..3e8fdc2ea32 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2014-12-31 James Bowman <james.bowman@ftdichip.com>
+
+ * gcc.c-torture/execute/pr20621-1.c: Pass if stack < 64K.
+
2014-12-31 David Edelsohn <dje.gcc@gmail.com>
* lib/target-supports.exp (add_options_for_tls): Prepend pthread
diff --git a/gcc/testsuite/gcc.c-torture/execute/pr20621-1.c b/gcc/testsuite/gcc.c-torture/execute/pr20621-1.c
index 79901871d57..57b3df764b7 100644
--- a/gcc/testsuite/gcc.c-torture/execute/pr20621-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/pr20621-1.c
@@ -3,4 +3,8 @@
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]; }
+#if defined(STACK_SIZE) && STACK_SIZE <= 0x10000
+int main (void) { return 0; }
+#else
int main (void) { return foo (gb, 0) + foo (gb, 1); }
+#endif