History

Fix calling ARM EABI functions returning big structures

The wrong type was tested to determine the size of the structure.

Daniel Glöckner committed 15 years ago

Commit 28a5b701 parent 8123e331 file · +1 −1Browse files

Unified · Split

arm-gen.c+1−1
@@ -749,7 +749,7 @@ void gfunc_call(int nb_args) · 748 unmodified lines
749 gv(RC_INT);749 gv(RC_INT);
750#ifdef TCC_ARM_EABI750#ifdef TCC_ARM_EABI
751 if((vtop[-nb_args].type.ref->type.t & VT_BTYPE) == VT_STRUCT751 if((vtop[-nb_args].type.ref->type.t & VT_BTYPE) == VT_STRUCT
752 && type_size(&vtop[-nb_args].type, &align) <= 4) {752 && type_size(&vtop[-nb_args].type.ref->type, &align) <= 4) {
753 SValue tmp;753 SValue tmp;
754 tmp=vtop[-nb_args];754 tmp=vtop[-nb_args];
755 vtop[-nb_args]=vtop[-nb_args+1];755 vtop[-nb_args]=vtop[-nb_args+1];

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t