While testing the gcc testsuite on all targets I found some problems on the riscv target.

- The riscv64-link.c contains a static last_hi. This does not work with threads. So sometimes:
  tcc_error("unsupported hi/lo pcrel reloc scheme");
  is called.

- The code:

typedef struct { void *p; } Ptr;
extern Ptr get_stuff (void);
int main(void) { Ptr p = get_stuff (); }

 does core dump with 'tcc -c'.
 Seems there is a problem with gfunc_sret.

- The code:

struct x { int a, b, c; };
extern struct x a ();
extern void b (struct x);
void foo () { a (); b (a ()); }

  does core dump with 'tcc -c -b'.

I do not understand the riscv code well enough to fix this.

Regards,

    Herman




_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to