[PATCH 0/5] teach cgcc (and sparse) about -x and -o

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



cgcc and sparse didn't knew about these option but they may
be needed for any project that uses cgcc as a wrapper around
gcc + sparse.

Changes from the separated patches:
* '-o <file>' and '-x <language>' are now forwarded from cgcc
  to the checker and the compiler.
* cgcc now ignores -o's argument to not treat it as another
  option or input filename.
* cgcc and sparse now ignore -x's argument to not treat it as
  another option or input filename.
* sparse ignore '-o -' (since stdout is its default).
* sparse as a checker ignore the -o redirection of stdout
  but not if expected to produce an output, for example
  when -E or -dD is used.

Luc Van Oostenryck (5):
  teach sparse about '-o <file>'
  teach sparse about '-x <language>'
  cgcc: add support to ignore argument(s) of options
  cgcc: teach about '-o <file>'
  cgcc: teach about '-x c'

 cgcc     | 27 +++++++++++++++++++++++++--
 lib.c    | 21 +++++++++++++++++++++
 lib.h    |  1 +
 sparse.c |  3 +++
 4 files changed, 50 insertions(+), 2 deletions(-)

-- 
2.19.0




[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux