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 [Darwin, fixincludes] Fix PR83531 2019-08-18 18:54:13 +00:00
pixrect
rpc
rpcsvc
rtldef
sparc
sundev
sunwindow
sys Adjust VxWorks fixincludes hack for mkdir to work for C++ 2022-01-04 10:27:11 +00:00
types
X11
Xm
alloca.h alloca.h: New file. 2017-02-11 21:11:44 +00:00
assert.h inclhack.def (aix_assert): New fix. 2013-09-02 19:01:49 -04:00
AvailabilityInternal.h Fix libsanitizer build on OS X 10.1[01], macOS 10.12 (PR sanitizer/78267) 2016-11-20 10:49:47 +00:00
AvailabilityMacros.h inclhack.def (hpux_maxint, [...]): Remove. 2004-11-13 20:41:01 +00:00
c_asm.h Made fixincludes a toplevel build module. 2004-08-31 09:27:00 +00:00
com_err.h inclhack.def (hpux_maxint, [...]): Remove. 2004-11-13 20:41:01 +00:00
complex.h Remove obsolete IRIX 6.5 support 2012-03-14 16:33:37 +00:00
ctrl-quotes-def-1.h Made fixincludes a toplevel build module. 2004-08-31 09:27:00 +00:00
ctype.h inclhack.def (aix_externc): New fix. 2015-05-21 13:25:00 -04:00
curses.h inclhack.def (aix_null): New. 2013-05-04 10:49:59 -04:00
errno.h errno.h: New file. 2006-07-17 23:54:22 +00:00
fcntl.h Add VxWorks fixincludes hack, open posix API for C++ 2022-01-16 09:22:14 +00:00
features.h inclhack.def: (glibc_c99_inline_1a): Re-add last change. 2008-02-04 15:31:25 +00:00
fixinc-test-limits.h Made fixincludes a toplevel build module. 2004-08-31 09:27:00 +00:00
inttypes.h Fix libgfortran build on hppa*-hp-hpux[01]* 2021-08-30 19:31:40 +00:00
io-quotes-def-1.h Made fixincludes a toplevel build module. 2004-08-31 09:27:00 +00:00
ioLib.h fixincludes: Add missing hunk to tests/base/ioLib.h 2018-06-27 07:59:23 +00:00
locale.h locale.h: Add new test. 2009-01-06 20:31:13 +01:00
malloc.h aix: apply aix_malloc more narrowly. 2020-10-03 23:48:40 +00:00
math.h fixincludes: Update darwin_flt_eval_method for macOS 14 2023-08-17 10:16:57 +02:00
obstack.h Made fixincludes a toplevel build module. 2004-08-31 09:27:00 +00:00
pthread.h Remove obsolete Solaris 9 support 2014-04-22 12:30:59 +00:00
reg_types.h Made fixincludes a toplevel build module. 2004-08-31 09:27:00 +00:00
regex.h Made fixincludes a toplevel build module. 2004-08-31 09:27:00 +00:00
regexp.h Made fixincludes a toplevel build module. 2004-08-31 09:27:00 +00:00
setjmp.h inclhack.def (hpux_longjmp): New fix. 2016-08-13 18:08:15 +00:00
signal.h re PR target/30058 (bootstrap broken on i386-unknown-netbsdelf2.0.2) 2007-07-25 23:51:47 +00:00
spawn.h re PR c++/49347 (G++ rejects Solaris spawn.h use of __restrict) 2011-07-25 15:56:27 +00:00
stdarg.h locale.h: Add new test. 2009-01-06 20:31:13 +01:00
stdint-aix.h config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint. 2010-01-26 19:24:32 +00:00
stdint-darwin.h config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint. 2010-01-26 19:24:32 +00:00
stdint-hpux11.h config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint. 2010-01-26 19:24:32 +00:00
stdint-newlib.h config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint. 2010-01-26 19:24:32 +00:00
stdint.h Remove obsolete IRIX 6.5 support 2012-03-14 16:33:37 +00:00
stdio.h Darwin, fixincludes: Handle MacOS13 SDK Apple-specific deprecations [PR107568]. 2023-01-21 17:07:07 +00:00
stdio_tag.h Made fixincludes a toplevel build module. 2004-08-31 09:27:00 +00:00
stdlib.h inclhack.def (aix_stdlib_vec_malloc): New. 2018-02-22 11:12:26 -05:00
string.h MAINTAINERS (mt port): Remove. 2008-06-07 19:00:15 +01:00
strings.h MAINTAINERS (mt port): Remove. 2008-06-07 19:00:15 +01:00
sym.h Made fixincludes a toplevel build module. 2004-08-31 09:27:00 +00:00
testing.h fixinc: don't "fix" machine names in __has_include(...) [PR91085] 2021-06-30 10:43:20 +08:00
tgmath.h re PR c/456 (constant expressions constraints (gcc.dg/c90-const-expr-1)) 2009-03-29 19:13:43 +01:00
time.h Add VxWorks fixincludes hack, #include sysLib.h in time.h 2022-01-16 09:22:14 +00:00
tinfo.h Made fixincludes a toplevel build module. 2004-08-31 09:27:00 +00:00
unistd.h inclhack.def (aix_unistd): New. 2018-07-23 16:51:50 -04:00
yvals.h Add VxWworks fixincludes hack, don't expect yvals.h from gcc 2022-01-06 12:04:13 +00:00