Skip to content

Commit 3fd570c

Browse files
committed
Merge from 'main' to 'sycl-web' (#1)
CONFLICT (content): Merge conflict in clang/include/clang/Basic/DiagnosticDriverKinds.td
2 parents 64a95b5 + 530ea28 commit 3fd570c

30 files changed

+148
-125
lines changed

clang/include/clang/Basic/DiagnosticDriverKinds.td

+82-58
Original file line numberDiff line numberDiff line change
@@ -52,42 +52,50 @@ def warn_drv_avr_stdlib_not_linked: Warning<
5252
"standard library not linked and so no interrupt vector table or "
5353
"compiler runtime routines will be linked">,
5454
InGroup<AVRRtlibLinkingQuirks>;
55-
def err_drv_cuda_bad_gpu_arch : Error<"Unsupported CUDA gpu architecture: %0">;
55+
def err_drv_cuda_bad_gpu_arch : Error<"unsupported CUDA gpu architecture: %0">;
5656
def err_drv_no_cuda_installation : Error<
57-
"cannot find CUDA installation. Provide its path via --cuda-path, or pass "
58-
"-nocudainc to build without CUDA includes.">;
57+
"cannot find CUDA installation; provide its path via '--cuda-path', or pass "
58+
"'-nocudainc' to build without CUDA includes">;
5959
def err_drv_no_cuda_libdevice : Error<
60-
"cannot find libdevice for %0. Provide path to different CUDA installation "
61-
"via --cuda-path, or pass -nocudalib to build without linking with libdevice.">;
60+
"cannot find libdevice for %0; provide path to different CUDA installation "
61+
"via '--cuda-path', or pass '-nocudalib' to build without linking with "
62+
"libdevice">;
6263

6364
def err_drv_no_rocm_device_lib : Error<
64-
"cannot find ROCm device library%select{| for %1}0. Provide its path via --rocm-path or "
65-
"--rocm-device-lib-path, or pass -nogpulib to build without ROCm device library.">;
65+
"cannot find ROCm device library%select{| for %1}0; provide its path via "
66+
"'--rocm-path' or '--rocm-device-lib-path', or pass '-nogpulib' to build "
67+
"without ROCm device library">;
6668
def err_drv_no_hip_runtime : Error<
67-
"cannot find HIP runtime. Provide its path via --rocm-path, or pass "
68-
"-nogpuinc to build without HIP runtime.">;
69+
"cannot find HIP runtime; provide its path via '--rocm-path', or pass "
70+
"'-nogpuinc' to build without HIP runtime">;
6971

7072
def err_drv_undetermined_amdgpu_arch : Error<
71-
"Cannot determine AMDGPU architecture: %0. Consider passing it via --march.">;
73+
"cannot determine AMDGPU architecture: %0; consider passing it via "
74+
"'--march'">;
7275
def err_drv_cuda_version_unsupported : Error<
7376
"GPU arch %0 is supported by CUDA versions between %1 and %2 (inclusive), "
74-
"but installation at %3 is %4. Use --cuda-path to specify a different CUDA "
75-
"install, pass a different GPU arch with --cuda-gpu-arch, or pass "
76-
"--no-cuda-version-check.">;
77+
"but installation at %3 is %4; use '--cuda-path' to specify a different CUDA "
78+
"install, pass a different GPU arch with '--cuda-gpu-arch', or pass "
79+
"'--no-cuda-version-check'">;
7780
def warn_drv_unknown_cuda_version: Warning<
78-
"Unknown CUDA version. %0 Assuming the latest supported version %1">,
81+
"unknown CUDA version: %0; assuming the latest supported version %1">,
7982
InGroup<CudaUnknownVersion>;
80-
def err_drv_cuda_host_arch : Error<"unsupported architecture '%0' for host compilation.">;
83+
def err_drv_cuda_host_arch : Error<
84+
"unsupported architecture '%0' for host compilation">;
8185
def err_drv_no_sycl_libspirv : Error<
8286
"cannot find 'libspirv-nvptx64--nvidiacl.bc'; provide path to libspirv "
8387
"library via '-fsycl-libspirv-path', or pass '-fno-sycl-libspirv' to build "
8488
"without linking with libspirv">;
85-
def err_drv_mix_cuda_hip : Error<"Mixed Cuda and HIP compilation is not supported.">;
86-
def err_drv_bad_target_id : Error<"Invalid target ID: %0 (A target ID is a processor name "
87-
"followed by an optional list of predefined features post-fixed by a plus or minus sign deliminated "
88-
"by colon, e.g. 'gfx908:sramecc+:xnack-')">;
89-
def err_drv_bad_offload_arch_combo : Error<"Invalid offload arch combinations: %0 and %1 (For a specific "
90-
"processor, a feature should either exist in all offload archs, or not exist in any offload archs)">;
89+
def err_drv_mix_cuda_hip : Error<
90+
"mixed CUDA and HIP compilation is not supported">;
91+
def err_drv_bad_target_id : Error<
92+
"invalid target ID '%0'; format is a processor name followed by an optional "
93+
"colon-delimited list of features followed by an enable/disable sign (e.g., "
94+
"'gfx908:sramecc+:xnack-')">;
95+
def err_drv_bad_offload_arch_combo : Error<
96+
"invalid offload arch combinations: '%0' and '%1' (for a specific processor, "
97+
"a feature should either exist in all offload archs, or not exist in any "
98+
"offload archs)">;
9199
def err_drv_invalid_thread_model_for_target : Error<
92100
"invalid thread model '%0' in '%1' for this target">;
93101
def err_drv_invalid_linker_name : Error<
@@ -211,7 +219,7 @@ def err_target_unsupported_arch
211219
def err_cpu_unsupported_isa
212220
: Error<"CPU '%0' does not support '%1' execution mode">;
213221
def err_arch_unsupported_isa
214-
: Error<"Architecture '%0' does not support '%1' execution mode">;
222+
: Error<"architecture '%0' does not support '%1' execution mode">;
215223

216224
def err_drv_I_dash_not_supported : Error<
217225
"'%0' not supported, please use -iquote instead">;
@@ -283,11 +291,13 @@ def err_drv_invalid_sycl_target : Error<"SYCL target is invalid: '%0'">;
283291
def err_drv_incompatible_omp_arch : Error<"OpenMP target architecture '%0' pointer size is incompatible with host '%1'">;
284292
def err_drv_option_conflict : Error<"The option %0 conflicts with %1">;
285293
def err_drv_omp_host_ir_file_not_found : Error<
286-
"The provided host compiler IR file '%0' is required to generate code for OpenMP target regions but cannot be found.">;
294+
"provided host compiler IR file '%0' is required to generate code for OpenMP "
295+
"target regions but cannot be found">;
287296
def err_drv_omp_host_target_not_supported : Error<
288-
"The target '%0' is not a supported OpenMP host target.">;
297+
"target '%0' is not a supported OpenMP host target">;
289298
def err_drv_expecting_fopenmp_with_fopenmp_targets : Error<
290-
"The option -fopenmp-targets must be used in conjunction with a -fopenmp option compatible with offloading, please use -fopenmp=libomp or -fopenmp=libiomp5.">;
299+
"'-fopenmp-targets' must be used in conjunction with a '-fopenmp' option "
300+
"compatible with offloading; e.g., '-fopenmp=libomp' or '-fopenmp=libiomp5'">;
291301
def err_drv_expecting_fsycl_with_sycl_opt : Error<
292302
"'%0' must be used in conjunction with '-fsycl' to enable offloading">;
293303
def err_drv_fsycl_with_c_type : Error<
@@ -296,12 +306,15 @@ def warn_drv_sycl_offload_target_duplicate : Warning<
296306
"SYCL offloading target '%0' is similar to target '%1' already specified; "
297307
"will be ignored">, InGroup<SyclTarget>;
298308
def err_drv_omp_offload_target_missingbcruntime : Error<
299-
"No library '%0' found in the default clang lib directory or in LIBRARY_PATH. Please use --libomptarget-%1-bc-path to specify %1 bitcode library.">;
300-
def err_drv_omp_offload_target_bcruntime_not_found : Error<"Bitcode library '%0' does not exist.">;
301-
def err_drv_omp_offload_target_cuda_version_not_support : Error<"NVPTX target requires CUDA 9.2 or above. CUDA %0 is detected.">;
309+
"no library '%0' found in the default clang lib directory or in LIBRARY_PATH"
310+
"; use '--libomptarget-%1-bc-path' to specify %1 bitcode library">;
311+
def err_drv_omp_offload_target_bcruntime_not_found : Error<
312+
"bitcode library '%0' does not exist">;
313+
def err_drv_omp_offload_target_cuda_version_not_support : Error<
314+
"NVPTX target requires CUDA 9.2 or above; CUDA %0 detected">;
302315
def warn_drv_omp_offload_target_duplicate : Warning<
303-
"The OpenMP offloading target '%0' is similar to target '%1' already specified - will be ignored.">,
304-
InGroup<OpenMPTarget>;
316+
"OpenMP offloading target '%0' is similar to target '%1' already specified; "
317+
"will be ignored">, InGroup<OpenMPTarget>;
305318
def err_drv_unsupported_embed_bitcode
306319
: Error<"%0 is not supported with -fembed-bitcode">;
307320
def err_drv_bitcode_unsupported_on_toolchain : Error<
@@ -328,7 +341,8 @@ def warn_drv_unsupported_debug_info_opt_for_target : Warning<
328341
"debug information option '%0' is not supported for target '%1'">,
329342
InGroup<UnsupportedTargetOpt>;
330343
def warn_drv_dwarf_version_limited_by_target : Warning<
331-
"debug information option '%0' is not supported. It needs DWARF-%2 but target '%1' only provides DWARF-%3.">,
344+
"debug information option '%0' is not supported; requires DWARF-%2 but "
345+
"target '%1' only provides DWARF-%3">,
332346
InGroup<UnsupportedTargetOpt>;
333347
def warn_c_kext : Warning<
334348
"ignoring -fapple-kext which is valid for C++ and Objective-C++ only">;
@@ -399,7 +413,7 @@ def err_sls_hardening_arm_not_supported : Error<
399413
def note_drv_command_failed_diag_msg : Note<
400414
"diagnostic msg: %0">;
401415
def note_drv_t_option_is_global : Note<
402-
"The last /TC or /TP option takes precedence over earlier instances">;
416+
"the last '/TC' or '/TP' option takes precedence over earlier instances">;
403417
def note_drv_address_sanitizer_debug_runtime : Note<
404418
"AddressSanitizer doesn't support linking with debug runtime libraries yet">;
405419
def note_drv_use_standard : Note<"use '%0'"
@@ -439,7 +453,8 @@ def err_test_module_file_extension_format : Error<
439453

440454
def warn_slash_u_filename : Warning<"'/U%0' treated as the '/U' option">,
441455
InGroup<DiagGroup<"slash-u-filename">>;
442-
def note_use_dashdash : Note<"Use '--' to treat subsequent arguments as filenames">;
456+
def note_use_dashdash : Note<
457+
"use '--' to treat subsequent arguments as filenames">;
443458

444459
def err_drv_ropi_rwpi_incompatible_with_pic : Error<
445460
"embedded and GOT-based position independence are incompatible">;
@@ -508,14 +523,14 @@ def warn_drv_ps4_sdk_dir : Warning<
508523

509524
def err_drv_unsupported_linker : Error<"unsupported value '%0' for -linker option">;
510525
def err_drv_defsym_invalid_format : Error<"defsym must be of the form: sym=value: %0">;
511-
def err_drv_defsym_invalid_symval : Error<"Value is not an integer: %0">;
526+
def err_drv_defsym_invalid_symval : Error<"value is not an integer: %0">;
512527
def warn_drv_msvc_not_found : Warning<
513528
"unable to find a Visual Studio installation; "
514529
"try running Clang from a developer command prompt">,
515530
InGroup<DiagGroup<"msvc-not-found">>;
516531

517532
def warn_drv_fuse_ld_path : Warning<
518-
"'-fuse-ld=' taking a path is deprecated. Use '--ld-path=' instead">,
533+
"'-fuse-ld=' taking a path is deprecated; use '--ld-path=' instead">,
519534
InGroup<FUseLdPath>, DefaultIgnore;
520535

521536
def warn_drv_fine_grained_bitfield_accesses_ignored : Warning<
@@ -535,37 +550,40 @@ def warn_drv_global_isel_incomplete_opt : Warning<
535550
InGroup<GlobalISel>;
536551

537552
def warn_drv_moutline_unsupported_opt : Warning<
538-
"The '%0' architecture does not support -moutline; flag ignored">,
553+
"'%0' does not support '-moutline'; flag ignored">,
539554
InGroup<OptionIgnored>;
540555

541556
def warn_drv_moutline_atomics_unsupported_opt : Warning<
542-
"The '%0' architecture does not support -moutline-atomics; flag ignored">,
557+
"'%0' does not support '-moutline-atomics'; flag ignored">,
543558
InGroup<OptionIgnored>;
544559

545560
def warn_drv_darwin_sdk_invalid_settings : Warning<
546561
"SDK settings were ignored as 'SDKSettings.json' could not be parsed">,
547562
InGroup<DiagGroup<"darwin-sdk-settings">>;
548563

549564
def err_drv_trivial_auto_var_init_zero_disabled : Error<
550-
"-ftrivial-auto-var-init=zero hasn't been enabled. Enable it at your own peril for benchmarking purpose only with "
551-
"-enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang">;
565+
"'-ftrivial-auto-var-init=zero' hasn't been enabled; enable it at your own "
566+
"peril for benchmarking purpose only with "
567+
"'-enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang'">;
552568

553569
def err_drv_trivial_auto_var_init_stop_after_missing_dependency : Error<
554-
"-ftrivial-auto-var-init-stop-after=* is used without -ftrivial-auto-var-init=zero or -ftrivial-auto-var-init=pattern.">;
570+
"'-ftrivial-auto-var-init-stop-after=*' is used without "
571+
"'-ftrivial-auto-var-init=zero' or '-ftrivial-auto-var-init=pattern'">;
555572

556573
def err_drv_trivial_auto_var_init_stop_after_invalid_value : Error<
557-
"-ftrivial-auto-var-init-stop-after=* only accepts positive integers.">;
574+
"'-ftrivial-auto-var-init-stop-after=*' only accepts positive integers">;
558575

559-
def warn_drv_msp430_hwmult_unsupported : Warning<"the given MCU does not "
560-
"support hardware multiply, but -mhwmult is set to %0.">,
576+
def warn_drv_msp430_hwmult_unsupported : Warning<
577+
"the given MCU does not support hardware multiply, but '-mhwmult' is set to "
578+
"%0">, InGroup<InvalidCommandLineArgument>;
579+
def warn_drv_msp430_hwmult_mismatch : Warning<
580+
"the given MCU supports %0 hardware multiply, but '-mhwmult' is set to %1">,
561581
InGroup<InvalidCommandLineArgument>;
562-
def warn_drv_msp430_hwmult_mismatch : Warning<"the given MCU supports %0 "
563-
"hardware multiply, but -mhwmult is set to %1.">,
564-
InGroup<InvalidCommandLineArgument>;
565-
def warn_drv_msp430_hwmult_no_device : Warning<"no MCU device specified, but "
566-
"'-mhwmult' is set to 'auto', assuming no hardware multiply. Use -mmcu to "
567-
"specify a MSP430 device, or -mhwmult to set hardware multiply type "
568-
"explicitly.">, InGroup<InvalidCommandLineArgument>;
582+
def warn_drv_msp430_hwmult_no_device : Warning<
583+
"no MCU device specified, but '-mhwmult' is set to 'auto', assuming no "
584+
"hardware multiply; use '-mmcu' to specify an MSP430 device, or '-mhwmult' "
585+
"to set the hardware multiply type explicitly">,
586+
InGroup<InvalidCommandLineArgument>;
569587

570588
def warn_drv_libstdcxx_not_found : Warning<
571589
"include path for libstdc++ headers not found; pass '-stdlib=libc++' on the "
@@ -574,17 +592,23 @@ def warn_drv_libstdcxx_not_found : Warning<
574592

575593
def err_drv_cannot_mix_options : Error<"cannot specify '%1' along with '%0'">;
576594

577-
def err_drv_invalid_object_mode : Error<"OBJECT_MODE setting %0 is not recognized and is not a valid setting.">;
595+
def err_drv_invalid_object_mode : Error<
596+
"OBJECT_MODE setting %0 is not recognized and is not a valid setting">;
578597

579598
def err_aix_unsupported_tls_model : Error<"TLS model '%0' is not yet supported on AIX">;
580599

581-
def err_invalid_cxx_abi : Error<"Invalid C++ ABI name '%0'">;
600+
def err_invalid_cxx_abi : Error<"invalid C++ ABI name '%0'">;
582601
def err_unsupported_cxx_abi : Error<"C++ ABI '%0' is not supported on target triple '%1'">;
583602

584-
def note_cc1_round_trip_original : Note<"Original arguments in round-trip: %0">;
585-
def note_cc1_round_trip_generated : Note<"Generated arguments #%0 in round-trip: %1">;
586-
def remark_cc1_round_trip_generated : Remark<"Generated arguments #%0 in round-trip: %1">, InGroup<RoundTripCC1Args>;
587-
def err_cc1_round_trip_fail_then_ok : Error<"Original arguments parse failed, then succeeded in round-trip">;
588-
def err_cc1_round_trip_ok_then_fail : Error<"Generated arguments parse failed in round-trip">;
589-
def err_cc1_round_trip_mismatch : Error<"Generated arguments do not match in round-trip">;
603+
def note_cc1_round_trip_original : Note<"original arguments in round-trip: %0">;
604+
def note_cc1_round_trip_generated : Note<
605+
"generated arguments #%0 in round-trip: %1">;
606+
def remark_cc1_round_trip_generated : Remark<
607+
"generated arguments #%0 in round-trip: %1">, InGroup<RoundTripCC1Args>;
608+
def err_cc1_round_trip_fail_then_ok : Error<
609+
"original arguments parse failed, then succeeded in round-trip">;
610+
def err_cc1_round_trip_ok_then_fail : Error<
611+
"generated arguments parse failed in round-trip">;
612+
def err_cc1_round_trip_mismatch : Error<
613+
"generated arguments do not match in round-trip">;
590614
}

