2013-02-27 3 views
0

Насколько я помню, некоторые старые версии gcc не поддерживают параметр @file. Я не очень уверен. Может ли кто-нибудь дать какие-либо указатели, связанные с этим?Все версии gcc поддерживают опцию gcc gfile?

Для справки

@file 
    Read command-line options from file. The options read are inserted 
    in place of the original @file option. If file does not exist, or 
    cannot be read, then the option will be treated literally, and not 
    removed. 

    Options in file are separated by whitespace. A whitespace 
    character may be included in an option by surrounding the entire 
    option in either single or double quotes. Any character (including 
    a backslash) may be included by prefixing the character to be 
    included with a backslash. The file may itself contain additional 
    @file options; any such options will be processed recursively. 

Благодаря

+2

The [онлайн-документация] (http://gcc.gnu.org/onlinedocs/) восходит к началу 2.95.3. Это может занять некоторое время, но легко проверить все версии. –

+1

Кроме того, если опция присутствует во всех версиях с определенной версии, вы можете использовать бинарный поиск. – Electro

+0

Кажется, gcc 4.1.2 не поддерживает его. –

ответ

2

Это было совершено в GCC источник здесь:

2005-11-23 Mark Mitchell <[email protected]> 

    * doc/invoke.texi: For man pages, include gcc-vers.texi. 
    List @file in the option summary. Include the libiberty 
    documentation for @file. 
    * gcc.c (main): Call expandargv. 
    * Makefile.in (gcc-vers.texi): Define srcdir. 

Согласно сообщению history, это должно быть сделано это в GCC 4.1

Смежные вопросы