]> git.ipfire.org Git - thirdparty/gcc.git/commit
builtins.def: Enable OpenMP/OpenACC builtins also with -fno-nonansi-builtins
authorTobias Burnus <tburnus@baylibre.com>
Fri, 6 Jun 2025 13:57:50 +0000 (15:57 +0200)
committerTobias Burnus <tburnus@baylibre.com>
Fri, 6 Jun 2025 14:29:37 +0000 (16:29 +0200)
commitc8963f01ac813346f543ae118e702df8c28cd884
treea42371c4eee83082eb2793ea4cde4108f7f8e51d
parent76e0b6c20dc54d7a6f704a4bddd824f4c8d90c2c
builtins.def: Enable OpenMP/OpenACC builtins also with -fno-nonansi-builtins

The flags -std=c.. and -std=c++.. imply -fno-nonansi-builtins, which disabled
the OpenMP/OpenACC intrinsics - but -fopenmp/-fopenacc builtin use should be
rather othogonal to the user's choice between -std=c... and -std=gnuc...

gcc/ChangeLog:

* builtins.def (DEF_GOACC_BUILTIN_COMPILER, DEF_GOMP_BUILTIN_COMPILER):
Set NONANSI_P = false to enable those also with -fno-nonansi-builtins.

(cherry picked from commit 214b5d66c54613463a96aa2c7202bc32f628dad6)
gcc/builtins.def