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