open64-compiler / open64

open64 compiler
78 stars 29 forks source link

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

Open zqb-all opened 1 year ago

zqb-all commented 1 year ago

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)