This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] RISC-V: Report error if function declare with different


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]