This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/40060] [4.5/4.6/4.7 Regression] casts loose alignment info
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 16 Jan 2012 14:01:18 +0000
- Subject: [Bug middle-end/40060] [4.5/4.6/4.7 Regression] casts loose alignment info
- Auto-submitted: auto-generated
- References: <bug-40060-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40060
--- Comment #12 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-16 14:01:18 UTC ---
Since 4.6
"For the middle-end the case to char* is not useless, ..."
is no longer true.
/* We rely on TER to compute accurate alignment information. */
if (!(optimize && flag_tree_ter))
return 0;
was also fixed in a conservative way (we do not assume any alignment
for that long long * argument).
There is a duplicate PR for this, PR43814, I suppose the original PPC
testcases still fail.