accellera-official / systemc

SystemC Reference Implementation
https://systemc.org/overview/systemc/
Apache License 2.0
451 stars 145 forks source link

Don't use `force_align_arg_pointer` on non-x86 platforms #33

Closed lexi-nadia closed 7 months ago

lexi-nadia commented 1 year ago

Currently, SC_ALIGNED_STACK_ is defined to __attribute__((force_align_arg_pointer)) on any platform that's not x86_64, but this attribute only exists for the gcc/clang x86 backends (https://gcc.gnu.org/onlinedocs/gcc/x86-Function-Attributes.html). With this change, the attribute is only used on i386, and not on other platforms (e.g. aarch64) where it would be unexpected.

Signed-off-by: Lexi Bromfield lexinadia@google.com

lmailletcontoz commented 7 months ago

Included in SystemC 3.0.0 release