This is an archive of the discontinued LLVM Phabricator instance.

[AVR][clang] Pass '-fno-use-init-array' to cc1

Authored by mhjacobson on Aug 5 2021, 4:05 PM.



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).

Diff Detail

Event Timeline

mhjacobson created this revision.Aug 5 2021, 4:05 PM
mhjacobson requested review of this revision.Aug 5 2021, 4:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 5 2021, 4:05 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
MaskRay accepted this revision.Aug 5 2021, 4:47 PM

Looks great!

This revision is now accepted and ready to land.Aug 5 2021, 4:47 PM
This revision was automatically updated to reflect the committed changes.