__attribute__((regparm(x))) should be only used on i386/x86_64 or removed at all

Bug #1130858 reported by Roman Tsisyk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tarantool
Confirmed
Wishlist
Kostja Osipov

Bug Description

The attribute does not compile on other archiecture.
regparm (number)
    On the Intel 386, the regparm attribute causes the compiler to pass arguments number one to number if they are of integral type in registers EAX, EDX, and ECX instead of on the stack. Functions that take a variable number of arguments continue to be passed all of their arguments on the stack.

In our case regparm is looking totally useless. I propose to remove it.

Revision history for this message
Roman Tsisyk (rtsisyk) wrote :
Kostja Osipov (kostja)
Changed in tarantool:
milestone: none → 1.5.1
assignee: nobody → Roman Tsisyk (rtsisyk)
status: New → Confirmed
assignee: Roman Tsisyk (rtsisyk) → Kostja Osipov (kostja)
Kostja Osipov (kostja)
Changed in tarantool:
milestone: 1.5.1 → 1.5.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.