[Bug target/37640] Misuse of __sync_lock_test_and_set causes ICE

2008-09-24 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2008-09-24 20:16 --- Something like this fixes the issue: Index: config/rs6000/rs6000.c === --- config/rs6000/rs6000.c (revision 140638) +++ config/rs6000/rs6000.c

[Bug target/37640] Misuse of __sync_lock_test_and_set causes ICE

2008-09-24 Thread anton at samba dot org
--- Comment #2 from anton at samba dot org 2008-09-24 20:07 --- After reading the gcc documentation I guess it is valid, and the 32bit lwarx/stwcx will overlap but not change surrounding memory. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37640

[Bug target/37640] Misuse of __sync_lock_test_and_set causes ICE

2008-09-24 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-09-24 19:55 --- How is this broken code? -- pinskia at gcc dot gnu dot org changed: What|Removed |Added C