所有gcc版本都支持gcc的@file选项吗?

问题描述 投票:0回答:3

据我记得一些较旧的 gcc 版本不支持 @file 选项。我不太确定。有人可以提供与此相关的任何指示吗?

供参考

   @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.

谢谢

c gcc linker compiler-options
3个回答
3
投票

这已提交给 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


0
投票

接受的答案是错误的。

上述修订版 (SVN r107426) 不包含在 4.1.x 分支中。它实际上从 4.2.0 开始就可以工作,与文档一致。


0
投票

gcc版本为4.2.1以上才支持

© www.soinside.com 2019 - 2024. All rights reserved.