Skip to content

Handling of ' DOUBLE * ' pointers #8

@rolsen74

Description

@rolsen74

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions