aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-object-size.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2021-07-13 09:50:49 +0200
committerJakub Jelinek <jakub@redhat.com>2021-07-13 09:50:49 +0200
commit42f10ba5b57250506d69a0391ea7771c843ea286 (patch)
treea4caa808f6fb61ecf3e821ae2cdba05fad1a71c0 /gcc/tree-object-size.c
parent18a463bb666cc8f3421589e7641ec617acb84741 (diff)
downloadgcc-42f10ba5b57250506d69a0391ea7771c843ea286.zip
gcc-42f10ba5b57250506d69a0391ea7771c843ea286.tar.gz
gcc-42f10ba5b57250506d69a0391ea7771c843ea286.tar.bz2
libgomp: Don't include limits.h instead of hidden visibility block
sem.h is included in between # pragma GCC visibility push(hidden) and # pragma GCC visibility pop and includes limits.h there, which since the introduction of sysconf declaration in recent glibcs in there causes trouble. libgomp assumes it is compiled by gcc, so we don't really need to include limits.h there and can use -__INT_MAX__ - 1 instead (which clang and icc support too for years). 2021-07-13 Jakub Jelinek <jakub@redhat.com> Florian Weimer <fweimer@redhat.com> * config/linux/sem.h: Don't include limits.h. (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN. * config/linux/affinity.c: Include limits.h.
Diffstat (limited to 'gcc/tree-object-size.c')
0 files changed, 0 insertions, 0 deletions