From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22491 invoked by alias); 4 Jun 2003 00:22:31 -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 22478 invoked by uid 48); 4 Jun 2003 00:22:31 -0000 Date: Wed, 04 Jun 2003 00:22:00 -0000 Message-ID: <20030604002231.22476.qmail@sources.redhat.com> From: "dhazeghi@yahoo.com" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20030415035601.10409.gonz@ratloop.com> References: <20030415035601.10409.gonz@ratloop.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug optimization/10409] [ARM] "__attribute__((const))" apparently not working X-Bugzilla-Reason: CC X-SW-Source: 2003-06/txt/msg00516.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=10409 dhazeghi@yahoo.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING GCC build triplet| |i686-pc-cygwin GCC host triplet| |i686-pc-cygwin GCC target triplet| |arm-elf ------- Additional Comments From dhazeghi@yahoo.com 2003-06-04 00:22 ------- Hello, with gcc 3.2.3 and 3.3 branch, I see the seem behavior that you do. With gcc mainline, I only get one call to pure_func. Would it be possible for you to check whether this works for you too with gcc mainline (cvs), or to confirm whether the following assembly is correct: .file "test.c" .text .align 2 .global test .type test, %function test: @ args = 0, pretend = 0, frame = 0 @ frame_needed = 1, uses_anonymous_args = 0 mov ip, sp stmfd sp!, {fp, ip, lr, pc} sub fp, ip, #4 bl pure_func mov r0, r0, asl #1 ldmea fp, {fp, sp, pc} .size test, .-test .ident "GCC: (GNU) 3.4 20030603 (experimental)" Thanks, Dara ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.