llvm / llvm/llvm-project

[flang] Support -f(no)-inline-functions

Open
#223,359 1 comment 0 reactions 0 assignees View on GitHub
flang:driver
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

Before #218533, a warning would be emitted if this option was used.

```
flang-22: warning: optimization flag '-fkeep-inline-functions' is not supported [-Wignored-optimization-argument]
```

After #218533, flang will fail with an unknown option error. This option is good to have when debugging optimized code and for compatibility with clang.

Contributor guide

Open the contributing guide

Research direction

Start by tracing flang's handling of the -f(no)-inline-functions options and compare it with the prior warning behavior described in the issue. Add support so these options are accepted for debugging and clang compatibility without producing an unknown-option error, then verify the relevant flang option tests or command-line behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
fortran
Domain
compilers
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.