This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/10409] [ARM] "__attribute__((const))" apparently not working
- From: "dhazeghi at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jun 2003 00:22:31 -0000
- Subject: [Bug optimization/10409] [ARM] "__attribute__((const))" apparently not working
- References: <20030415035601.10409.gonz@ratloop.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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.