public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] RISC-V: Report error if function declare with different
@ 2018-07-06  8:44 Kito Cheng
  2018-07-12 14:53 ` Kito Cheng
  0 siblings, 1 reply; 3+ messages in thread
From: Kito Cheng @ 2018-07-06  8:44 UTC (permalink / raw)
  To: GCC Patches, patches, Jim Wilson

[-- Attachment #1: Type: text/plain, Size: 795 bytes --]

Hi all:

This patch implemented TARGET_MERGE_DECL_ATTRIBUTES hook to check the
interrupter is all compatible, tested with rv32ima and rv64ima elf
toolchain.

gcc/ChangeLog
2018-07-06  Kito Cheng  <kito.cheng@gmail.com>

        * config/riscv/riscv.c (enum riscv_privilege_levels): Add UNKNOWN_MODE.
        (riscv_expand_epilogue): Add more assertion to check interrupt mode.
        (riscv_set_current_function): Extract getting interrupt type to new
        function.
        (riscv_get_interrupt_type): New function.
        (riscv_merge_decl_attributes): New function, checking interrupt type is
        same.
        (TARGET_MERGE_DECL_ATTRIBUTES): Define.

gcc/testsuite/ChangeLog
2018-07-06  Kito Cheng  <kito.cheng@gmail.com>

        * gcc.target/riscv/interrupt-conflict-mode.c: New.

[-- Attachment #2: 0001-RISC-V-Report-error-if-function-declare-with-differe.patch --]
[-- Type: application/x-patch, Size: 5541 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] RISC-V: Report error if function declare with different
  2018-07-06  8:44 [PATCH] RISC-V: Report error if function declare with different Kito Cheng
@ 2018-07-12 14:53 ` Kito Cheng
  2018-07-12 19:59   ` Jim Wilson
  0 siblings, 1 reply; 3+ messages in thread
From: Kito Cheng @ 2018-07-12 14:53 UTC (permalink / raw)
  To: GCC Patches, patches, Jim Wilson, Palmer Dabbelt

ping.
On Fri, Jul 6, 2018 at 4:38 PM Kito Cheng <kito.cheng@gmail.com> wrote:
>
> Hi all:
>
> This patch implemented TARGET_MERGE_DECL_ATTRIBUTES hook to check the
> interrupter is all compatible, tested with rv32ima and rv64ima elf
> toolchain.
>
> gcc/ChangeLog
> 2018-07-06  Kito Cheng  <kito.cheng@gmail.com>
>
>         * config/riscv/riscv.c (enum riscv_privilege_levels): Add UNKNOWN_MODE.
>         (riscv_expand_epilogue): Add more assertion to check interrupt mode.
>         (riscv_set_current_function): Extract getting interrupt type to new
>         function.
>         (riscv_get_interrupt_type): New function.
>         (riscv_merge_decl_attributes): New function, checking interrupt type is
>         same.
>         (TARGET_MERGE_DECL_ATTRIBUTES): Define.
>
> gcc/testsuite/ChangeLog
> 2018-07-06  Kito Cheng  <kito.cheng@gmail.com>
>
>         * gcc.target/riscv/interrupt-conflict-mode.c: New.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] RISC-V: Report error if function declare with different
  2018-07-12 14:53 ` Kito Cheng
@ 2018-07-12 19:59   ` Jim Wilson
  0 siblings, 0 replies; 3+ messages in thread
From: Jim Wilson @ 2018-07-12 19:59 UTC (permalink / raw)
  To: Kito Cheng; +Cc: GCC Patches, RISC-V Patches, Palmer Dabbelt

On Thu, Jul 12, 2018 at 7:53 AM, Kito Cheng <kito.cheng@gmail.com> wrote:
> ping.
> On Fri, Jul 6, 2018 at 4:38 PM Kito Cheng <kito.cheng@gmail.com> wrote:
>>
>> Hi all:
>>
>> This patch implemented TARGET_MERGE_DECL_ATTRIBUTES hook to check the
>> interrupter is all compatible, tested with rv32ima and rv64ima elf
>> toolchain.
>>
>> gcc/ChangeLog
>> 2018-07-06  Kito Cheng  <kito.cheng@gmail.com>
>>
>>         * config/riscv/riscv.c (enum riscv_privilege_levels): Add UNKNOWN_MODE.
>>         (riscv_expand_epilogue): Add more assertion to check interrupt mode.
>>         (riscv_set_current_function): Extract getting interrupt type to new
>>         function.
>>         (riscv_get_interrupt_type): New function.
>>         (riscv_merge_decl_attributes): New function, checking interrupt type is
>>         same.
>>         (TARGET_MERGE_DECL_ATTRIBUTES): Define.
>>
>> gcc/testsuite/ChangeLog
>> 2018-07-06  Kito Cheng  <kito.cheng@gmail.com>
>>
>>         * gcc.target/riscv/interrupt-conflict-mode.c: New.

Ok.

Committed.

Jim

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-07-12 19:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-06  8:44 [PATCH] RISC-V: Report error if function declare with different Kito Cheng
2018-07-12 14:53 ` Kito Cheng
2018-07-12 19:59   ` Jim Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).