2016-05-06 35 views
4

我很驚訝地發現,這個標誌沒有給出錯誤:GCC中的`-fsee`是什麼?

g++ -fsee foo.cpp 

-fasdf,以及任何其他未知標誌給出了一個錯誤。我無法在man gcc以及online manual中找到它。在線試試GCC 6.1.0 and 4.8。它也適用於5.3.1(我的機器)。

它有一個-fno-see對應像大多數國旗。

有沒有人知道這個標誌做了什麼,或者我可以在哪裏找到它的文檔?

+1

NSA在敲門, 「用戶已被刪除」 :-) –

回答

4

here

-fsee Eliminate redundant sign extension instructions and move the non-redundant ones to optimal placement using lazy code motion (LCM).

其他選項意味着字母代表 「符號擴展淘汰」:

-fdump-rtl-see Dump after sign extension elimination.

+1

供參考:關於'-fsee'的文檔在2009年被刪除([commit](https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/doc/invoke.texi?r1=148654&r2=148664&pathrev=148664))和修訂日誌使它看起來像交換機目前是一個nop。 – dhke