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

Andres Valloud avalloud at smalltalk.comcastbiz.net
Sun Apr 5 18:52:23 UTC 2015


Just out of curiosity, which version of GCC are you using?

On 4/5/15 9:55 , gettimothy 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
>
> 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


More information about the Vm-dev mailing list