gcc/fixincludes/tests/base
Rainer Orth 93f803d53b fixincludes: Update darwin_flt_eval_method for macOS 14
On macOS 14, a guard in <math.h> changed:

-- MacOSX13.3.sdk/usr/include/math.h	2023-04-19 01:54:44
+++ MacOSX14.0.sdk/usr/include/math.h	2023-08-01 08:42:43
@@ -22,0 +23 @@
+
@@ -43 +44 @@
-#if __FLT_EVAL_METHOD__ == 0
+#if __FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == -1
@@ -49 +50 @@
-#elif __FLT_EVAL_METHOD__ == 2 || __FLT_EVAL_METHOD__ == -1
+#elif __FLT_EVAL_METHOD__ == 2

Therefore the darwin_flt_eval_method fixincludes fix doesn't match any
longer, leading to a large number of testsuite failures like

/private/var/gcc/regression/master/14-gcc/build/gcc/include-fixed/math.h:69:5:
error: #error "Unsupported value of __FLT_EVAL_METHOD__."

where __FLT_EVAL_METHOD__ = 16.

This patch adjusts the fix to allow for both forms.

Tested with make check in fixincludes on x86_64-apple-darwin23.0.0 and
verifying that <math.h> has indeed been fixed as expected.

2023-08-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	fixincludes:
	* inclhack.def (darwin_flt_eval_method): Handle macOS 14 guard
	variant.
	* fixincl.x: Regenerate.
	* tests/base/math.h [DARWIN_FLT_EVAL_METHOD_CHECK]: Update test.
2023-08-17 10:16:57 +02:00
..
ansi
arch/i960
architecture/ppc
bits fixincludes: Deal also with the _Float128x cases [PR107059] 2022-10-07 09:00:00 +02:00
bsd
dispatch
hsfs
i386
ia64/sys
iso
linux
mach-o
net
netdnet
netinet
objc Darwin, fixincludes: Handle Apple Blocks in objc/runtime.h. 2023-01-21 17:08:30 +00:00
os
pixrect
rpc
rpcsvc
rtldef
sparc
sundev
sunwindow
sys
types
X11
Xm
alloca.h
assert.h
AvailabilityInternal.h
AvailabilityMacros.h
c_asm.h
com_err.h
complex.h
ctrl-quotes-def-1.h
ctype.h
curses.h
errno.h
fcntl.h
features.h
fixinc-test-limits.h
inttypes.h
io-quotes-def-1.h
ioLib.h
locale.h
malloc.h
math.h fixincludes: Update darwin_flt_eval_method for macOS 14 2023-08-17 10:16:57 +02:00
obstack.h
pthread.h
reg_types.h
regex.h
regexp.h
setjmp.h
signal.h
spawn.h
stdarg.h
stdint-aix.h
stdint-darwin.h
stdint-hpux11.h
stdint-newlib.h
stdint.h
stdio.h Darwin, fixincludes: Handle MacOS13 SDK Apple-specific deprecations [PR107568]. 2023-01-21 17:07:07 +00:00
stdio_tag.h
stdlib.h
string.h
strings.h
sym.h
testing.h
tgmath.h
time.h
tinfo.h
unistd.h
yvals.h