This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/28940] [4.0/4.1/4.2 Regression] address selection does not work correctly
- From: "bonzini at gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Oct 2006 12:47:16 -0000
- Subject: [Bug c/28940] [4.0/4.1/4.2 Regression] address selection does not work correctly
- References: <bug-28940-10833@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from bonzini at gnu dot org 2006-10-11 12:47 -------
For this, on i386-pc-linux-gnu, C and C++ give the exact (pessimized) same
code:
char a[10], b[10];
int f1(int i)
{
return a[i+1] + b[i+1];
}
That RTL address selection sucks is just a fact. :-)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28940