clang/lib/Driver/ToolChains/Cuda.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,7 @@ CudaInstallationDetector::CudaInstallationDetector(
220220
VersionInfo.Version = (FS.exists(LibDevicePath + "/libdevice.10.bc"))
221221
? Version = CudaVersion::LATEST
222222
: Version = CudaVersion::CUDA_70;
223-
VersionInfo.DetectedVersion =
224-
"No version found in version.txt or cuda.h.";
223+
VersionInfo.DetectedVersion = "no version found in version.txt or cuda.h";
225224
}
226225

227226
Version = VersionInfo.Version;

clang/test/Driver/aarch64-outliner.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
// RUN: %clang -target aarch64 -moutline -mno-outline -S %s -### 2>&1 | FileCheck %s -check-prefix=OFF
55
// OFF: "-mllvm" "-enable-machine-outliner=never"
66
// RUN: %clang -target x86_64 -moutline -S %s -### 2>&1 | FileCheck %s -check-prefix=WARN
7-
// WARN: warning: The 'x86_64' architecture does not support -moutline; flag ignored [-Woption-ignored]
7+
// WARN: warning: 'x86_64' does not support '-moutline'; flag ignored [-Woption-ignored]
88
// WARN-NOT: "-mllvm" "-enable-machine-outliner"

