[all-commits] [llvm/llvm-project] dae7ad: [AVR][clang] Pass '-fno-use-init-array' to cc1 as ...
Matt Jacobson via All-commits
all-commits at lists.llvm.org
Thu Aug 5 19:14:53 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: dae7adda949993bd96aa50c551dc64ddebba7923
https://github.com/llvm/llvm-project/commit/dae7adda949993bd96aa50c551dc64ddebba7923
Author: Matt Jacobson <mhjacobson at me.com>
Date: 2021-08-06 (Fri, 06 Aug 2021)
Changed paths:
M clang/lib/Driver/ToolChains/AVR.cpp
M clang/lib/Driver/ToolChains/AVR.h
M clang/test/Driver/avr-toolchain.c
Log Message:
-----------
[AVR][clang] Pass '-fno-use-init-array' to cc1 as default
On AVR, '.ctors' is used, not '.init_array'. Make this the default
unless specifically overridden by driver argument.
This matches gcc, and it matches the behavior in (e.g.) the NetBSD
driver (for certain OS variants).
Reviewed by: MaskRay
Differential Revision: https://reviews.llvm.org/D107610
More information about the All-commits
mailing list