Skip to content

Commit dbeb50c

Browse files
[Driver][SYCL] Remove -fsycl-link-huge-device-code (#14731)
The `-fsycl-link-huge-device-code` option has been deprecated for over a year in favor of `-flink-huge-device-code`. This change removes the deprecated option.
1 parent 5bf5442 commit dbeb50c

File tree

4 files changed

+0
-25
lines changed

4 files changed

+0
-25
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4041,12 +4041,6 @@ def flink_huge_device_code : Flag<["-"], "flink-huge-device-code">,
40414041
def fno_link_huge_device_code : Flag<["-"], "fno-link-huge-device-code">,
40424042
Group<Link_Group>, HelpText<"Do not generate or use a custom linker script"
40434043
" for huge device code sections (default)">;
4044-
def fsycl_link_huge_device_code : Flag<["-"], "fsycl-link-huge-device-code">,
4045-
Group<sycl_Group>, Alias<flink_huge_device_code>, HelpText<"Generate and use a custom linker script for huge"
4046-
" device code sections (deprecated)">, Flags<[Deprecated]>;
4047-
def fno_sycl_link_huge_device_code : Flag<["-"], "fno-sycl-link-huge-device-code">,
4048-
Group<sycl_Group>, Alias<fno_link_huge_device_code>, HelpText<"Do not generate or use a custom linker script"
4049-
" for huge device code sections (default) (deprecated)">, Flags<[Deprecated]>;
40504044
defm sycl_id_queries_fit_in_int: BoolFOption<"sycl-id-queries-fit-in-int",
40514045
LangOpts<"SYCLValueFitInMaxInt">, DefaultTrue,
40524046
PosFlag<SetTrue, [], [ClangOption], "Assume">, NegFlag<SetFalse, [], [ClangOption], "Do not assume">,

clang/test/Driver/flink-huge-device-code.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
11
// UNSUPPORTED: system-windows
22
// Test the addition of a custom linker script for huge device code.
33

4-
// The "fsycl-link-huge-device-code" spelling is deprecated.
5-
6-
// RUN: %clangxx -### -fsycl -fsycl-link-huge-device-code %s 2>&1 | \
7-
// RUN: FileCheck --check-prefix=CHECK-LINKER-SCRIPT %s
84
// RUN: %clangxx -### -fsycl -flink-huge-device-code %s 2>&1 | \
95
// RUN: FileCheck --check-prefix=CHECK-LINKER-SCRIPT %s
106
// RUN: %clangxx -### -fopenmp -fopenmp-targets=x86_64 -flink-huge-device-code %s 2>&1 | \
117
// RUN: FileCheck --check-prefix=CHECK-LINKER-SCRIPT %s
128
// CHECK-LINKER-SCRIPT: "-T" "{{.*}}.ld"
139

1410
// Also check that a user-provided linker script may be used:
15-
// RUN: %clangxx -### -fsycl -fsycl-link-huge-device-code %s \
16-
// RUN: -T custom-user-script.ld 2>&1 | \
17-
// RUN: FileCheck --check-prefixes=CHECK-USER-SCRIPT %s
1811
// RUN: %clangxx -### -fsycl -flink-huge-device-code %s \
1912
// RUN: -T custom-user-script.ld 2>&1 | \
2013
// RUN: FileCheck --check-prefixes=CHECK-USER-SCRIPT %s
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
/// Test for any deprecated options
22
// RUN: %clangxx -fsycl-explicit-simd %s -### 2>&1 | FileCheck %s -DOPTION=-fsycl-explicit-simd
33
// RUN: %clangxx -fno-sycl-explicit-simd %s -### 2>&1 | FileCheck %s -DOPTION=-fno-sycl-explicit-simd
4-
// RUN: %clangxx -fsycl -fsycl-link-huge-device-code %s -### 2>&1 | FileCheck %s -DOPTION=-fsycl-link-huge-device-code
5-
// RUN: %clangxx -fsycl -fno-sycl-link-huge-device-code %s -### 2>&1 | FileCheck %s -DOPTION=-fno-sycl-link-huge-device-code
64
// RUN: %clangxx -fsycl -fsycl-use-bitcode %s -### 2>&1 | FileCheck %s -DOPTION=-fsycl-use-bitcode
75
// RUN: %clangxx -fsycl -fno-sycl-use-bitcode %s -### 2>&1 | FileCheck %s -DOPTION=-fno-sycl-use-bitcode
86
// CHECK: option '[[OPTION]]' is deprecated and will be removed in a future release

sycl/doc/UsersManual.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -284,16 +284,6 @@ and not recommended to use in production environment.
284284
various events inside JIT generated kernels. These device libraries are
285285
linked in by default.
286286

287-
**`-f[no-]sycl-link-huge-device-code`** [DEPRECATED]
288-
289-
Place device code later in the linked binary in order to avoid precluding
290-
32-bit PC relative relocations between surrounding ELF sections when device
291-
code is larger than 2GiB. This is disabled by default.
292-
293-
Deprecated in favor of `-f[no-]link-huge-device-code`.
294-
295-
NOTE: This option is currently only supported on Linux.
296-
297287
**`-fsycl-force-target=<T>`**
298288

299289
When used along with '-fsycl-targets', force the device object being

0 commit comments

Comments
 (0)