aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/sh/linux.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/sh/linux.h')
-rw-r--r--gcc/config/sh/linux.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/config/sh/linux.h b/gcc/config/sh/linux.h
index 8bc7de83ab0..9e8f32d06d1 100644
--- a/gcc/config/sh/linux.h
+++ b/gcc/config/sh/linux.h
@@ -39,8 +39,7 @@ along with GCC; see the file COPYING3. If not see
#undef TARGET_DEFAULT
#define TARGET_DEFAULT \
- (TARGET_CPU_DEFAULT | MASK_USERMODE | TARGET_ENDIAN_DEFAULT \
- | TARGET_OPT_DEFAULT)
+ (TARGET_CPU_DEFAULT | TARGET_ENDIAN_DEFAULT | TARGET_OPT_DEFAULT)
#define TARGET_ASM_FILE_END file_end_indicate_exec_stack
@@ -146,5 +145,8 @@ along with GCC; see the file COPYING3. If not see
else if (TARGET_SH1) \
sh_atomic_model_str = "soft-imask"; \
} \
+ /* Set -musermode if it hasn't been specified. */ \
+ if (global_options_set.x_TARGET_USERMODE == 0) \
+ TARGET_USERMODE = true; \
} \
while (0)