[Vm-dev] How to think about cogit.c compile error that is
consistent in both gnu an cmake builds
eliot.miranda at gmail.com
Thu Jul 31 17:39:16 UTC 2014
On Thu, Jul 31, 2014 at 6:48 AM, gettimothy <gettimothy at zoho.com> wrote:
> Hi Eliot.
> What/where sets the PRODUCTION and NoDbgRegParms variables in the #if
> !PRODUCTION && defined(__GNUC__) && !defined(NoDbgRegParms) check ?
PRODUCTION is defined in platforms/Cross/vm/sqAssert.h
The !defined(NoDbgRegParms) phrase allows someone to define an alternative
on the command line via a -D argument, so it allows the
# define NoDbgRegParms __attribute__ ((regparm (0)))
def to be a default, rather thna the only way.
> Are they set by 'somewhere' by various -D flags in the mvm? I have grepped
> to no avail.
> Here is my thinking at the moment. The compiler error is showing that the
> NoDbgRegParms is not being replaced.
> note: previous declaration of 'ssAllocateRequiredRegMaskupThrough' was here
> static void ssAllocateRequiredRegMaskupThrough(sqInt requiredRegsMask,
> sqInt stackPtr) *NoDbgRegParms*;
> error: conflicting types for 'ssAllocateRequiredReg'
> ssAllocateRequiredReg(sqInt requiredReg)
> So the question becomes "why not".
> Well, because the pre-processor (?) is not replacing them. Why? hmmmm....
Both gcc -v & gcc -E can help debug these kinds of things.
thx for your time.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Vm-dev