This is an archive of the discontinued LLVM Phabricator instance.

[clang][AVR] Set '-fno-use-cxa-atexit' to default
ClosedPublic

Authored by benshi001 on Jan 28 2022, 2:12 AM.

Details

Summary

The avr-libc does not support '__cxa_atexit()'.

Diff Detail

Event Timeline

benshi001 created this revision.Jan 28 2022, 2:12 AM
benshi001 requested review of this revision.Jan 28 2022, 2:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 28 2022, 2:12 AM
This comment was removed by benshi001.
benshi001 retitled this revision from [clang][AVR] Fix a crash in AVRTargetCodeGenInfo::getGlobalVarAddressSpace to [clang][AVR] Set '-fno-use-cxa-atexit' to default.
benshi001 edited the summary of this revision. (Show Details)
This comment was removed by benshi001.

AVR is baremetal environment, it does not support __cxa_atexit()

This comment was removed by benshi001.
MaskRay accepted this revision.Jan 29 2022, 12:49 PM

LGTM.

This revision is now accepted and ready to land.Jan 29 2022, 12:49 PM
This revision was landed with ongoing or failed builds.Jan 29 2022, 6:27 PM
This revision was automatically updated to reflect the committed changes.