aboutsummaryrefslogtreecommitdiff
path: root/gcc/system.h
diff options
context:
space:
mode:
authorTobias Burnus <tobias@codesourcery.com>2022-08-17 15:52:23 +0200
committerTobias Burnus <tobias@codesourcery.com>2022-08-17 15:52:23 +0200
commit027b281f1e8de55d959695c7f1e80572fae6dbe7 (patch)
tree3bf97a960219796cdab3c8656f07733a67a20683 /gcc/system.h
parentd9c9424d2c4f7b25acfc00db0076a65882c8a99f (diff)
downloadgcc-027b281f1e8de55d959695c7f1e80572fae6dbe7.zip
gcc-027b281f1e8de55d959695c7f1e80572fae6dbe7.tar.gz
gcc-027b281f1e8de55d959695c7f1e80572fae6dbe7.tar.bz2
OpenMP requires: Fix diagnostic filename corner case
The issue occurs when there is, e.g., main._omp_fn.0 in two files with different OpenMP requires clauses. The function entries in the offload table ends up having the same decl tree and, hence, the diagnostic showed the same filename for both. Solution: Use the .o filename in this case. Note that the issue does not occur with same-named 'static' functions and without the fatal error from the requires diagnostic, there would be later a linker error due to having two 'main'. gcc/ * lto-cgraph.cc (input_offload_tables): Improve requires diagnostic when filenames come out identically.
Diffstat (limited to 'gcc/system.h')
0 files changed, 0 insertions, 0 deletions