This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch ld]: Increase stack size to be 10 MB by default


On Sun, Jun 8, 2008 at 6:20 AM, Joseph S. Myers <joseph@codesourcery.com> wrote:
> On Sat, 7 Jun 2008, Brian Dessent wrote:
>
>> Kai Tietz wrote:
>>
>> >         * emultempl/pep.em (init): Reserved stack size
>> >         defaults to 10 MB.
>>
>> This used to default to 32MB, but it was reduced to 2MB because of the
>> concern that in multi-threaded apps every thread gets a stack of this
>> size by default:
>> <http://sourceware.org/ml/binutils/2001-06/msg00054.html>.  I understand
>> that the problem is that some gcc files or testcases require a larger
>> stack, but shouldn't that be handled in gcc and not by changing the
>> defaults of the linker?  I just verified that the Microsoft Visual
>> Studio 2005 linker does default to 1MB StackReserve as stated in that
>> message.
>
> FWIW, we have the following local GCC patch at CodeSourcery to increase
> the stack limit to 8MB for Windows-hosted compilers, but weren't sure
> about upstream acceptability, especially since changing config/mh-mingw
> affects all tools built from the src repository, not just GCC.  I suppose
> at least none of these tools are multi-threaded.
>
> config:
> 2008-05-05  Joseph Myers  <joseph@codesourcery.com>
>
>        * config/mh-mingw (LDFLAGS): Define.
>

The default of 8MB  for toolchain apps fine by me and allows closure of
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36218

Danny


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]