This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/42499] Bad register allocation in multiplication code by constant
- From: "sliao at google dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jan 2010 12:43:57 -0000
- Subject: [Bug rtl-optimization/42499] Bad register allocation in multiplication code by constant
- References: <bug-42499-17572@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from sliao at google dot com 2010-01-07 12:43 -------
Because:
"This bug can be more easily demonstrated with multiplication of tv_sec by 10
and tv_usec/ 1000 removed"
, the input program is:
#include <sys/time.h>
extern void get_time(struct timeval*);
void test(long long *res)
{
struct timeval tv;
get_time(&tv);
*res = tv.tv_sec * 10;
}
As a result, there is no load of tv.tv_usec in the code generated. Sorry for
the confusion.
--
sliao at google dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jingyu at google dot com,
| |dougkwan at google dot com,
| |carrot at google dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42499