This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/37651] __sync_bool_compare_and_swap creates wrong code with -fPIC



------- Comment #1 from pinskia at gcc dot gnu dot org  2008-09-25 21:36 -------
I get:
        xchgl   %ebx, %edi
        lock ; cmpxchg8b        (%esi)
        xchgl   %ebx, %edi

Which looks good.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37651


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]