This is an archive of the discontinued LLVM Phabricator instance.

[AVR] Fix incorrect calling convention for varargs functions
AbandonedPublic

Authored by benshi001 on Mar 4 2022, 10:39 PM.

Details

Reviewers
dylanmckay
aykevl
Summary

An i8 argument should only cost 1 byte on the stack. This is
compatible with avr-gcc.

There are also more test cases (of calling convention) are added.

Diff Detail

Event Timeline

benshi001 created this revision.Mar 4 2022, 10:39 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 4 2022, 10:39 PM
Herald added subscribers: Jim, hiraditya. · View Herald Transcript
benshi001 requested review of this revision.Mar 4 2022, 10:39 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 4 2022, 10:39 PM
benshi001 updated this revision to Diff 413204.Mar 5 2022, 12:15 AM
benshi001 updated this revision to Diff 413206.Mar 5 2022, 2:14 AM
benshi001 updated this revision to Diff 414545.Mar 10 2022, 6:22 PM
This comment was removed by benshi001.

The build failures are not related to AVR and are not caused by this patch.

benshi001 updated this revision to Diff 415676.Mar 15 2022, 7:50 PM
benshi001 abandoned this revision.Mar 15 2022, 8:10 PM