diff options
author | Jakub Jelinek <jakub@redhat.com> | 2011-07-22 10:33:37 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2011-07-22 10:33:37 +0200 |
commit | d423df48237b2533a1781d177caf8419e1262d5b (patch) | |
tree | 2bd70c0d114f37575687da7d0ce9ef17bc9cbcc3 /include | |
parent | e05de0a910810a34fce108d85f0574a6be53b6e7 (diff) | |
download | gcc-d423df48237b2533a1781d177caf8419e1262d5b.zip gcc-d423df48237b2533a1781d177caf8419e1262d5b.tar.gz gcc-d423df48237b2533a1781d177caf8419e1262d5b.tar.bz2 |
re PR c++/49756 (g++ ICE)
PR c++/49756
* libiberty.h (stack_limit_increase): New prototype.
* stack-limit.c: New file.
* Makefile.in: Regenerate deps.
(CFILES): Add stack-limit.c.
(REQUIRED_OFILES): Add ./stack-limit.$(objext).
* configure.ac (checkfuncs): Add getrlimit and setrlimit.
(AC_CHECK_FUNCS): Likewise.
* configure: Regenerated.
* config.in: Regenerated.
* gcc.c (main): Call stack_limit_increase (64MB).
* toplev.c (toplev_main): Likewise.
From-SVN: r176617
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 5 | ||||
-rw-r--r-- | include/libiberty.h | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 655fc18..e641ae0 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2011-07-22 Jakub Jelinek <jakub@redhat.com> + + PR c++/49756 + * libiberty.h (stack_limit_increase): New prototype. + 2011-07-13 Sriraman Tallam <tmsriram@google.com> * plugin-api.h diff --git a/include/libiberty.h b/include/libiberty.h index 1cc7250..32eb83a 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -1,7 +1,7 @@ /* Function declarations for libiberty. Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, - 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. + 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. Note - certain prototypes declared in this header file are for functions whoes implementation copyright does not belong to the @@ -637,6 +637,9 @@ extern int strverscmp (const char *, const char *); /* Set the title of a process */ extern void setproctitle (const char *name, ...); +/* Increase stack limit if possible. */ +extern void stack_limit_increase (unsigned long); + #define ARRAY_SIZE(a) (sizeof (a) / sizeof ((a)[0])) /* Drastically simplified alloca configurator. If we're using GCC, |