public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* java/8260: gcj -fprofile-arcs -ftest-coverage doesn't work
@ 2002-10-17 10:06 owen
0 siblings, 0 replies; 2+ messages in thread
From: owen @ 2002-10-17 10:06 UTC (permalink / raw)
To: gcc-gnats
>Number: 8260
>Category: java
>Synopsis: gcj -fprofile-arcs -ftest-coverage doesn't work
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Oct 17 10:06:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Owen O'Malley
>Release: gcj 3.2
>Organization:
>Environment:
redhat 7.3 linux x86 (2.4.18) smp
>Description:
gcj doesn't seem to support -fprofile-arcs:
gcj -fprofile-arcs -ftest-coverage -g --main=test test.java
test.java:
Internal compiler error: Error reporting routines re-entered.
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
gcj -fprofile-arcs -ftest-coverage -g --main=test test.java
>Fix:
none
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="test.java"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.java"
cHVibGljIGNsYXNzIHRlc3QgewoKICBwdWJsaWMgc3RhdGljIHZvaWQgbWFpbihTdHJpbmdbXSBh
cmdzKSB7CiAgICBTeXN0ZW0ub3V0LnByaW50bG4oIkhpIE93ZW4iKTsKICB9Cn0K
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: java/8260: gcj -fprofile-arcs -ftest-coverage doesn't work
@ 2002-10-17 12:46 Jeff Sturm
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Sturm @ 2002-10-17 12:46 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR java/8260; it has been noted by GNATS.
From: Jeff Sturm <jsturm@one-point.com>
To: owen@schwartz-omalley.com
Cc: gcc-gnats@gcc.gnu.org, <gcc-prs@gcc.gnu.org>, <gcc-bugs@gcc.gnu.org>,
<java-prs@gcc.gnu.org>
Subject: Re: java/8260: gcj -fprofile-arcs -ftest-coverage doesn't work
Date: Thu, 17 Oct 2002 15:42:02 -0400 (EDT)
On 17 Oct 2002 owen@schwartz-omalley.com wrote:
> gcj doesn't seem to support -fprofile-arcs:
>
> gcj -fprofile-arcs -ftest-coverage -g --main=test test.java
> test.java:
> Internal compiler error: Error reporting routines re-entered.
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
-fprofile-arcs is broken because the gcj frontend doesn't initialize
long_integer_type_node.
I've been using the following workaround, but haven't submitted since I'm
not sure it's the right thing to do. (I.e. is int_type_node or
long_type_node the correct size for it? These are java types, not C
types.)
Index: decl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/decl.c,v
retrieving revision 1.132
diff -u -r1.132 decl.c
--- decl.c 21 Sep 2002 02:19:44 -0000 1.132
+++ decl.c 17 Oct 2002 19:36:43 -0000
@@ -426,7 +426,7 @@
pushdecl (build_decl (TYPE_DECL, get_identifier ("byte"), byte_type_node));
short_type_node = make_signed_type (16);
pushdecl (build_decl (TYPE_DECL, get_identifier ("short"), short_type_node));
- int_type_node = make_signed_type (32);
+ long_integer_type_node = int_type_node = make_signed_type (32);
pushdecl (build_decl (TYPE_DECL, get_identifier ("int"), int_type_node));
long_type_node = make_signed_type (64);
pushdecl (build_decl (TYPE_DECL, get_identifier ("long"), long_type_node));
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-10-17 19:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-17 10:06 java/8260: gcj -fprofile-arcs -ftest-coverage doesn't work owen
2002-10-17 12:46 Jeff Sturm
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).