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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits