[Bug c/40803] [4.4 Regression] Optimization generates bad assembly causing compile to fail

2009-07-19 Thread steven at gcc dot gnu dot org
--- Comment #6 from steven at gcc dot gnu dot org 2009-07-19 22:08 --- *sigh* another kernel bug where kernel developers just immediately look to blame gcc instead of trying to see their own mistake... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40803

[Bug c/40803] [4.4 Regression] Optimization generates bad assembly causing compile to fail

2009-07-19 Thread ubizjak at gmail dot com
--- Comment #5 from ubizjak at gmail dot com 2009-07-19 20:30 --- FYI, patch for linux kernel is at [1]. [1] http://marc.info/?l=linux-kernel&m=124801961215396&w=2 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40803

[Bug c/40803] [4.4 Regression] Optimization generates bad assembly causing compile to fail

2009-07-19 Thread ubizjak at gmail dot com
--- 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) { ...

[Bug c/40803] [4.4 Regression] Optimization generates bad assembly causing compile to fail

2009-07-19 Thread ubizjak at gmail dot com
--- Comment #3 from ubizjak at gmail dot com 2009-07-19 15:14 --- "i" is not correct constraint to immediate operand for sign-extending movq. Use "e". -- ubizjak at gmail dot com changed: What|Removed |Added ---