1. 18 Aug, 2019 1 commit
    • [Darwin, fixincludes] Fix PR83531 · 5c439f4d
      There is no reasonable chance that the SDKs in question will be re-
      issued, so the only viable solution is a fixincludes.
      
      2019-08-18  C.G. Dogan <gcc+cgdogan.00@gmail.com>
      	    Iain Sandoe  <iain@sandoe.co.uk>
      
      	PR target/83531
      	* inclhack.def (darwin_api_availability): New, strip leading
      	underscores from API_XXXX defines.
      	* fixincl.x: Regenerate.
      	* tests/base/os/availability.h: New file.
      
      
      Co-Authored-By: Iain Sandoe <iain@sandoe.co.uk>
      
      From-SVN: r274624
      C.G. Dogan committed
  2. 21 Jun, 2019 2 commits
    • [Darwin, fixincludes] Fix Darwin9/10 math.h issues. · 5a50aed3
      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
      Iain Sandoe committed
    • [Darwin, fixincludes] Fix Darwin14 header issues. · 59a0b1db
      There are two issues with the Darwin14 (SDK) headers in which unguarded
      advanced syntax elements causes any code including these headers to fail.
      
      2019-06-21  Iain Sandoe  <iain@sandoe.co.uk>
      
      	* inclhack.def: Guard __has_attribute and __has_extension in
      	os/base.h.
      	Guard Apple blocks syntax in dispatch/object.h.
      	* fixincl.x: Regenerate.
      	* tests/base/dispatch/object.h: New file.
      	* tests/base/os/base.h: New file.
      
      From-SVN: r272561
      Iain Sandoe committed
  3. 11 May, 2019 1 commit
    • fixincludes - fix PR90379 · 7121b43f
      One should not provide test_text for wrap style fixes
      this was causing the test to fail.  No change to the
      actual fix.
      
      2019-05-11  Iain Sandoe  <iain@sandoe.co.uk>
      	PR target/90379
      	PR bootstrap/89864
      	* inclhack.def (darwin_ucred__Atomic): Do not supply test_text
      	for wrap fixes.
      	* fixincl.x: Regenerated.
      
      From-SVN: r271098
      Iain Sandoe committed
  4. 18 Apr, 2019 1 commit
    • re PR bootstrap/89864 (gcc fails to build/bootstrap with XCode 10.2) · 8e6759aa
      fix PR89864
      
            2019-04-18  Erik Schnetter  <schnetter@gmail.com>
      	  Jakub Jelinek  <jakub@redhat.com>
      	  Iain Sandoe  <iain@sandoe.co.uk>
      
      	PR bootstrap/89864
      	* inclhack.def (darwin_ucred__Atomic): New, work around _Atomic keyword
      	use in headers included by C++.
      	* fixincl.x: Regenerated.
      
      
      Co-Authored-By: Iain Sandoe <iain@sandoe.co.uk>
      Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
      
      From-SVN: r270435
      Erik Schnetter committed
  5. 16 Oct, 2018 1 commit
    • fixincludes: vxworks: regs.h: Fix includes in regs.h wrapper · 92a7f46b
      A quick experiment reveals that this hack is needed for C code - simply
      removing this hack entirely breaks the build of libstdc++, since
      regs.h (more accurately, the cpu-specific header it pulls in) defines
      structs in terms of types from vxTypesOld. Those definitions are
      properly guarded by #ifndef _ASMLANGUAGE, but the cpu-files do not take
      care to include vxTypesOld.h for the types they depend on.
      
      But when using regs.h from some assembly file, the assembler chokes on
      the typedefs in vxTypesOld.h. We can fix that by guarding the include of
      vxTypesOld by !_ASMLANGUAGE. This should not affect existing C code.
      
      Now, the OS' regs.h contains preprocessor conditionals such as
      
      #if     CPU_FAMILY==I960
      ...
      #endif  /* CPU_FAMILY==I960 */
      #if     CPU_FAMILY==MC680X0
      ...
      #endif  /* CPU_FAMILY==MC680X0 */
      
      Without definitions of CPU_FAMILY, I960 etc., these would all be true,
      which will not end well. Code using the fix-included regs.h
      automatically get vxCpu.h via a chain of includes from vxTypesOld.h, but
      we can make regs.h a little more self-contained for both C and asm users
      by doing an explicit include of vxCpu.h.
      
      From-SVN: r265187
      Rasmus Villemoes committed
  6. 03 Sep, 2018 1 commit
    • fixincludes: vxworks: remove unnecessary parentheses in ioctl wrapper macro · c7a8f93d
      The rationale for the fixinclude ioctl macro wrapper is, as far as I can
      tell (https://gcc.gnu.org/ml/gcc-patches/2012-09/msg01619.html)
      
        Fix 2: Add hack for ioctl() on VxWorks.
      
        ioctl() is supposed to be variadic, but VxWorks only has a three
        argument version with the third argument of type int.  This messes up
        when the third argument is not implicitly convertible to int.  This
        adds a macro which wraps around ioctl() and explicitly casts the third
        argument to an int.  This way, the most common use case of ioctl (with
        a const char * for the third argument) will compile in C++, where
        pointers must be explicitly casted to int.
      
      However, we have existing C++ code that calls the ioctl function via
      
        ::ioctl(foo, bar, baz)
      
      and obviously this breaks when it gets expanded to
      
        ::(ioctl)(foo, bar, (int)(baz))
      
      Since the GNU C preprocessor already prevents recursive expansion of
      function-like macros, the parentheses around ioctl are unnecessary.
      
      Incidentally, there is also a macro sioIoctl() in the vxworks sioLib.h
      header that expands to
      
        ((pSioChan)->pDrvFuncs->ioctl (pSioChan, cmd, arg))
      
      which also breaks when that gets further expanded to
      
        ((pSioChan)->pDrvFuncs->(ioctl) (pSioChan, cmd, (int)(arg)))
      
      This patch partly fixes that issue as well, but the third argument to
      the pDrvFuncs->ioctl method should be void*, so the cast to (int) is
      slightly annoying. Internally, we've simply patched the sioIoctl macro:
      
        (((pSioChan)->pDrvFuncs->ioctl) (pSioChan, cmd, arg))
      
      From-SVN: r264056
      Rasmus Villemoes committed
  7. 23 Jul, 2018 1 commit
  8. 12 Jun, 2018 1 commit
  9. 22 Feb, 2018 1 commit
  10. 12 Jun, 2017 1 commit
  11. 25 Feb, 2017 1 commit
  12. 11 Feb, 2017 1 commit
  13. 13 Jan, 2017 1 commit
  14. 21 Nov, 2016 1 commit
    • Don't define libstdc++-internal macros in Solaris 10+ <math.h> · 3115f94f
      	libstdc++-v3:
      	* acinclude.m4 (GLIBCXX_CHECK_MATH11_PROTO): Update comments.
      	(__CORRECT_ISO_CPP11_MATH_H_PROTO): Rename to ...
      	(__CORRECT_ISO_CPP11_MATH_H_PROTO_FP): ... this.
      	Add test for C++11 <math.h> integral overloads.
      	* configure: Regenerate.
      	* config.h.in: Regenerate.
      
      	* include/c_global/cmath [__cplusplus >= 201103L]: Reflect
      	__CORRECT_ISO_CPP11_MATH_H_PROTO to
      	__CORRECT_ISO_CPP11_MATH_H_PROTO_FP rename.
      	* include/c_global/cmath [_GLIBCXX_USE_C99_MATH &&
      	!_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC && __cplusplus >= 201103L]
      	(std::fpclassify): Wrap in !__CORRECT_ISO_CPP11_MATH_H_PROTO_INT.
      	(std::isfinite): Likewise.
      	(std::isinf): Likewise.
      	(std::isnan): Likewise.
      	(std::isnormal): Likewise.
      	(std::signbit): Likewise.
      	(std::isgreater): Likewise.
      	(std::isgreaterequal): Likewise.
      	(std::isless): Likewise.
      	(std::islessequal): Likewise.
      	(std::islessgreater): Likewise.
      	(std::isunordered): Likewise.
      	[__cplusplus >= 201103L && _GLIBCXX_USE_C99_MATH_TR1]
      	(std::acosh): Likewise.
      	(std::asinh): Likewise.
      	(std::atanh): Likewise.
      	(std::cbrt): Likewise.
      	(std::copysign): Likewise.
      	(std::erf): Likewise.
      	(std::erfc): Likewise.
      	(std::exp2): Likewise.
      	(std::expm1): Likewise.
      	(std::fdim): Likewise.
      	(std::fma): Likewise.
      	(std::fmax): Likewise.
      	(std::fmin): Likewise.
      	(std::hypot): Likewise.
      	(std::ilogb): Likewise.
      	(std::lgamma): Likewise.
      	(std::llrint): Likewise.
      	(std::llround): Likewise.
      	(std::log1p): Likewise.
      	(std::log2): Likewise.
      	(std::logb): Likewise.
      	(std::lrint): Likewise.
      	(std::lround): Likewise.
      	(std::nearbyint): Likewise.
      	(std::nextafter): Likewise.
      	(std::nexttoward): Likewise.
      	(std::remainder): Likewise.
      	(std::remquo): Likewise.
      	(std::rint): Likewise.
      	(std::round): Likewise.
      	(std::scalbln): Likewise.
      	(std::scalbn): Likewise.
      	(std::tgamma): Likewise.
      	(std::trunc): Likewise.
      	* include/tr1/cmath [_GLIBCXX_USE_C99_MATH_TR1 && __cplusplus >=
      	201103L]: Reflect __CORRECT_ISO_CPP11_MATH_H_PROTO to
      	__CORRECT_ISO_CPP11_MATH_H_PROTO_FP rename.
      
      	fixincludes:
      	* inclhack.def (solaris_math_12): New fix.
      	(hpux11_fabsf): Replace bypass by *-hp-hpux11* mach selector.
      	* fixincl.x: Regenerate.
      	* tests/base/math.h [SOLARIS_MATH_12_CHECK]: New test.
      
      From-SVN: r242671
      Rainer Orth committed
  15. 20 Nov, 2016 1 commit
    • Fix libsanitizer build on OS X 10.1[01], macOS 10.12 (PR sanitizer/78267) · 97448adf
      	fixincludes:
      	PR sanitizer/78267
      	* inclhack.def (darwin_availabilityinternal, darwin_os_trace_1)
      	(darwin_os_trace_2, darwin_os_trace_3): New fixes.
      	(hpux_stdint_least_fast): Remove spurious _EOFix_.
      	* fixincl.x: Regenerate.
      	* tests/bases/AvailabilityInternal.h: New file.
      	* tests/bases/os/trace.h: New file.
      
      2016-11-20  Jack Howarth  <howarth.at.gcc@gmail.com>
      
      	libsanitizer:
      	PR sanitizer/78267
      	* sanitizer_common/sanitizer_mac.cc: Include <os/trace.h> only if
      	compiler supports blocks extension.
      
      From-SVN: r242633
      Rainer Orth committed
  16. 04 Sep, 2016 1 commit
  17. 13 Aug, 2016 1 commit
  18. 09 Aug, 2016 1 commit
  19. 13 Jun, 2016 1 commit
    • inclhack.def (aix_stdlib_malloc): New fix. · d4f076c9
      * inclhack.def (aix_stdlib_malloc): New fix.
      (aix_stdlib_realloc): New fix.
      (aix_stdlib_calloc): New fix.
      (aix_stdlib_valloc): New fix.
      * fixincl.x: Regenerate.
      * test/base/stdlib.h [AIX_STDLIB_MALLOC]: New test.
      [AIX_STDLIB_REALLOC]: New test.
      [AIX_STDLIB_CALLOC]: New test.
      [AIX_STDLIB_VALLOC]: New test.
      
      From-SVN: r237394
      David Edelsohn committed
  20. 01 Feb, 2016 1 commit
  21. 14 Aug, 2015 1 commit
  22. 21 May, 2015 1 commit
    • inclhack.def (aix_externc): New fix. · 9846edff
      	* inclhack.def (aix_externc): New fix.
      	(aix_externcpp[12]): New fix.
      	* fixincl.x: Regenerate.
      	* test/base/ctype.h [AIX_EXTERNC_CHECK]: New test.
      	* test/base/sys/socket.h [AIX_EXTERNCPP[12]_CHECK]: New test.
      	* test/base/fcntl.h: New file.
      
      From-SVN: r223497
      David Edelsohn committed
  23. 28 Mar, 2015 1 commit
  24. 16 Feb, 2015 1 commit
    • Daniel Richard G. · 266c722f
      Daniel Richard G. <skunk@iskunk.org>
              PR bootstrap/48009
              PR bootstrap/53348
              * inclhack.def (aix_strtof_const): New fix.
              * fixincl.x: Regenerate.
              * tests/base/inttypes.h: New test.
      
      From-SVN: r220736
      Daniel Richard G committed
  25. 10 Feb, 2015 1 commit
  26. 07 Feb, 2015 1 commit
  27. 28 Jan, 2015 1 commit
    • checksums and test-text · 11c3a68e
      * fixincl.tpl: add a check sum acceptance test
      * fixlib.h: enumerate it
      * fixincl.c: handle it
      * README: document it and document the handling of test_text
      
      From-SVN: r220215
      Bruce Korb committed
  28. 21 Oct, 2014 1 commit
  29. 12 Aug, 2014 1 commit
  30. 22 Apr, 2014 1 commit
    • Remove obsolete Solaris 9 support · d9f069ab
      	libstdc++-v3:
      	* configure.host: Remove solaris2.9 handling.
      	Change os_include_dir to os/solaris/solaris2.10.
      	* acinclude.m4 (ac_has_gthreads): Remove solaris2.9* handling.
      	* crossconfig.m4: Remove *-solaris2.9 handling, simplify.
      	* configure: Regenerate.
      	* config/abi/post/solaris2.9: Remove.
      	* config/os/solaris/solaris2.9: Rename to ...
      	* config/os/solaris/solaris2.10: ... this.
      	* config/os/solaris/solaris2.10/os_defines.h (CLOCK_MONOTONIC):
      	Remove.
      
      	* doc/xml/manual/configure.xml (--enable-libstdcxx-threads):
      	Remove Solaris 9 reference.
      	* doc/html/manual/configure.html: Regenerate.
      
      	* testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc:
      	Remove *-*-solaris2.9 xfail.
      	* testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/12.cc:
      	Likewise.
      
      	* testsuite/ext/enc_filebuf/char/13598.cc: Remove *-*-solaris2.9
      	xfail.
      
      	libjava:
      	* configure.ac (THREADLIBS, THREADSPEC): Remove *-*-solaris2.9
      	handling.
      	* configure: Regenerate.
      
      	libgfortran:
      	* config/fpu-387.h [__sun__ && __svr4__]: Remove SSE execution
      	check.
      
      	libgcc:
      	* config/i386/crtfastmath.c (set_fast_math): Remove SSE execution
      	check.
      	* config/i386/sol2-unwind.h (x86_fallback_frame_state): Remove
      	Solaris 9 single-threaded support.
      	* config/sparc/sol2-unwind.h (sparc64_is_sighandler): Remove
      	Solaris 9 single-threaded support.  Add call_user_handler code
      	sequences.
      	(sparc_is_sighandler): Likewise.
      
      	libcpp:
      	* lex.c: Remove Solaris 9 reference.
      
      	gcc/testsuite:
      	* gcc.c-torture/compile/pr28865.c: Remove dg-xfail-if.
      
      	* gcc.dg/c99-stdint-6.c: Remove dg-options for *-*-solaris2.9.
      	* gcc.dg/lto/20090210_0.c: Remove dg-extra-ld-options for
      	*-*-solaris2.9.
      	* gcc.dg/torture/pr47917.c: Remove dg-options for *-*-solaris2.9.
      	* gcc.target/i386/pr22076.c: Remove i?86-*-solaris2.9 handling
      	from dg-options.
      	* gcc.target/i386/pr22152.c: Remove i?86-*-solaris2.9 handling
      	from dg-additional-options.
      	* gcc.target/i386/vect8-ret.c: Remove i?86-*-solaris2.9 handling
      	from dg-options.
      
      	* gcc.dg/vect/tree-vect.h (check_vect): Remove Solaris 9 SSE2
      	execution check.
      	* gcc.target/i386/sse-os-support.h [__sun__ && __svr4__]
      	(sigill_hdlr): Remove.
      	(sse_os_support) [__sun__ && __svr4__]: Remove SSE execution
      	check.
      
      	* gfortran.dg/erf_3.F90: Remove sparc*-*-solaris2.9* handling.
      	* gfortran.dg/fmt_en.f90: Remove i?86-*-solaris2.9* handling.
      	* gfortran.dg/round_4.f90: Remove *-*-solaris2.9* handling.
      
      	* lib/target-supports.exp (add_options_for_tls): Remove
      	*-*-solaris2.9* handling.
      
      	gcc:
      	* config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
      	(*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
      	(*-*-solaris2*): Simplify.
      	(i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
      	(i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
      	*-*-solaris2.9* handling.
      
      	* configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
      	as bug.
      	(gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
      	(ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
      	handling, simplify.
      	(gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
      	* configure: Regenerate.
      
      	* config/i386/sol2-9.h: Remove.
      
      	* doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
      	(Specific, *-*-solaris2*): Mention Solaris 9 support removal.
      	Remove Solaris 9 references.
      
      	fixincludes:
      	* inclhack.def (math_exception): Bypass on *-*-solaris2.1[0-9]*.
      	(solaris_int_types): Remove.
      	(solaris_longjmp_noreturn): Remove.
      	(solaris_mutex_init_2): Remove.
      	(solaris_once_init_2): Remove.
      	(solaris_sys_va_list): Remove.
      	* fixincl.x: Regenerate.
      	* tests/base/iso/setjmp_iso.h: Remove.
      	* tests/base/pthread.h [SOLARIS_MUTEX_INIT_2_CHECK]: Remove.
      	[SOLARIS_ONCE_INIT_1_CHECK]: Remove wrapping done by
      	solaris_once_init_2.
      	[SOLARIS_ONCE_INIT_2_CHECK]: Remove.
      	* tests/base/sys/int_types.h: Remove.
      	* tests/base/sys/va_list.h: Remove.
      
      	contrib:
      	* config-list.mk (LIST): Remove sparc-sun-solaris2.9, i686-solaris2.9.
      
      From-SVN: r209621
      Rainer Orth committed
  31. 08 Dec, 2013 1 commit
    • fenv.h on Ubuntu · e1775b33
      plus fix the ordering of the patches:
      
      * inclhack.def: many of the headers found under "bits/" are
        often stashed under architecture directories.  Apply fixes
        to those, too.  Also, re-ordered misordered fixes.
      * tests/base/linux/vt.h: 80 columns in .def file limitation
      * tests/base/iso/math_c99.h: adjust ordering
      * tests/base/rtldef/string.h: likewise
      * tests/base/bits/fenv.h: likewise
      * tests/base/pthread.h: likewise
      
      From-SVN: r205793
      Bruce Korb committed
  32. 06 Dec, 2013 1 commit
  33. 02 Sep, 2013 1 commit
  34. 06 Jul, 2013 1 commit
  35. 23 May, 2013 1 commit
  36. 17 May, 2013 1 commit
  37. 04 May, 2013 1 commit
  38. 16 Jan, 2013 1 commit
  39. 29 Oct, 2012 1 commit