public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: szabo.daniel@dpg.hu To: gcc-gnats@gcc.gnu.org Subject: java/10878: miscompilation of boolean parameters from bytecode Date: Tue, 20 May 2003 08:16:00 -0000 [thread overview] Message-ID: <20030520081022.9536.qmail@sources.redhat.com> (raw) >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:
reply other threads:[~2003-05-20 8:16 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20030520081022.9536.qmail@sources.redhat.com \ --to=szabo.daniel@dpg.hu \ --cc=gcc-gnats@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).