This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/40803] [4.4 Regression] Optimization generates bad assembly causing compile to fail
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Jul 2009 15:47:57 -0000
- Subject: [Bug c/40803] [4.4 Regression] Optimization generates bad assembly causing compile to fail
- References: <bug-40803-17962@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from ubizjak at gmail dot com 2009-07-19 15:47 -------
BTW: Constraints in arch/x86/include/asm/uaccess_64.h from linux-2.6.31 are
wrong for all cases where mov is suffixed with "q", i.e.:
int __copy_to_user(void __user *dst, const void *src, unsigned size)
{
...
case 8:__put_user_asm(*(u64 *)src, (u64 __user *)dst,
ret, "q", "", "ir", 8);
return ret;
...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40803