Re: [PATCH] cgcc: accept any file type with '-x c'

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

 



On Thu, Nov 22, 2018 at 10:03:29AM +0100, Antonio Ospite wrote:
> On Wed, 21 Nov 2018 22:27:16 +0100
> Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> wrote:
> 
> > +    if ($_ eq '-x') {
> > +	my $lang = shift(@ARGV);
> > +	die ("$0: missing argument for -x") if !$lang;
> 
> This does not catch errors like "-x -o file", but I guess it's not a
> big deal, is it? I guess cgcc can generally assume that the command line
> is already a valid gcc command line.

Not a big deal but ...
I've changed it to die if anything else than 'c' is given as argument
to '-x' since only 'c' can make sense for cgcc.

Thank you for noticing this and the typos.

-- Luc



[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