Developer Guide and Reference

ID 767253
Date 10/31/2024
Public
Document Table of Contents

GS

Tells the compiler to provide full stack security level checking.

Syntax

Linux:

None

Windows:

/GS

/GS-

Arguments

None

Default

/GS-

The compiler does not detect buffer overruns.

Description

This option tells the compiler to provide full stack security level checking.

This option has been added for Microsoft compatibility. For more details about option /GS, see the Microsoft documentation.

IDE Equivalent

Visual Studio: Code Generation > Security Check

Eclipse: None

Alternate Options

SYCL: None

C++: Linux: -fstack-security-check

C++: Windows: None

See Also