Intel® oneAPI DPC++/C++ Compiler Developer Guide and Reference

ID 767253
Date 6/24/2024
Public
Document Table of Contents

fmaintain-32-byte-stack-align, Qmaintain-32-byte-stack-align

Tells the compiler to realign the stack to 32-byte if stack alignment is uncertain for functions with external linkage, and retain 32-byte alignment for other functions.

Syntax

Linux:

-fmaintain-32-byte-stack-align

-fno-maintain-32-byte-stack-align

Windows:

/Qmaintain-32-byte-stack-align

/Qmaintain-32-byte-stack-align-

Arguments

None

Default

OFF

The compiler assumes system alignment for the stack unless an option affecting that alignment is specified.

Description

This option tells the compiler to realign the stack to 32-byte if stack alignment is uncertain for functions with external linkage, and retain 32-byte alignment for other functions.

You should not use this option if you specify Clang options -mstack-alignment or -mstackrealign.

NOTE:

This option only applies to host compilation. When offloading is enabled, it does not impact device-specific compilation.

IDE Equivalent

None

Alternate Options

None