<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/62268>62268</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[flang] Feature request: support for -Os/-Oz
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
ceseo
</td>
</tr>
</table>
<pre>
`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?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykk8FunDAQhp_GXEaL7GGB5cAhTYqUUyJVUc8GD-DW2NQ2G3UPffbKbNrsoT1FQhYDmpnP_z8jQ9CTJWpZ-YmVD5nc4ux8O1Agl_VO_WxZxUcj7XSw9Apn8kE7C6LOec6B4UngEavjUZBE2YxqHMZKoJCcV2KUjVCVEFifhGLYsIoz_sD43fX8OmtD0G_aKG0nCG4h-PL8-R7un18AuaihJzvMi_TfA8N7eATroh5IQZxlhC5BgXIULMM6QtjW1fkIh6fAsDs8XfLbZi8h9ZAQ9LIaAob1TMY4eHXeKIY1rN5NXi6suLtNS8jXZw9_Mexy4wZpGHbGnJeDtiFKk8JeW4bdu1SHpwB7j3xsOBzcNbjWIe-dZ8UdaHuWRivQNtLkpYGzNNuOFxKUtul1v1H9T6AP8V0-wne55bv8l28_HwPEmTyBhNVIC6PzINXV9TfX0qfBKYKgLwRujXrRFxnTrI1GTiG1ijPB4JZVG_Ks6DLVFqopGplRK6oTctGceJPNbT9WYmiGBksl67rn46AKHPuTwnJAkjLTLXIs-DGlHAts8kqp01CXY6lq3pS1YEdOi9QmTxrmzk-ZDmGjtkKsTpmRPZmwbwxiknL_yRDTAvl2173fpsCO3OgQw3uVqKPZV223gZUP0JGMmyfw9GOjEJPmt5L8HeZs86adY1xDmlDsGHaTjvPW54Nb3sz-4_nq3TcaIsNuB0sVdvDfAQAA__9eOjRM">