llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[flang] Feature request: support for -Os/-Oz

Open ceseo opened this issue 3 years ago • 2 comments

flang-new version 17.0.0 (12426441ea2a9fdfcf6121a0061fa91d6112781d)

While building some SPEC CPU 2017 benchmarks, I noticed that Flang doesn't support -Os/-Oz.

Using a simple 'hello world' program:

$ ~/.local/llvm-install/bin/flang-new -Os hello.f90 -o hello
error: invalid integral value 's' in '-Os'
$ ~/.local/llvm-install/bin/flang-new -Oz hello.f90 -o hello
error: invalid integral value 'z' in '-Oz'

Is there a plan for adding support for code size optimization flags in the compiler?

ceseo avatar Apr 20 '23 19:04 ceseo

@llvm/issue-subscribers-flang-driver

llvmbot avatar Apr 20 '23 19:04 llvmbot

Hi @ceseo , I am not aware of anyone working on this.

banach-space avatar Apr 21 '23 12:04 banach-space