From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13391 invoked by alias); 13 Dec 2001 17:06:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 13347 invoked by uid 71); 13 Dec 2001 17:06:00 -0000 Resent-Date: 13 Dec 2001 17:06:00 -0000 Resent-Message-ID: <20011213170600.13346.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, java-prs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, tromey@redhat.com Received:(qmail 12386 invoked by uid 61); 13 Dec 2001 17:02:10 -0000 Message-Id:<20011213170210.12385.qmail@sources.redhat.com> Date: Thu, 13 Dec 2001 09:06:00 -0000 From: tromey@redhat.com Reply-To: tromey@redhat.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.2 (1.1.1.1.2.21) Subject: libgcj/5103: jni.h sets java-exceptions X-SW-Source: 2001-12/txt/msg00795.txt.bz2 List-Id: >Number: 5103 >Category: libgcj >Synopsis: jni.h sets java-exceptions >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu Dec 13 09:06:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: Tom Tromey >Release: current cvs >Organization: >Environment: >Description: Right now our jni.h includes javaprims.h, which has this line: #pragma GCC java_exceptions This is bad if the user is trying to compile ordinary (non-CNI) C++ code. The fix here is to write jni.h in a way that doesn't assume you're using gcj. If we assume gcc we can still use the __mode__ extension for typedefs. Or, if we assume inttypes.h we can use another method. Failing that we'd have to introduce a platform-specific header. We'll also need a "gcj-compatible" mode so that the typedefs are omitted. That will let us continue to include our jni.h in jni.cc. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: