Skip to content

Xcalcc: CastToTargetType: can't handle other src-type now #36

@zqb-all

Description

@zqb-all

source code

#include <sys/time.h>
double foo()
{
        struct timeval tp;
        struct timezone tzp;
        int i;
        i = gettimeofday(&tp,&tzp);
        return tp.tv_sec;
}

cmd

xcalcc -c a.c

error log:

2023-10-28 11:29:37,337 - xcalcc - ERROR - !!! Log: (null) :Translating mysecond(0)

!!! DevWarn: mysecond :Stmt2llvm: ingore PRAGMA stmt now

### Assertion failure ../../../../osprey/ir_tools/whirl2llvm.cxx:1985:
### CastToTargetType: can't handle other src-type now
### For simplemain.O in mysecond (xcalcc:583)

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