diff options
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/xtensa/xtensa.c | 2 | ||||
-rw-r--r-- | gcc/config/xtensa/xtensa.opt | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c index 34e1326fb8e..76e872dddb3 100644 --- a/gcc/config/xtensa/xtensa.c +++ b/gcc/config/xtensa/xtensa.c @@ -2109,6 +2109,8 @@ override_options (void) if (flag_pic && TARGET_CONST16) error ("-f%s is not supported with CONST16 instructions", (flag_pic > 1 ? "PIC" : "pic")); + else if (TARGET_FORCE_NO_PIC) + flag_pic = 0; else if (XTENSA_ALWAYS_PIC) { if (TARGET_CONST16) diff --git a/gcc/config/xtensa/xtensa.opt b/gcc/config/xtensa/xtensa.opt index 0be75c4b69a..18f8bf3aae1 100644 --- a/gcc/config/xtensa/xtensa.opt +++ b/gcc/config/xtensa/xtensa.opt @@ -26,6 +26,10 @@ mfused-madd Target Report Mask(FUSED_MADD) Enable fused multiply/add and multiply/subtract FP instructions +mforce-no-pic +Target Report Mask(FORCE_NO_PIC) +Disable position-independent code (PIC) for use in OS kernel code + mlongcalls Target Use indirect CALLXn instructions for large programs |