]> git.ipfire.org Git - thirdparty/gcc.git/commit
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)
commitf5ddc3677389cbb2071d86c31edc87a3dc482f68
treeeac8bcc3b2e744576355d3003011044683904509
parent54bac0ce69b7a1c02b4cbb25d3d908a4ef59d5ad
Fix libgomp build on targets that are not Linux-based or accelerators

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]