aboutsummaryrefslogtreecommitdiff
path: root/libcpp/files.cc
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2025-12-10 09:05:55 +0100
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2025-12-10 09:05:55 +0100
commit89889bff20f43c30b4711ba6cb492620e5ec3349 (patch)
tree178faa916bfa5e6f7c51e29c116ba940323d51f5 /libcpp/files.cc
parent3b3e153da546d3bad8127141d1fcb89cb0774761 (diff)
downloadgcc-89889bff20f43c30b4711ba6cb492620e5ec3349.zip
gcc-89889bff20f43c30b4711ba6cb492620e5ec3349.tar.gz
gcc-89889bff20f43c30b4711ba6cb492620e5ec3349.tar.bz2
Fix PID_TYPE on 32-bit Solaris
The pid_t type on 32-bit Solaris differs from gcc's builtin. <sys/types.h> has typedef int pid_t; /* process id type */ typedef long pid_t; /* (historical version) */ while gcc/defaults.h uses on all targets. This patch fixes this by providing a Solaris definition. g++.dg/lookup/extern-c-redecl3.C had to be adjusted accordingly. Bootstrapped without regressions on i386-pc-solaris2.11, sparc-sun-solaris2.11, and x86_64-pc-linux-gnu. 2025-11-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> gcc: * config/sol2.h (PID_TYPE): Define. * doc/tm.texi.in (Type Layout): Document PID_TYPE. * doc/tm.texi: Regenerate. gcc/testsuite: * g++.dg/lookup/extern-c-redecl3.C (pid_t): Define. Use it for fork return type. terms of __builtin_fork. * g++.dg/pid_t-1.C: New test. * gcc.dg/pid_t-1.c: Likewise.
Diffstat (limited to 'libcpp/files.cc')
0 files changed, 0 insertions, 0 deletions