clang/test/Driver/aix-object-mode.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@
1919
// RUN: env OBJECT_MODE=31 \
2020
// RUN: not %clang -target powerpc-ibm-aix 2>&1 | FileCheck -check-prefix=DIAG %s
2121

22-
// DIAG: error: OBJECT_MODE setting 31 is not recognized and is not a valid setting.
22+
// DIAG: error: OBJECT_MODE setting 31 is not recognized and is not a valid setting

clang/test/Driver/amdgpu-invalid-target-id.s

+7-7
Original file line numberDiff line numberDiff line change
@@ -6,40 +6,40 @@
66
// RUN: -mcpu=gfx908xnack -nostdlib \
77
// RUN: %s 2>&1 | FileCheck -check-prefix=NOPLUS %s
88

9-
// NOPLUS: error: Invalid target ID: gfx908xnack
9+
// NOPLUS: error: invalid target ID 'gfx908xnack'
1010

1111
// RUN: not %clang -target amdgcn-amd-amdpal \
1212
// RUN: -mcpu=gfx908:xnack+:xnack+ -nostdlib \
1313
// RUN: %s 2>&1 | FileCheck -check-prefix=ORDER %s
1414

15-
// ORDER: error: Invalid target ID: gfx908:xnack+:xnack+
15+
// ORDER: error: invalid target ID 'gfx908:xnack+:xnack+'
1616

