From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21608 invoked by alias); 20 May 2003 08:16: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 21582 invoked by uid 71); 20 May 2003 08:16:01 -0000 Resent-Date: 20 May 2003 08:16:01 -0000 Resent-Message-ID: <20030520081601.21581.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) 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, szabo.daniel@dpg.hu Received: (qmail 9537 invoked by uid 48); 20 May 2003 08:10:22 -0000 Message-Id: <20030520081022.9536.qmail@sources.redhat.com> Date: Tue, 20 May 2003 08:16:00 -0000 From: szabo.daniel@dpg.hu Reply-To: szabo.daniel@dpg.hu To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: java/10878: miscompilation of boolean parameters from bytecode X-SW-Source: 2003-05/txt/msg02152.txt.bz2 List-Id: >Number: 10878 >Category: java >Synopsis: miscompilation of boolean parameters from bytecode >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Tue May 20 08:16:01 UTC 2003 >Closed-Date: >Last-Modified: >Originator: szabo.daniel@dpg.hu >Release: 3.2.2 >Organization: >Environment: mingw, linux >Description: Boolean parameter will be misinterpreted when compiled from bytecode rather than from java source. See in assembly (when compiled without any optimizations): movb %al, -1(%ebp) then referencing the variable: movl -8(%ebp), %edx >How-To-Repeat: Compile the java source to bytecode, then compile it with gcj to produce assembly listing. Watch for the parameter representation of the boolean variable in the stack. >Fix: Compile from java source OR avoid booleans (use ints instead). Note: java bytecode treats booleans as ints already. They shouldn't be treaten like booleans, unless you want packed boolean arrays, which occurs very very rarely. >Release-Note: >Audit-Trail: >Unformatted: