Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loongarch: define MULTILIB_DEFAULTS #72

Open
wants to merge 1 commit into
base: loongarch-12
Choose a base branch
from
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