[Vm-dev] NoDbgRegParms gcc bug? (german reader needed)

gettimothy gettimothy at zoho.com
Sun Apr 5 16:55:33 UTC 2015


Hi All.



The NoDbgRegParm non-expansion to __attribute__((regparm(0))) could be a gcc bug as described here:


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=15132     


and here.


https://gcc.gnu.org/ml/gcc/2004-03/msg00039.html


If anybody can read the german at the first link and verify, much appreciated.




For those who experience the bug, I have found a method to toggle it.


In Cog/src/vm/cointerp.h  at approximately line 9, adding the "noinline" attribute allows the compile while swapping them re-inroduces the bug: 





 #if !PRODUCTION && defined(__GNUC__) && !defined(NoDbgRegParms)
# define NoDbgRegParms __attribute__ ((regparm(0)))
# define NoDbgRegParms __attribute__ ((noinline))
#endif



(I am working in the build.linux32x86/squeak.cog.v3/build.assert/ directory)



thx,


tty

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20150405/ab80db12/attachment.htm


More information about the Vm-dev mailing list