llvm / llvm/llvm-project

[flang] Add support of `-fstrict-aliasing`/`-fno-strict-aliasing`

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

Description

Some old programs may require to be compiled with `-fno-strict-aliasing` even if they are written in Fortran. It would be nice, if flang will support these options. Currently, it does not: https://godbolt.org/z/c4qKbErbh

Contributor guide

Open the contributing guide

Research direction

Begin with flang and reproduce the current rejection using the linked Godbolt example for both options. Trace flang's handling of these compiler flags and verify that both -fstrict-aliasing and -fno-strict-aliasing are accepted for Fortran programs.

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
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.