[clang][AVR] Set '-fno-use-cxa-atexit' to default
authorBen Shi <ben.shi@streamcomputing.com>
Fri, 28 Jan 2022 10:09:12 +0000 (10:09 +0000)
committerBen Shi <ben.shi@streamcomputing.com>
Sun, 30 Jan 2022 02:26:19 +0000 (02:26 +0000)
commit653836251ac41775e3d376e9ee28efd2ea0232b2
tree6eaabae1cc5bb68cf5748f41036d6db52f1ecc9b
parentac3894cf1e093baff747d63bd37844b9176bcbe0
[clang][AVR] Set '-fno-use-cxa-atexit' to default

AVR is baremetal environment, so the avr-libc does not support
'__cxa_atexit()'.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D118445
clang/lib/CodeGen/TargetInfo.cpp
clang/lib/Driver/ToolChains/AVR.cpp
clang/test/Driver/avr-toolchain.c