From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15449 invoked by alias); 17 May 2003 03: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 15432 invoked by uid 71); 17 May 2003 03:06:01 -0000 Date: Sat, 17 May 2003 03:06:00 -0000 Message-ID: <20030517030601.15431.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Dara Hazeghi Subject: Re: target/6040: [ARM] interrupt attribute generats wrong code (3.1-cvs) Reply-To: Dara Hazeghi X-SW-Source: 2003-05/txt/msg01928.txt.bz2 List-Id: The following reply was made to PR target/6040; it has been noted by GNATS. From: Dara Hazeghi To: tori@unhappy.mine.nu, gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org Cc: Subject: Re: target/6040: [ARM] interrupt attribute generats wrong code (3.1-cvs) Date: Fri, 16 May 2003 19:59:20 -0700 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit- trail&database=gcc&pr=6040 Hello, here's another bug against a fairly old version of gcc. Gcc 3.3 produces: .file "junk.c" .text .align 2 .global foo .type foo, %function foo: @ Interrupt Service Routine. @ args = 0, pretend = 0, frame = 4 @ frame_needed = 1, uses_anonymous_args = 0 str ip, [sp, #-4]! mov ip, sp sub lr, lr, #4 stmfd sp!, {r3, fp, ip, lr, pc} sub fp, ip, #4 sub sp, sp, #4 mov r3, #0 str r3, [fp, #-24] ldmea fp, {r3, fp, ip, pc}^ .size foo, .-foo .ident "GCC: (GNU) 3.3 20030508 (prerelease)" with gcc mainline: .file "junk.c" .text .align 2 .global foo .type foo, %function foo: @ Interrupt Service Routine. @ args = 0, pretend = 0, frame = 4 @ frame_needed = 1, uses_anonymous_args = 0 str ip, [sp, #-4]! mov ip, sp stmfd sp!, {r3, fp, ip, lr, pc} sub fp, ip, #4 sub sp, sp, #4 mov r3, #0 str r3, [fp, #-24] ldmea fp, {r3, fp, sp, lr} ldmfd sp!, {ip} subs pc, lr, #4 .size foo, .-foo .ident "GCC: (GNU) 3.4 20030508 (experimental)" can you determine if this is correct? Thanks, Dara