According to AVR ABI (https://gcc.gnu.org/wiki/avr-gcc), returned struct value
within size 1-8 bytes are returned directly (via register r18-r25), while larger
ones are returned via an implict struct pointer argument.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
This patch just fix the wrong return type in ABI. The wrong parameters passing with be fixed in another patch.
Comment Actions
fully fixes https://bugs.llvm.org/show_bug.cgi?id=39251
partially fixes https://bugs.llvm.org/show_bug.cgi?id=46140
clang/test/CodeGen/avr/struct.c | ||
---|---|---|
16 | Minor thing - I guess for the purpose of this testing you could skip initialization on struct variables? |
clang-format: please reformat the code