This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/32698] [4.3 regression] inefficient pointer expression
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jul 2007 11:48:30 -0000
- Subject: [Bug tree-optimization/32698] [4.3 regression] inefficient pointer expression
- References: <bug-32698-14001@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #14 from rguenth at gcc dot gnu dot org 2007-07-20 11:48 -------
For current mainline I get (-O2)
foo:
pushl %ebp
movl %esp, %ebp
movl 8(%ebp), %ecx
movl 12(%ebp), %edx
popl %ebp
movl 8(%ecx,%edx,4), %eax
addl 4(%ecx,%edx,4), %eax
addl 12(%ecx,%edx,4), %eax
ret
Can you be more specific about what processor tuning you are using? That is,
can you provide the output of adding -v to the gcc commandline that produces
the mainline results in the last comment?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32698