---
gcc/config/riscv/riscv.c | 4138 ++
1 file changed, 4138 insertions(+)
create mode 100644 gcc/config/riscv/riscv.c
diff --git a/gcc/config/riscv/riscv.c b/gcc/config/riscv/riscv.c
new file mode 100644
index 000..834651f
--- /dev/null
+++ b/gcc/
---
gcc/config/riscv/riscv.c | 4138 ++
1 file changed, 4138 insertions(+)
create mode 100644 gcc/config/riscv/riscv.c
diff --git a/gcc/config/riscv/riscv.c b/gcc/config/riscv/riscv.c
new file mode 100644
index 000..834651f
--- /dev/null
+++ b/gcc/
On Tue, Jan 31, 2017 at 10:01 AM, Richard Henderson wrote:
> On 01/30/2017 04:53 PM, Andrew Waterman wrote:
>> The ISA spec references an out-of-date calling convention, and will be
>> removed in the next revision to orthogonalize the ABI from the ISA.
>> We are in the process of drafting a RISC-V
On 01/30/2017 04:53 PM, Andrew Waterman wrote:
> The ISA spec references an out-of-date calling convention, and will be
> removed in the next revision to orthogonalize the ABI from the ISA.
> We are in the process of drafting a RISC-V ELF psABI spec, which the
> GCC port targets.
> https://github.c
Thanks for the feedback, Richard. We've addressed the bulk of it, and
added some explanatory comments in the few cases where the current
implementation makes sense, but for less than obvious reasons. We
will submit a v2 patch set reflecting these changes in the next couple
of days.
A few respons
On 01/11/2017 06:30 PM, Palmer Dabbelt wrote:
+/* The largest number of operations needed to load an integer constant.
+ The worst case is LUI, ADDI, SLLI, ADDI, SLLI, ADDI, SLLI, ADDI,
+ but we may attempt and reject even worse sequences. */
+#define RISCV_MAX_INTEGER_OPS 32
Why would you
On Thu, Jan 12, 2017 at 1:38 PM, Joseph Myers wrote:
> On Wed, 11 Jan 2017, Palmer Dabbelt wrote:
>
>> +#include
>
> This is included in system.h, so don't include it here.
OK.
>
>> + error ("unknown cpu `%s' for -mtune", cpu_string);
>
> This is using very-old-style `' quotes. Diagnostics sh
On Wed, 11 Jan 2017, Palmer Dabbelt wrote:
> +#include
This is included in system.h, so don't include it here.
> + error ("unknown cpu `%s' for -mtune", cpu_string);
This is using very-old-style `' quotes. Diagnostics should use e.g. %qs
for quoting the output of a single % directive, or %<
This is split from the rest of the gcc submission so I can fit this
patch on the mailing list's 200KiB limit.
---
gcc/config/riscv/riscv.c | 4157 ++
1 file changed, 4157 insertions(+)
create mode 100644 gcc/config/riscv/riscv.c
diff --git a/gcc/config