Re: apparent bug in gcc
Brought to you by:
jmarshall
From: John M. <joh...@pa...> - 2000-04-26 00:33:30
|
> I was having a terrible time tracking down a bug that turns out to be > (apparently) a problem with the m68k gcc compiler. Sorry. I couldn't think of anything to help you track down this problem. Congratulations on finding it though! > Unfortunately it doesn't reproduce with the simple case, so > it would take time to pare down the file to reproduce it in a reasonable > amount of code. Actually I could reproduce the problem with your code: just stick it in a function with all the varables as parameters, and turning the optimizer on will cause the problem. > asm (" [...] > " : "=g" (result) : "a" (stackP) , "a" (procP) : > "d0", "d1", "d2", "a0", "a1" Use `asm volatile'. Oh, and tell Ron to read the documentation. :-) John "not a bug this time" |