[Vm-dev] NoDbgRegParms gcc bug? (german reader needed)
Max Leske
maxleske at gmail.com
Sun Apr 5 18:19:04 UTC 2015
> On 05 Apr 2015, at 19:27, vm-dev-request at lists.squeakfoundation.org wrote:
>
> 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 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=15132>
Yes, looks like it (I’m a german speaker).
>
>
> and here.
>
>
> https://gcc.gnu.org/ml/gcc/2004-03/msg00039.html <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/35f9a7ad/attachment.htm
More information about the Vm-dev
mailing list