From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21154 invoked by alias); 5 Mar 2002 21:16:02 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Received: (qmail 21050 invoked by uid 71); 5 Mar 2002 21:16:00 -0000 Resent-Date: 5 Mar 2002 21:16:00 -0000 Resent-Message-ID: <20020305211600.21049.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, hin@alma.com Received:(qmail 5948 invoked from network); 5 Mar 2002 21:08:14 -0000 Received: from unknown (HELO van-halen.alma.com) (64.205.243.34) by sources.redhat.com with SMTP; 5 Mar 2002 21:08:14 -0000 Received: (from hin@localhost) by van-halen.alma.com (8.9.3/8.9.3) id QAA04952; Tue, 5 Mar 2002 16:08:13 -0500 Message-Id:<200203052108.QAA04952@van-halen.alma.com> Date: Tue, 05 Mar 2002 13:16:00 -0000 From: hin@alma.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:3.113 Subject: libgcj/5846: gcj compile fails on comments-only file X-SW-Source: 2002-q1/txt/msg00123.txt.bz2 List-Id: >Number: 5846 >Category: libgcj >Synopsis: gcj compile fails on comments-only file >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: rejects-legal >Submitter-Id: net >Arrival-Date: Tue Mar 05 13:16:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: John K. Hinsdale >Release: 3.0.4 >Organization: Alma Mater Software, Inc. >Environment: System: Linux van-halen 2.4.10 #1 Mon Dec 24 07:29:46 EST 2001 i686 unknown Architecture: i686 host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: i686-pc-linux-gnu configured with: ./configure >Description: When compiling a Java source file that consists only of comments, gcj gets a segmentation fault. >How-To-Repeat: Make a java source file with one or more lines of comments: // This is a comment in myfile.java /* This is also a comment */ When you compile it, e.g.,: gcj -c -g myfile.java gcj will seg fault. >Fix: Workaround: Don't include the file in one's compilation. However, a big system might want to be configured in such a away that results in source files ending up having all comments. It's convenient at times to comment out an entire file when developing. >Release-Note: >Audit-Trail: >Unformatted: