Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 9/08/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

syntax-only

Tells the compiler to check only for correct syntax.

Syntax

Linux:

-syntax-only

macOS:

-syntax-only

Windows:

/syntax-only

Arguments

None

Default

OFF

Normal compilation is performed.

Description

This option tells the compiler to check only for correct syntax. It lets you do a quick syntax check of your source file.

Compilation stops after the source file has been parsed. No code is generated, no object file is produced, and some error checking done by the optimizer is bypassed.

This option also generates all appropriate module files for each module found in the source. If Fortran preprocessing is requested, the preprocessed source file is also created.

Warnings and messages appear on stderr.

IDE Equivalent
None
Alternate Options

Linux: -y, -fsyntax-only, -syntax (this is a deprecated option)

macOS: -y, -fsyntax-only

Windows: /Zs