This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: jc1, Windows and alloca built-in
- From: Adam Megacz <patches at lists dot megacz dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: 02 Feb 2002 22:59:29 -0800
- Subject: Re: RFC: jc1, Windows and alloca built-in
- Organization: Myself
- References: <1012719564.1789.63.camel@dhcppc2>
Anthony Green <green@redhat.com> writes:
> Adam recently reported a failure with jc1 on Windows (stack trace below).
> I've appended a work-around patch below, but I don't understand it.
> Perhaps it is completely wrong. In any case, jc1 was failing because
> TREE_TYPE() of the built-in alloca results in NULL. My patch simply protects
> us from doing anything silly with that NULL. Is it correct?
Additional note: I can't say if it's correct or not, but I have
confirmed that the patched jc1 no longer segfaults, and can
successfully compile all the java code in libgcj.
- a