This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/29415] [4.2] bad code reordering around inline asm block
- From: "christophe at saout dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Oct 2006 15:40:02 -0000
- Subject: [Bug tree-optimization/29415] [4.2] bad code reordering around inline asm block
- References: <bug-29415-10561@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from christophe at saout dot de 2006-10-10 15:40 -------
Created an attachment (id=12404)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12404&action=view)
preprocessed pthread_mutex_lock.c causing the miscompiled code
Call with "gcc -O2 -o test.o -c pthread_mutex_lock.c" on i686 and look at the
beginning of the generated __pthread_mutex_lock function, around the first
cmpxchg call.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29415