[PATCH] D122524: [clang][AVR] Eliminate link warnings when '-S' is specified

Ben Shi via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 26 05:14:11 PDT 2022


benshi001 added a comment.

1. If '-S'/'-c' is specified, do not generate link warnings;
  - User should be clear that he does not want link, so there is no link warning.

2. If '-S'/'-c' is not specified, '-mmcu' is specified and there is valid GCC installation, do not generate link warnings;
  - This is the normal case, link should be succesful.

3. If '-S'/'-c' is not specified, and '-mmcu' is not specified, genereate link warnings;
  - Since no MCU is specified, we should warn the user that no device library is linked.

4. If '-S'/'-c' is not specified, and there is no valid avr-GCC installation, genereate link warnings.
  - Since there is no avr-ld installed, we should warn the user that there is no link happens. That may changes if we choose to use lld in the future.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D122524/new/

https://reviews.llvm.org/D122524



More information about the cfe-commits mailing list