-
- Downloads
gcc: xtensa: add -mabi option for call0/windowed ABI
2020-06-15 Max Filippov <jcmvbkbc@gmail.com> gcc/ * config/xtensa/elf.h (ASM_SPEC, LINK_SPEC): Pass ABI switch to assembler/linker. * config/xtensa/linux.h (ASM_SPEC, LINK_SPEC): Ditto. * config/xtensa/uclinux.h (ASM_SPEC, LINK_SPEC): Ditto. * config/xtensa/xtensa.c (xtensa_option_override): Initialize xtensa_windowed_abi if needed. * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI_DEFAULT): New macro. (TARGET_WINDOWED_ABI): Redefine to xtensa_windowed_abi. * config/xtensa/xtensa.opt (xtensa_windowed_abi): New target option variable. (mabi=call0, mabi=windowed): New options. * doc/invoke.texi: Document new -mabi= Xtensa-specific options. gcc/testsuite/ * gcc.target/xtensa/mabi-call0.c: New test. * gcc.target/xtensa/mabi-windowed.c: New test. libgcc/ * configure: Regenerate. * configure.ac: Use AC_COMPILE_IFELSE instead of manual preprocessor invocation to check for __XTENSA_CALL0_ABI__.
Showing
- gcc/config/xtensa/elf.h 6 additions, 2 deletionsgcc/config/xtensa/elf.h
- gcc/config/xtensa/linux.h 6 additions, 2 deletionsgcc/config/xtensa/linux.h
- gcc/config/xtensa/uclinux.h 7 additions, 2 deletionsgcc/config/xtensa/uclinux.h
- gcc/config/xtensa/xtensa.c 3 additions, 0 deletionsgcc/config/xtensa/xtensa.c
- gcc/config/xtensa/xtensa.h 2 additions, 1 deletiongcc/config/xtensa/xtensa.h
- gcc/config/xtensa/xtensa.opt 11 additions, 0 deletionsgcc/config/xtensa/xtensa.opt
- gcc/doc/invoke.texi 25 additions, 1 deletiongcc/doc/invoke.texi
- gcc/testsuite/gcc.target/xtensa/mabi-call0.c 13 additions, 0 deletionsgcc/testsuite/gcc.target/xtensa/mabi-call0.c
- gcc/testsuite/gcc.target/xtensa/mabi-windowed.c 13 additions, 0 deletionsgcc/testsuite/gcc.target/xtensa/mabi-windowed.c
- libgcc/configure 11 additions, 13 deletionslibgcc/configure
- libgcc/configure.ac 6 additions, 8 deletionslibgcc/configure.ac
Loading
Please register or sign in to comment