This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/34916] gcc.c-torture/execute/pr27364.c fails with -O1, -O2 and -Os
- From: "hutchinsonandy at aim dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jan 2008 00:26:19 -0000
- Subject: [Bug target/34916] gcc.c-torture/execute/pr27364.c fails with -O1, -O2 and -Os
- References: <bug-34916-15663@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from hutchinsonandy at aim dot com 2008-01-22 00:26 -------
Created an attachment (id=14992)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14992&action=view)
dce pass RTL dump file (bfore combine)
Posted two RTL dump file of smaller testcase:
long f2(long number_of_digits_to_use)
{
return ( number_of_digits_to_use * 11L ) ;
}
This faile GCC head 4.3.0 of 13/12/2007
Combine decide load of constant is not needed. Seem to happen after combine
tries combining load with multiply (ie multiply by constant).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34916