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

Actually give deprecation for -noboundscheck #16687

Merged
merged 2 commits into from
Jul 13, 2024
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions compiler/src/dmd/mars.d
Original file line number Diff line number Diff line change
Expand Up @@ -1493,6 +1493,9 @@ bool parseCommandLine(const ref Strings arguments, const size_t argc, ref Param
}
else if (arg == "-noboundscheck") // https://dlang.org/dmd.html#switch-noboundscheck
{
/// @@@DEPRECATED_2.113@@@
// Deprecated since forever, deprecation message added in 2.111. Remove in 2.113
eSink.deprecation(Loc.initial, "`-noboundscheck` is deprecated. Use `-boundscheck=off` instead");
params.boundscheck = CHECKENABLE.off;
}
else if (startsWith(p + 1, "boundscheck")) // https://dlang.org/dmd.html#switch-boundscheck
Expand Down
2 changes: 1 addition & 1 deletion compiler/test/runnable/link11069a.d
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// EXTRA_FILES: imports/std11069array.d imports/std11069container.d imports/std11069range.d imports/std11069typecons.d
// REQUIRED_ARGS: -noboundscheck
// REQUIRED_ARGS: -boundscheck=off
// <-- To remove necessity of _D7imports13std11069array7__arrayZ

class Bar
Expand Down
2 changes: 1 addition & 1 deletion compiler/test/runnable/sroa13220.d
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* REQUIRED_ARGS: -O -inline -noboundscheck
/* REQUIRED_ARGS: -O -inline -boundscheck=off
*/
// https://github.com/dlang/pull/13220

Expand Down
Loading