Skip to content

Commit da97883

Browse files
authored
[clang][driver] Improve warning message for target AVR (llvm#114394)
Fixes llvm#96743
1 parent 6fa1647 commit da97883

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

clang/include/clang/Basic/DiagnosticDriverKinds.td

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ def warn_drv_invalid_arch_name_with_suggestion : Warning<
3737
"ignoring invalid /arch: argument '%0'; for %select{64|32}1-bit expected one of %2">,
3838
InGroup<UnusedCommandLineArgument>;
3939
def warn_drv_avr_mcu_not_specified : Warning<
40-
"no target microcontroller specified on command line, cannot "
41-
"link standard libraries, please pass -mmcu=<mcu name>">,
40+
"no target microcontroller specified, please pass -mmcu=<mcu name>">,
4241
InGroup<AVRRtlibLinkingQuirks>;
4342
def warn_drv_avr_libc_not_found: Warning<
4443
"no avr-libc installation can be found on the system, "

clang/test/Driver/avr-toolchain.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
// RUN: %clang -### --target=avr --sysroot=%S/Inputs/basic_avr_tree -S %s 2>&1 | FileCheck --check-prefixes=NOMCU,LINKA %s
4545
// RUN: %clang -### --target=avr --sysroot=%S/Inputs/ -S %s 2>&1 | FileCheck --check-prefixes=NOMCU,LINKA %s
4646
// RUN: %clang -### --target=avr --sysroot=%S/Inputs/basic_avr_tree %s 2>&1 | FileCheck --check-prefixes=NOMCU,LINKB %s
47-
// NOMCU: warning: no target microcontroller specified on command line, cannot link standard libraries, please pass -mmcu=<mcu name>
47+
// NOMCU: warning: no target microcontroller specified, please pass -mmcu=<mcu name>
4848
// LINKB: warning: standard library not linked and so no interrupt vector table or compiler runtime routines will be linked
4949
// LINKB: warning: support for passing the data section address to the linker for microcontroller '' is not implemented
5050
// NOMCU-NOT: warning: {{.*}} avr-gcc

0 commit comments

Comments
 (0)