]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix libgomp build on targets that are not Linux-based or accelerators
authorKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 7 Nov 2023 22:02:28 +0000 (22:02 +0000)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 7 Nov 2023 22:20:53 +0000 (22:20 +0000)
The patch 'openmp: Add support for the 'indirect' clause in C/C++'
introduced a new file target-indirect.c into the Makefile sources,
but that file was only present in config/linux/ and config/accel/,
so targets that are not Linux-based or GPU accelerators will not
pick it up and fail to build.

This is fixed by making the version in config/linux/ the default by
moving it into the base directory of libgomp.

2023-11-07  Kwok Cheung Yeung  <kcy@codesourcery.com>

libgomp/
* config/linux/target-indirect.c: Move to...
* target-indirect.c: ...here.

libgomp/target-indirect.c [moved from libgomp/config/linux/target-indirect.c with 100% similarity]