Re: [PATCH] Fix PR ada/71358

2016-06-01 Thread Arnaud Charlet
> This fixes a minor problem where GNAT.Command_Line.Getopt raises CE if
> there are in fact no program-specified options (only the
> internally-supplied -h, --help are meant to be available).
> 
> Tested on GCC 6.1.0, x86_64-apple-darwin15.
> 
> If OK, can someone commit it (I can't).
> 
> gcc/ada/Changelog:
> 
> 2016-05-31  Simon Wright  
> 
>   PR ada/71358
>   * g-comlin.adb: bump copyright year.
>   (Display_Section_Help): don't deference Config.Switches if
>   it's null.
>   (Getopt): likewise.

Patch is OK.

Arno


[PATCH] Fix PR ada/71358

2016-05-31 Thread Simon Wright
This fixes a minor problem where GNAT.Command_Line.Getopt raises CE if
there are in fact no program-specified options (only the
internally-supplied -h, --help are meant to be available).

Tested on GCC 6.1.0, x86_64-apple-darwin15.

If OK, can someone commit it (I can't).

gcc/ada/Changelog:

2016-05-31  Simon Wright  

PR ada/71358
* g-comlin.adb: bump copyright year.
(Display_Section_Help): don't deference Config.Switches if
it's null.
(Getopt): likewise.



g-comlin.adb.diff
Description: Binary data