[flang] Add support of `-fstrict-aliasing`/`-fno-strict-aliasing`
Open
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
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