1717
// RUN: not %clang -target amdgcn--mesa3d \
1818
// RUN: -mcpu=gfx908:unknown+ -nostdlib \
1919
// RUN: %s 2>&1 | FileCheck -check-prefix=UNK %s
2020

21-
// UNK: error: Invalid target ID: gfx908:unknown+
21+
// UNK: error: invalid target ID 'gfx908:unknown+'
2222

2323
// RUN: not %clang -target amdgcn-amd-amdhsa \
2424
// RUN: -mcpu=gfx908:sram-ecc+:unknown+ -nostdlib \
2525
// RUN: %s 2>&1 | FileCheck -check-prefix=MIXED %s
2626

27-
// MIXED: error: Invalid target ID: gfx908:sram-ecc+:unknown+
27+
// MIXED: error: invalid target ID 'gfx908:sram-ecc+:unknown+'
2828

2929
// RUN: not %clang -target amdgcn-amd-amdhsa \
3030
// RUN: -mcpu=gfx900:sram-ecc+ -nostdlib \
3131
// RUN: %s 2>&1 | FileCheck -check-prefix=UNSUP %s
3232

33-
// UNSUP: error: Invalid target ID: gfx900:sram-ecc+
33+
// UNSUP: error: invalid target ID 'gfx900:sram-ecc+'
3434

