From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23209 invoked by alias); 2 Jun 2003 16:33:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 23161 invoked by uid 48); 2 Jun 2003 16:33:46 -0000 Date: Mon, 02 Jun 2003 16:33:00 -0000 Message-ID: <20030602163346.23159.qmail@sources.redhat.com> From: "pinskia@physics.uc.edu" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20030520081601.10878.szabo.daniel@dpg.hu> References: <20030520081601.10878.szabo.daniel@dpg.hu> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug java/10878] miscompilation of boolean parameters from bytecode X-Bugzilla-Reason: CC X-SW-Source: 2003-06/txt/msg00350.txt.bz2 List-Id: PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10878 ------- Additional Comments From pinskia@physics.uc.edu 2003-06-02 16:33 ------- I do not think it matters because because gcc always will load in it by a byte. What do you think? _ZN3bug2g1Eb: pushl %ebp movl %esp, %ebp ; ebp = esp subl $40, %esp ; esp - = $40 movl 12(%ebp), %eax ; eax = 12(ebp) movb %al, -1(%ebp) ; -1(ebp) = al movl 8(%ebp), %eax ; eax = 8(ebp) movl %eax, -12(%ebp) ; -12(ebp) = eax cmpl $0, -12(%ebp) jne .L12 call _Jv_ThrowNullPointerException .L12: movl -12(%ebp), %eax ; eax = -12(ebp) movl %eax, (%esp) ;(esp) = eax call _ZN3bug2f1Ev movzbl %al, %eax eax = extend (al) testl %eax, %eax jne .L13 jmp .L9 .L13: movl $1, -8(%ebp) -8(ebp) = 1 .L9: movl 8(%ebp), %eax eax = 8(ebp) movl -8(%ebp), %edx edx = -8(ebp) movl %edx, -16(%ebp) -16(ebp) = edx movl %eax, -20(%ebp) -20(ebp) = eax cmpl $0, -20(%ebp) jne .L15 call _Jv_ThrowNullPointerException .L15: movl -16(%ebp), %eax eax = -16(ebp) movl %eax, 4(%esp) 4(esp) = eax movl -20(%ebp), %edx -20(ebp) = edx movl %edx, (%esp) (esp) = edx call _ZN3bug2g2Eb leave ret ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.