Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions gcc/config/loongarch/loongarch.h
Original file line number Diff line number Diff line change
Expand Up @@ -1289,3 +1289,15 @@ struct GTY (()) machine_function
(TARGET_HARD_FLOAT ? (TARGET_DOUBLE_FLOAT ? 8 : 4) : 0)

#define FUNCTION_VALUE_REGNO_P(N) ((N) == GP_RETURN || (N) == FP_RETURN)

#if DEFAULT_ABI_BASE == ABI_BASE_LP64D
#define MULTILIB_ABI_BASE_DEFAULT "mabi=lp64d"
#elif DEFAULT_ABI_BASE == ABI_BASE_LP64F
#define MULTILIB_ABI_BASE_DEFAULT "mabi=lp64f"
#elif DEFAULT_ABI_BASE == ABI_BASE_LP64S
#define MULTILIB_ABI_BASE_DEFAULT "mabi=lp64s"
#endif

#ifndef MULTILIB_DEFAULTS
#define MULTILIB_DEFAULTS { MULTILIB_ABI_BASE_DEFAULT }
#endif