https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90692

--- Comment #1 from Olivier Michel <Olivier.Michel at cyberbotics dot com> ---
The principle of this patch is that it breaks the recursion of the specs
function evaluation as soon as a library file is expanded. This is needed
because otherwise, the file path containing a space is broken down into two
tokens that are evaluated separately and this ends up in two wrong file names
(resulting from the split at the location of the space in the original path).

Indeed, once a library file is expanded, there is no need to further recurse in
the evaluation. So, the recursion is stopped and the result is added to the
argbuf list.

That makes the code slightly more efficient and fixes the handling of paths
with spaces.

Please let me know if you believe this a good approach to fix this bug or if
you have a different idea to achieve a better patch.

Reply via email to