This is the mail archive of the gcc-regression@gcc.gnu.org mailing list for the GCC 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: 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


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