[PATCH] Fix driver handling of multiple -ftree-parallelize-loops=<n> options (PR driver/69805)

Tom de Vries Tom_deVries@mentor.com
Thu Feb 18 11:01:00 GMT 2016


On 16/02/16 16:24, Jakub Jelinek wrote:
> Passing the - and ftree-parallelize-loops= stuff looks weird,
> and we have %* that substitutes just the variable part of the option,
> so in addition to fixing the case of multiple options I've also changed
> %:gt() behaviour, so that it now gets just the numbers and compares the
> last two of them.

FTR, version-compare uses yet another variant: It does not expect to be 
called with an %{S*} or %{S*:%*} expansion, but passes S as an argument:
...
%:version-compare(>= 10.3 mmacosx-version-min= -lmx)
...
and the spec function itself takes care of finding the last value.

Thanks,
- Tom



More information about the Gcc-patches mailing list