[PATCH, testsuite]: Fix detection of -j make argument

Jeff Law law@redhat.com
Tue Nov 22 15:09:00 GMT 2016


On 11/22/2016 05:25 AM, Uros Bizjak wrote:
> Hello!
>
> New makes (e.g. GNU Make 4.2.1) pass -j argument in MFLAGS is a
> different way. While older makes pass only "-j", newer makes pass e.g.
> "-j4" when -j is specified on the command line. The detection of "-j"
> make argument doesn't work in the later case.
>
> Attached patch reworks this functionality to detect -j correctly in all cases.
>
> gcc/ChangeLog
>
> 2016-11-22  Uros Bizjak  <ubizjak@gmail.com>
>
>     * Makefile.in ($(lang_checks_parallelized)): Fix detection
>     of -j argument.
>
> gcc/ada/ChangeLog
>
> 2016-11-22  Uros Bizjak  <ubizjak@gmail.com>
>
>     * gcc-interface/Make-lang.in (check-acats): Fix detection
>     of -j argument.
>
> libstdc++-v3/ChangeLog
>
> 2016-11-22  Uros Bizjak  <ubizjak@gmail.com>
>
>     * testsuite/Makefile.am
>     (check-DEJAGNU $(check_DEJAGNU_normal_targets)):Fix detection
>     of -j argument.
>     * testsuite/Makefile.in: Regenereate.
>
> Patch was bootstrapped and regression tested on x86_64-linux-gnu with
> "GNU Make 4.2.1" and "GNU Make 3.81". Ada was not checked, but the
> change is consistent with other changes.
>
> OK for mainline SVN and release branches?
OK on the rest of the bits, for the trunk and any release branches.

jeff



More information about the Gcc-patches mailing list