gcc/fixincludes/tests/base
Iain Sandoe 5a50aed32a [Darwin, fixincludes] Fix Darwin9/10 math.h issues.
Darwin has had long long functions for some considerable time and these are
exposed in Darwin8 and Darwin11+ headers.  However, for some reason it was
elected to hide them behind __STRICT_ANSI__ and __STDC_VERSION__ on Darwin9
and Darwin10.  This is a problem for G++/libstdc++ that expects the functions
to be available for strict ansi (-std=c++14, for example) and without
defining __STDC_VERSION__.  The fix here follows the pattern used in
Darwin11+ headers where the functions may be explicitly hidden by defining
__DARWIN_NO_LONG_LONG.

This fixes the tr1 testsuite fails seen on Darwin9 and 10.

2019-06-21  Iain Sandoe  <iain@sandoe.co.uk>

	* inclhack.def: Replace the complex test using __STRICT_ANSI__ and
	__STDC_VERSION__ with a test using __DARWIN_NO_LONG_LONG.
	Ensure that the top level math.h uses <> to wrap included headers
	rather than "".
	* fixincl.x: Regenerated.
	* tests/base/architecture/ppc/math.h: Update test to include the
	__DARWIN_NO_LONG_LONG case.

From-SVN: r272563
2019-06-21 19:18:18 +00:00
..
X11
Xm
ansi
arch/i960
architecture/ppc [Darwin, fixincludes] Fix Darwin9/10 math.h issues. 2019-06-21 19:18:18 +00:00
bits
bsd
dispatch [Darwin, fixincludes] Fix Darwin14 header issues. 2019-06-21 19:03:45 +00:00
hsfs
i386 re PR bootstrap/72833 (error in fortran/parse.c (unexpected_eof) on Mac OS X 10.7) 2016-08-09 17:58:00 +00:00
ia64/sys
iso Only declare gets for C++ < 2014 on Solaris (PR libstdc++/78979) 2017-01-13 12:09:13 +00:00
linux inclhack.def (complier_h_tradcpp): Remove. 2014-08-12 11:05:24 +00:00
mach-o
net
netdnet
netinet
os [Darwin, fixincludes] Fix Darwin14 header issues. 2019-06-21 19:03:45 +00:00
pixrect
rpc
rpcsvc
rtldef
sparc
sundev
sunwindow
sys re PR target/68739 (FAIL: 30_threads/call_once/constexpr.cc (test for excess errors)) 2017-02-25 20:29:39 +00:00
types
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
alloca.h alloca.h: New file. 2017-02-11 21:11:44 +00:00
assert.h
c_asm.h
com_err.h
complex.h
ctrl-quotes-def-1.h
ctype.h inclhack.def (aix_externc): New fix. 2015-05-21 13:25:00 -04:00
curses.h
errno.h
fcntl.h inclhack.def (aix_externc): New fix. 2015-05-21 13:25:00 -04:00
features.h
fixinc-test-limits.h
inttypes.h
io-quotes-def-1.h
ioLib.h fixincludes: Add missing hunk to tests/base/ioLib.h 2018-06-27 07:59:23 +00:00
locale.h
malloc.h
math.h Don't define libstdc++-internal macros in Solaris 10+ <math.h> 2016-11-21 16:09:47 +00:00
obstack.h
pthread.h Remove obsolete Solaris 9 support 2014-04-22 12:30:59 +00:00
reg_types.h
regex.h
regexp.h
setjmp.h inclhack.def (hpux_longjmp): New fix. 2016-08-13 18:08:15 +00:00
signal.h
spawn.h
stdarg.h
stdint-aix.h
stdint-darwin.h
stdint-hpux11.h
stdint-newlib.h
stdint.h
stdio.h Only declare gets for C++ < 2014 on Solaris (PR libstdc++/78979) 2017-01-13 12:09:13 +00:00
stdio_tag.h
stdlib.h inclhack.def (aix_stdlib_vec_malloc): New. 2018-02-22 11:12:26 -05:00
string.h
strings.h
sym.h
testing.h
tgmath.h
time.h
tinfo.h
unistd.h inclhack.def (aix_unistd): New. 2018-07-23 16:51:50 -04:00