[Bug target/29714] internal compiler error: in extract_insn, at recog.c:2084

2006-11-04 Thread phil dot sidler at attachmate dot com


--- Comment #2 from phil dot sidler at attachmate dot com  2006-11-04 19:07 
---
Created an attachment (id=12548)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12548&action=view)
preprocessed source gzipped


-- 


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



[Bug target/29714] internal compiler error: in extract_insn, at recog.c:2084

2006-11-04 Thread phil dot sidler at attachmate dot com


--- Comment #4 from phil dot sidler at attachmate dot com  2006-11-04 23:24 
---

gcc  -W -Wall -O3 -march=k8 -fomit-frame-pointer  


-- 


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



[Bug target/29714] internal compiler error: in extract_insn, at recog.c:2084

2006-11-06 Thread phil dot sidler at attachmate dot com


--- Comment #5 from phil dot sidler at attachmate dot com  2006-11-06 20:18 
---
Recreated with the following

#include 

main()
{
uint8_t area  = 1;
uint8_t oldval;
uint8_t res;

oldval = area;
res = __sync_val_compare_and_swap(&area, oldval, 128);
}

Note that constant values less that 128 in the 3rd parameter work OK.
Casting the 3rd parameter to be unsigned does not work.
Using a temporary variable instead of a constant does work, but only with
optimization turned off.


-- 


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



[Bug target/29714] internal compiler error: in extract_insn, at recog.c:2084

2006-11-06 Thread phil dot sidler at attachmate dot com


--- Comment #8 from phil dot sidler at attachmate dot com  2006-11-06 20:29 
---
I see you're right, this is probably fixed now.
This was on 
cc (GCC) 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)

thanks.


-- 


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



[Bug target/29714] internal compiler error: in extract_insn, at recog.c:2084

2006-11-06 Thread phil dot sidler at attachmate dot com


--- Comment #10 from phil dot sidler at attachmate dot com  2006-11-06 
21:58 ---
fyi, does work OK at
gcc (GCC) 4.1.2 20061028 (prerelease) (Debian 4.1.1-19)
cheers


-- 


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