3535
// RUN: not %clang -target amdgcn-amd-amdhsa \
3636
// RUN: -mcpu=gfx900:xnack -nostdlib \
3737
// RUN: %s 2>&1 | FileCheck -check-prefix=NOSIGN %s
3838

39-
// NOSIGN: error: Invalid target ID: gfx900:xnack
39+
// NOSIGN: error: invalid target ID 'gfx900:xnack'
4040

4141
// RUN: not %clang -target amdgcn-amd-amdhsa \
4242
// RUN: -mcpu=gfx900+xnack -nostdlib \
4343
// RUN: %s 2>&1 | FileCheck -check-prefix=NOCOLON %s
4444

45-
// NOCOLON: error: Invalid target ID: gfx900+xnack
45+
// NOCOLON: error: invalid target ID 'gfx900+xnack'

clang/test/Driver/amdgpu-openmp-system-arch-fail.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
// case when amdgpu_arch returns nothing or fails
1616
// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -nogpulib --amdgpu-arch-tool=%t/amdgpu_arch_fail %s 2>&1 \
1717
// RUN: | FileCheck %s --check-prefix=NO-OUTPUT-ERROR
18-
// NO-OUTPUT-ERROR: error: Cannot determine AMDGPU architecture{{.*}}Exited with error code 1. Consider passing it via --march
18+
// NO-OUTPUT-ERROR: error: cannot determine AMDGPU architecture{{.*}}Exited with error code 1; consider passing it via '--march'
1919

