Skip to content

Commit

Permalink
Update porting.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Aug 6, 2022
1 parent c865500 commit 6eb176b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ cmake-build-debug
/ide/st_clion/cmake_install.cmake
/ide/st_clion/st
/ide/st_clion/Testing/
.DS_Store

15 changes: 15 additions & 0 deletions tools/porting/porting.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ int main(int argc, char** argv)
#ifdef __loongarch__
printf("__loongarch__: %d, __loongarch64 :%d\n", __loongarch__, __loongarch64);
#endif
#ifdef __riscv
printf("__riscv: %d\n", __riscv);
#endif
#ifdef __arm__
printf("__arm__: %d\n", __arm__);
#endif
#ifdef __aarch64__
printf("__aarch64__: %d\n", __aarch64__);
#endif

printf("\nCompiler specs:\n");
#ifdef __GLIBC__
Expand Down Expand Up @@ -71,6 +80,12 @@ int foo_return_one_arg1(int r0)
}

#ifdef __linux__

#if defined(__riscv) || defined(__arm__) || defined(__aarch64__)
void print_jmpbuf() {
}
#endif

#ifdef __mips__
void print_jmpbuf()
{
Expand Down

0 comments on commit 6eb176b

Please sign in to comment.