]> git.ipfire.org Git - thirdparty/gcc.git/commit
OpenMP: Add 'nec' as to the 'vendor' context-selector list
authorTobias Burnus <tburnus@baylibre.com>
Thu, 19 Dec 2024 16:27:41 +0000 (17:27 +0100)
committerTobias Burnus <tburnus@baylibre.com>
Thu, 19 Dec 2024 16:35:48 +0000 (17:35 +0100)
commita104766914e98ded9b991f1dac9ad22e815a3acc
treeb25a6d3a8626b803591c5da6cc4fbfbc76e6af0f
parente3fab34506430e78d286d4aaf66c0dec9a28c187
OpenMP: Add 'nec' as to the 'vendor' context-selector list

For unknown vendors using in a context selector such as
   match(implementation={vendor(...)})
GCC prints a warning like:
   warning: unknown property 'nec' of 'vendor' selector

While all known vendors (including the vendor 'unknown') are silently
accepted, only "gnu" counts as matched by GCC.

The list of known vendors is published in OpenMP's additional
definition document (or, previously, the context definitions document).
While the initial list did not contain 'nec', it was added quite early
but GCC missed this addition, which this commit rectifies.

Some history:
* GCC added the list in r10-3744-g94e7f906ca5c73 (Oct 2019)
* At spec level, 'pgi' was replaced by 'nvidia' in Nov 2019, but
  GCC (since r10-4639-gd0ec7c935f0c96, Nov 2019) and LLVM recognize
  both vendor names.
* 'nec' was then added in Dec 2019 and is present in
  "Context Definitions for the OpenMP API Specification Version 5.0
  – Version 1.0", but only this commit adds it.
* 'hpe' (as alias for 'cray') was added to the spec in Nov 2020 but
  to GCC only in r14-6720-gd0603dfe9d3bc7 (Dec 2023).

gcc/
* omp-general.cc (vendor_properties): Add "nec".
gcc/omp-general.cc