tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] some riscv problem


From: Herman ten Brugge
Subject: [Tinycc-devel] some riscv problem
Date: Mon, 6 Jul 2020 09:18:14 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0

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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]