java-patches@gcc.gnu.org
[Top] [All Lists]

Re: ATTN Windows Users: RFC - GCJ/MinGW and Thread-Safe Exception Hand

Subject: Re: ATTN Windows Users: RFC - GCJ/MinGW and Thread-Safe Exception Handling
From: Bryce McKinlay
Date: Tue, 04 Jul 2006 12:37:33 -0400
Ranjit Mathew wrote:
I misunderstood you - I think you meant the "startfile"
GCC spec string.

Thank you for suggesting it. I found a ready-made object file
like this in "crtmt.o" that the MinGW runtime already provides
(but GCC doesn't seem to use it AFAICT). This way I do not have
to worry about where to put this startup object file and how to
make GCC locate it during linking.

The attached patch implements your suggestion and resolves
the build issue while avoiding the dependency on mingwm10.dll.

It was tested via:

  1. an i686-pc-linux-gnu to i686-pc-mingw32 cross compiler,
  2. an i686-pc-mingw32 crossed-native compiler on i686-pc-linux-gnu,
  3. an i686-pc-linux-gnu native compiler.

OK to apply?

Do we have a bug about the thread memory leak on Windows? If not, please file one. The FIXME comment should also reference this.

Otherwise, this looks fine to me. Thanks.

Bryce

<Prev in Thread] Current Thread [Next in Thread>