diff options
author | Dylan McKay <me@dylanmckay.io> | 2019-05-19 09:54:14 +0000 |
---|---|---|
committer | Dylan McKay <me@dylanmckay.io> | 2019-05-19 09:54:14 +0000 |
commit | 83338b1059aaf3393f52da1138425774c3514cdf (patch) | |
tree | 29288bd5ea7b2e92adeb77f49b5b76c7482edd2a /llvm/lib/CodeGen/LiveDebugVariables.cpp | |
parent | f8fccb14de2e925245d7e8b6b1f13e7ec5836eb0 (diff) | |
download | llvm-83338b1059aaf3393f52da1138425774c3514cdf.zip llvm-83338b1059aaf3393f52da1138425774c3514cdf.tar.gz llvm-83338b1059aaf3393f52da1138425774c3514cdf.tar.bz2 |
[AVR] Automatically link CRT and libgcc from the system avr-gcc
Summary:
This patch modifies the AVR toolchain so that if avr-gcc and avr-libc
are detected during compilation, the CRT, libgcc, libm, and libc anre
linked.
This matches avr-gcc's default behaviour, and the expected behaviour of
all C compilers - including the C runtime.
avr-gcc also needs a -mmcu specified in order to link runtime libraries.
The difference betwen this patch and avr-gcc is that this patch will
warn users whenever they compile without a runtime, as opposed to GCC,
which silently trims the runtime libs from the linker arguments when no
-mmcu is specified.
Reviewers: aaron.ballman, kparzysz, asb, hfinkel, brucehoult, TimNN
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D54334
llvm-svn: 361116
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
0 files changed, 0 insertions, 0 deletions