Changeset View
Changeset View
Standalone View
Standalone View
contrib/llvm-project/clang/lib/Driver/ToolChains/Arch/RISCV.cpp
Show First 20 Lines • Show All 420 Lines • ▼ Show 20 Lines | if (Args.hasArg(options::OPT_ffixed_x28)) | ||||
Features.push_back("+reserve-x28"); | Features.push_back("+reserve-x28"); | ||||
if (Args.hasArg(options::OPT_ffixed_x29)) | if (Args.hasArg(options::OPT_ffixed_x29)) | ||||
Features.push_back("+reserve-x29"); | Features.push_back("+reserve-x29"); | ||||
if (Args.hasArg(options::OPT_ffixed_x30)) | if (Args.hasArg(options::OPT_ffixed_x30)) | ||||
Features.push_back("+reserve-x30"); | Features.push_back("+reserve-x30"); | ||||
if (Args.hasArg(options::OPT_ffixed_x31)) | if (Args.hasArg(options::OPT_ffixed_x31)) | ||||
Features.push_back("+reserve-x31"); | Features.push_back("+reserve-x31"); | ||||
// -mrelax is default, unless -mno-relax is specified. | // -mno-relax is default, unless -mrelax is specified. | ||||
jrtc27: Maybe this should be clearly indicated as a local change? | |||||
if (Args.hasFlag(options::OPT_mrelax, options::OPT_mno_relax, true)) | if (Args.hasFlag(options::OPT_mrelax, options::OPT_mno_relax, false)) | ||||
Features.push_back("+relax"); | Features.push_back("+relax"); | ||||
else | else | ||||
Features.push_back("-relax"); | Features.push_back("-relax"); | ||||
// GCC Compatibility: -mno-save-restore is default, unless -msave-restore is | // GCC Compatibility: -mno-save-restore is default, unless -msave-restore is | ||||
// specified... | // specified... | ||||
if (Args.hasFlag(options::OPT_msave_restore, options::OPT_mno_save_restore, false)) { | if (Args.hasFlag(options::OPT_msave_restore, options::OPT_mno_save_restore, false)) { | ||||
// ... but we don't support -msave-restore, so issue a warning. | // ... but we don't support -msave-restore, so issue a warning. | ||||
▲ Show 20 Lines • Show All 143 Lines • Show Last 20 Lines |
Maybe this should be clearly indicated as a local change?