2020
// case when amdgpu_arch returns multiple gpus but all are different
2121
// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -nogpulib --amdgpu-arch-tool=%t/amdgpu_arch_different %s 2>&1 \
2222
// RUN: | FileCheck %s --check-prefix=MULTIPLE-OUTPUT-ERROR
23-
// MULTIPLE-OUTPUT-ERROR: error: Cannot determine AMDGPU architecture: Multiple AMD GPUs found with different archs. Consider passing it via --march
23+
// MULTIPLE-OUTPUT-ERROR: error: cannot determine AMDGPU architecture: Multiple AMD GPUs found with different archs; consider passing it via '--march'
2424

2525
// case when amdgpu_arch does not return anything with successful execution
2626
// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -nogpulib --amdgpu-arch-tool=%t/amdgpu_arch_empty %s 2>&1 \
2727
// RUN: | FileCheck %s --check-prefix=EMPTY-OUTPUT
28-
// EMPTY-OUTPUT: error: Cannot determine AMDGPU architecture: No AMD GPU detected in the system. Consider passing it via --march
28+
// EMPTY-OUTPUT: error: cannot determine AMDGPU architecture: No AMD GPU detected in the system; consider passing it via '--march'

clang/test/Driver/arm-thumb-only-cores.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// RUN: | FileCheck --check-prefix ARMV7M %s
77
// RUN: not %clang -target armv7m-unknown-linux -mno-thumb %s -o /dev/null 2>&1 \
88
// RUN: | FileCheck --check-prefix ARMV7M %s
9-
// ARMV7M: error: Architecture 'armv7m' does not support 'ARM' execution mode
9+
// ARMV7M: error: architecture 'armv7m' does not support 'ARM' execution mode
1010
//
1111
// RUN: %clang -S -emit-llvm -target arm-unknown-linux -mcpu=cortex-m0 %s -o /dev/null 2>&1
1212
// M-Profile CPUs default to Thumb mode even if arm triples are provided.

0 commit comments

Comments
 (0)