public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: java/5876: jc1 crashes when targeting mingw32
@ 2002-03-18 11:34 tromey
0 siblings, 0 replies; 2+ messages in thread
From: tromey @ 2002-03-18 11:34 UTC (permalink / raw)
To: adam, bryce, gcc-bugs, gcc-prs, java-prs, jsturm, nobody, tromey
Synopsis: jc1 crashes when targeting mingw32
Responsible-Changed-From-To: unassigned->tromey
Responsible-Changed-By: tromey
Responsible-Changed-When: Mon Mar 18 11:34:30 2002
Responsible-Changed-Why:
I'm handling the administrivia.
State-Changed-From-To: open->closed
State-Changed-By: tromey
State-Changed-When: Mon Mar 18 11:34:30 2002
State-Changed-Why:
I'm checking in Alex's patch, which looks correct to me and which I verified by building a mingw32 toolchain.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5876
^ permalink raw reply [flat|nested] 2+ messages in thread
* java/5876: jc1 crashes when targeting mingw32
@ 2002-03-07 14:06 adam
0 siblings, 0 replies; 2+ messages in thread
From: adam @ 2002-03-07 14:06 UTC (permalink / raw)
To: gcc-gnats; +Cc: jsturm, bryce
>Number: 5876
>Category: java
>Synopsis: jc1 crashes when targeting mingw32
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Mar 07 14:06:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Adam Megacz
>Release: CVS as of 01-Mar-2002
>Organization:
>Environment:
Host: Linux, Target: mingw32
>Description:
jc1 segfaults thusly when targeting mingw32:
>How-To-Repeat:
Check out a fresh copy of gcc from CVS (01-Mar-2002 is known to contain the bug; that would be a good starting point). Configure with the following command, and 'make all-target-libjava'. The build will crash at some point.
../gcc/configure \
--prefix=$PREFIX \
--target=i686-pc-mingw32 \
--host=i686-pc-linux-gnu \
--enable-languages=c,c++,java \
--disable-nls \
--with-as=$PREFIX/i686-pc-mingw32/bin/as \
--with-ld=$PREFIX/i686-pc-mingw32/bin/ld \
--with-gnu-ld \
--with-gnu-as \
--enable-libgcj \
--enable-gc-type=boehm \
--disable-shared \
--enable-threads=win32 \
--disable-hash-synchronization \
--disable-interpreter \
--enable-sjlj-exceptions
>Fix:
Here's a patch from Jeff which was rejected by RTH because (according to him) "this is wrong, find out why."
*** winnt.c 2001/12/03 19:13:32 1.27
--- winnt.c 2002/02/02 16:39:32
***************
*** 110,116 ****
/* In the C++ frontend, DECL_CONTEXT for a method doesn't actually refer
to the containing class. So we look at the 'this' arg. */
! if (TREE_CODE (TREE_TYPE (decl)) == METHOD_TYPE)
{
/* Artificial methods are not affected by the import/export status of
their class unless they are virtual. */
--- 110,117 ----
/* In the C++ frontend, DECL_CONTEXT for a method doesn't actually refer
to the containing class. So we look at the 'this' arg. */
! if (TREE_TYPE (decl)
! && TREE_CODE (TREE_TYPE (decl)) == METHOD_TYPE)
{
/* Artificial methods are not affected by the import/export status of
their class unless they are virtual. */
***************
*** 381,387 ****
SYMBOL_REF_FLAG (XEXP (rtl, 0)) = 1;
}
! if (TREE_CODE (decl) == FUNCTION_DECL)
if (lookup_attribute ("stdcall",
TYPE_ATTRIBUTES (TREE_TYPE (decl))))
XEXP (DECL_RTL (decl), 0) =
--- 382,389 ----
SYMBOL_REF_FLAG (XEXP (rtl, 0)) = 1;
}
! if (TREE_CODE (decl) == FUNCTION_DECL
! && TREE_TYPE (decl))
if (lookup_attribute ("stdcall",
TYPE_ATTRIBUTES (TREE_TYPE (decl))))
XEXP (DECL_RTL (decl), 0) =
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-03-18 19:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-18 11:34 java/5876: jc1 crashes when targeting mingw32 tromey
-- strict thread matches above, loose matches on Subject: below --
2002-03-07 14:06 adam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).