This is the mail archive of the
gcc-regression@gcc.gnu.org
mailing list for the GCC project.
Re: GCC build failed for native with your patch on 2003-07-09T09:41:45Z.
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: Andrew Pinski <pinskia at physics dot uc dot edu>, Geoff Keating <geoffk at geoffk dot org>, gcc-regression at gcc dot gnu dot org, dave dot anglin at nrc-cnrc dot gc dot ca, jh at suse dot cz, konqueror at gmx dot de, neil at daikokuya dot co dot uk
- Date: Wed, 9 Jul 2003 18:43:44 -0400
- Subject: Re: GCC build failed for native with your patch on 2003-07-09T09:41:45Z.
On Wednesday, Jul 9, 2003, at 18:02 US/Eastern, Mark Mitchell wrote:
On Wed, 2003-07-09 at 13:52, Andrew Pinski wrote:
I can reproduce this with just an include to "ext/pool_allocator.h".
On what platform are you reproducing this? Does anyone have a
test-case
that I can use on i686-pc-linux-gnu, possibly after configuring in some
funny way?
I have a small (8 lines) test-case which fails on powerpc-apple-darwin
but it
does not fail on i686-pc-linux-gnu sorry (do not know why though).
---------------------------------
cut------------------------------------------
union _Obj {};
_Obj* __next_obj;
template<bool __threads, int __inst> void _S_refill()
{
for (int __i = 1; ; __i++)
__next_obj = __next_obj;
}
---------------------------------
cut------------------------------------------
cc1plus tep1.cc --param ggc-min-expand=0 --param ggc-min-heapsize=0 -v
Without the two param's it does not seg fault which force gc to run
always when
ggc_collect is called.
If I remove the templates or remove the for loop, gcc does not seg
fault.
Hopefully this test-case will help someone.
Thanks,
Andrew Pinski