Skip to content

Commit

Permalink
SoC/gd32vf103: Fix compiler warning for gd32vf103 using llvm
Browse files Browse the repository at this point in the history
Signed-off-by: Huaqi Fang <[email protected]>
  • Loading branch information
fanghuaqi committed Dec 29, 2023
1 parent 1158777 commit d17ec65
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions SoC/gd32vf103/Common/Source/GCC/intexc_gd32vf103.S
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@
.section .text.trap
/* In CLIC mode, the exeception entry must be 64bytes aligned */
.align 6
.global exc_entry
# gnu let .weak override .globl, but llvm will show warning
# see https://reviews.llvm.org/D90108
.weak exc_entry
exc_entry:
/* Save the caller saving registers (context) */
Expand Down Expand Up @@ -196,7 +197,8 @@ exc_entry:
.section .text.irq
/* In CLIC mode, the interrupt entry must be 4bytes aligned */
.align 2
.global irq_entry
# gnu let .weak override .globl, but llvm will show warning
# see https://reviews.llvm.org/D90108
.weak irq_entry
/* This label will be set to MTVT2 register */
irq_entry:
Expand Down Expand Up @@ -224,7 +226,8 @@ irq_entry:
mret

/* Default Handler for Exceptions / Interrupts */
.global default_intexc_handler
# gnu let .weak override .globl, but llvm will show warning
# see https://reviews.llvm.org/D90108
.weak default_intexc_handler
Undef_Handler:
default_intexc_handler:
Expand Down

0 comments on commit d17ec65

Please sign in to comment.