-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
I'm porting an old amiga program
and when I created a sfd file with this Entry
void setlibtrig(doubles1,doubles2,doubles3,doublec1,doublec2,doublec3)(A0,A1,A2,D0,D1,D2)
It would fail when generation vbcc inlines with this command
fd2pragma --infile engine.sfd --to inline --special 70
After some debuging I found out that in
/* merge data register pairs for 64-bit argument types */
static void FindRegPairs(struct AmiPragma *ap, struct ClibData *cd)
it would handle it as a 64bit and try an alloc 2 regs for it..
so my temp fix was to add this too the IF check (in that function)
&& ( ! cd->Args[i].Flags & CPP_FLAG_POINTER )
Not sure if the correct way is
&& ( ! cd->Args[i].Flags & (CPP_FLAG_POINTER|CPP_FLAG_FUNCTION ))
Regards
René W. Olsen
Metadata
Metadata
Assignees
Labels
No labels