Date: Thu, 8 Jan 2015 19:47:10 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r276851 - in head: contrib/compiler-rt contrib/compiler-rt/BlocksRuntime contrib/compiler-rt/include contrib/compiler-rt/lib contrib/compiler-rt/lib/BlocksRuntime contrib/compiler-rt/li... Message-ID: <201501081947.t08JlAhT062105@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dim Date: Thu Jan 8 19:47:10 2015 New Revision: 276851 URL: https://svnweb.freebsd.org/changeset/base/276851 Log: Update compiler-rt to trunk r224034. This brings a number of new builtins, and also the various sanitizers. Support for these will be added in a later commit. Added: head/contrib/compiler-rt/include/ - copied from r276796, vendor/compiler-rt/dist/include/ head/contrib/compiler-rt/lib/BlocksRuntime/ - copied from r276795, vendor/compiler-rt/dist/lib/BlocksRuntime/ head/contrib/compiler-rt/lib/asan/ - copied from r276797, vendor/compiler-rt/dist/lib/asan/ head/contrib/compiler-rt/lib/builtins/ - copied from r276795, vendor/compiler-rt/dist/lib/builtins/ head/contrib/compiler-rt/lib/builtins/sparc64/ - copied from r276846, head/contrib/compiler-rt/lib/sparc64/ head/contrib/compiler-rt/lib/dfsan/ - copied from r276795, vendor/compiler-rt/dist/lib/dfsan/ head/contrib/compiler-rt/lib/interception/ - copied from r276797, vendor/compiler-rt/dist/lib/interception/ head/contrib/compiler-rt/lib/lsan/ - copied from r276795, vendor/compiler-rt/dist/lib/lsan/ head/contrib/compiler-rt/lib/msan/ - copied from r276797, vendor/compiler-rt/dist/lib/msan/ head/contrib/compiler-rt/lib/profile/ - copied from r276797, vendor/compiler-rt/dist/lib/profile/ head/contrib/compiler-rt/lib/sanitizer_common/ - copied from r276797, vendor/compiler-rt/dist/lib/sanitizer_common/ head/contrib/compiler-rt/lib/tsan/ - copied from r276797, vendor/compiler-rt/dist/lib/tsan/ head/contrib/compiler-rt/lib/ubsan/ - copied from r276797, vendor/compiler-rt/dist/lib/ubsan/ Deleted: head/contrib/compiler-rt/BlocksRuntime/ head/contrib/compiler-rt/include/CMakeLists.txt head/contrib/compiler-rt/lib/absvdi2.c head/contrib/compiler-rt/lib/absvsi2.c head/contrib/compiler-rt/lib/absvti2.c head/contrib/compiler-rt/lib/adddf3.c head/contrib/compiler-rt/lib/addsf3.c head/contrib/compiler-rt/lib/addvdi3.c head/contrib/compiler-rt/lib/addvsi3.c head/contrib/compiler-rt/lib/addvti3.c head/contrib/compiler-rt/lib/arm/ head/contrib/compiler-rt/lib/asan/CMakeLists.txt head/contrib/compiler-rt/lib/asan/Makefile.mk head/contrib/compiler-rt/lib/asan/scripts/CMakeLists.txt head/contrib/compiler-rt/lib/asan/tests/CMakeLists.txt head/contrib/compiler-rt/lib/ashldi3.c head/contrib/compiler-rt/lib/ashlti3.c head/contrib/compiler-rt/lib/ashrdi3.c head/contrib/compiler-rt/lib/ashrti3.c head/contrib/compiler-rt/lib/assembly.h head/contrib/compiler-rt/lib/atomic.c head/contrib/compiler-rt/lib/builtins/CMakeLists.txt head/contrib/compiler-rt/lib/builtins/Makefile.mk head/contrib/compiler-rt/lib/builtins/arm/Makefile.mk head/contrib/compiler-rt/lib/builtins/arm64/Makefile.mk head/contrib/compiler-rt/lib/builtins/armv6m/Makefile.mk head/contrib/compiler-rt/lib/builtins/i386/Makefile.mk head/contrib/compiler-rt/lib/builtins/ppc/Makefile.mk head/contrib/compiler-rt/lib/builtins/x86_64/Makefile.mk head/contrib/compiler-rt/lib/clear_cache.c head/contrib/compiler-rt/lib/clzdi2.c head/contrib/compiler-rt/lib/clzsi2.c head/contrib/compiler-rt/lib/clzti2.c head/contrib/compiler-rt/lib/cmpdi2.c head/contrib/compiler-rt/lib/cmpti2.c head/contrib/compiler-rt/lib/comparedf2.c head/contrib/compiler-rt/lib/comparesf2.c head/contrib/compiler-rt/lib/ctzdi2.c head/contrib/compiler-rt/lib/ctzsi2.c head/contrib/compiler-rt/lib/ctzti2.c head/contrib/compiler-rt/lib/dfsan/CMakeLists.txt head/contrib/compiler-rt/lib/dfsan/Makefile.mk head/contrib/compiler-rt/lib/divdc3.c head/contrib/compiler-rt/lib/divdf3.c head/contrib/compiler-rt/lib/divdi3.c head/contrib/compiler-rt/lib/divmoddi4.c head/contrib/compiler-rt/lib/divmodsi4.c head/contrib/compiler-rt/lib/divsc3.c head/contrib/compiler-rt/lib/divsf3.c head/contrib/compiler-rt/lib/divsi3.c head/contrib/compiler-rt/lib/divti3.c head/contrib/compiler-rt/lib/divxc3.c head/contrib/compiler-rt/lib/enable_execute_stack.c head/contrib/compiler-rt/lib/eprintf.c head/contrib/compiler-rt/lib/extendsfdf2.c head/contrib/compiler-rt/lib/ffsdi2.c head/contrib/compiler-rt/lib/ffsti2.c head/contrib/compiler-rt/lib/fixdfdi.c head/contrib/compiler-rt/lib/fixdfsi.c head/contrib/compiler-rt/lib/fixdfti.c head/contrib/compiler-rt/lib/fixsfdi.c head/contrib/compiler-rt/lib/fixsfsi.c head/contrib/compiler-rt/lib/fixsfti.c head/contrib/compiler-rt/lib/fixunsdfdi.c head/contrib/compiler-rt/lib/fixunsdfsi.c head/contrib/compiler-rt/lib/fixunsdfti.c head/contrib/compiler-rt/lib/fixunssfdi.c head/contrib/compiler-rt/lib/fixunssfsi.c head/contrib/compiler-rt/lib/fixunssfti.c head/contrib/compiler-rt/lib/fixunsxfdi.c head/contrib/compiler-rt/lib/fixunsxfsi.c head/contrib/compiler-rt/lib/fixunsxfti.c head/contrib/compiler-rt/lib/fixxfdi.c head/contrib/compiler-rt/lib/fixxfti.c head/contrib/compiler-rt/lib/floatdidf.c head/contrib/compiler-rt/lib/floatdisf.c head/contrib/compiler-rt/lib/floatdixf.c head/contrib/compiler-rt/lib/floatsidf.c head/contrib/compiler-rt/lib/floatsisf.c head/contrib/compiler-rt/lib/floattidf.c head/contrib/compiler-rt/lib/floattisf.c head/contrib/compiler-rt/lib/floattixf.c head/contrib/compiler-rt/lib/floatundidf.c head/contrib/compiler-rt/lib/floatundisf.c head/contrib/compiler-rt/lib/floatundixf.c head/contrib/compiler-rt/lib/floatunsidf.c head/contrib/compiler-rt/lib/floatunsisf.c head/contrib/compiler-rt/lib/floatuntidf.c head/contrib/compiler-rt/lib/floatuntisf.c head/contrib/compiler-rt/lib/floatuntixf.c head/contrib/compiler-rt/lib/fp_lib.h head/contrib/compiler-rt/lib/gcc_personality_v0.c head/contrib/compiler-rt/lib/i386/ head/contrib/compiler-rt/lib/int_endianness.h head/contrib/compiler-rt/lib/int_lib.h head/contrib/compiler-rt/lib/int_math.h head/contrib/compiler-rt/lib/int_types.h head/contrib/compiler-rt/lib/int_util.c head/contrib/compiler-rt/lib/int_util.h head/contrib/compiler-rt/lib/interception/CMakeLists.txt head/contrib/compiler-rt/lib/interception/Makefile.mk head/contrib/compiler-rt/lib/lsan/CMakeLists.txt head/contrib/compiler-rt/lib/lsan/Makefile.mk head/contrib/compiler-rt/lib/lshrdi3.c head/contrib/compiler-rt/lib/lshrti3.c head/contrib/compiler-rt/lib/moddi3.c head/contrib/compiler-rt/lib/modsi3.c head/contrib/compiler-rt/lib/modti3.c head/contrib/compiler-rt/lib/msan/CMakeLists.txt head/contrib/compiler-rt/lib/msan/Makefile.mk head/contrib/compiler-rt/lib/msan/tests/CMakeLists.txt head/contrib/compiler-rt/lib/muldc3.c head/contrib/compiler-rt/lib/muldf3.c head/contrib/compiler-rt/lib/muldi3.c head/contrib/compiler-rt/lib/mulodi4.c head/contrib/compiler-rt/lib/mulosi4.c head/contrib/compiler-rt/lib/muloti4.c head/contrib/compiler-rt/lib/mulsc3.c head/contrib/compiler-rt/lib/mulsf3.c head/contrib/compiler-rt/lib/multi3.c head/contrib/compiler-rt/lib/mulvdi3.c head/contrib/compiler-rt/lib/mulvsi3.c head/contrib/compiler-rt/lib/mulvti3.c head/contrib/compiler-rt/lib/mulxc3.c head/contrib/compiler-rt/lib/negdf2.c head/contrib/compiler-rt/lib/negdi2.c head/contrib/compiler-rt/lib/negsf2.c head/contrib/compiler-rt/lib/negti2.c head/contrib/compiler-rt/lib/negvdi2.c head/contrib/compiler-rt/lib/negvsi2.c head/contrib/compiler-rt/lib/negvti2.c head/contrib/compiler-rt/lib/paritydi2.c head/contrib/compiler-rt/lib/paritysi2.c head/contrib/compiler-rt/lib/parityti2.c head/contrib/compiler-rt/lib/popcountdi2.c head/contrib/compiler-rt/lib/popcountsi2.c head/contrib/compiler-rt/lib/popcountti2.c head/contrib/compiler-rt/lib/powidf2.c head/contrib/compiler-rt/lib/powisf2.c head/contrib/compiler-rt/lib/powitf2.c head/contrib/compiler-rt/lib/powixf2.c head/contrib/compiler-rt/lib/ppc/ head/contrib/compiler-rt/lib/profile/CMakeLists.txt head/contrib/compiler-rt/lib/profile/Makefile.mk head/contrib/compiler-rt/lib/sanitizer_common/CMakeLists.txt head/contrib/compiler-rt/lib/sanitizer_common/Makefile.mk head/contrib/compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt head/contrib/compiler-rt/lib/sparc64/ head/contrib/compiler-rt/lib/subdf3.c head/contrib/compiler-rt/lib/subsf3.c head/contrib/compiler-rt/lib/subvdi3.c head/contrib/compiler-rt/lib/subvsi3.c head/contrib/compiler-rt/lib/subvti3.c head/contrib/compiler-rt/lib/trampoline_setup.c head/contrib/compiler-rt/lib/truncdfsf2.c head/contrib/compiler-rt/lib/tsan/CMakeLists.txt head/contrib/compiler-rt/lib/tsan/Makefile.mk head/contrib/compiler-rt/lib/tsan/dd/CMakeLists.txt head/contrib/compiler-rt/lib/tsan/rtl/Makefile.mk head/contrib/compiler-rt/lib/tsan/tests/CMakeLists.txt head/contrib/compiler-rt/lib/tsan/tests/rtl/CMakeLists.txt head/contrib/compiler-rt/lib/tsan/tests/unit/CMakeLists.txt head/contrib/compiler-rt/lib/ubsan/CMakeLists.txt head/contrib/compiler-rt/lib/ubsan/Makefile.mk head/contrib/compiler-rt/lib/ucmpdi2.c head/contrib/compiler-rt/lib/ucmpti2.c head/contrib/compiler-rt/lib/udivdi3.c head/contrib/compiler-rt/lib/udivmoddi4.c head/contrib/compiler-rt/lib/udivmodsi4.c head/contrib/compiler-rt/lib/udivmodti4.c head/contrib/compiler-rt/lib/udivsi3.c head/contrib/compiler-rt/lib/udivti3.c head/contrib/compiler-rt/lib/umoddi3.c head/contrib/compiler-rt/lib/umodsi3.c head/contrib/compiler-rt/lib/umodti3.c head/contrib/compiler-rt/lib/x86_64/ Modified: head/contrib/compiler-rt/CREDITS.TXT head/contrib/compiler-rt/LICENSE.TXT head/contrib/compiler-rt/README.txt head/contrib/compiler-rt/lib/builtins/int_lib.h head/contrib/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h head/contrib/compiler-rt/lib/sanitizer_common/sanitizer_posix.cc head/lib/libcompiler_rt/Makefile Directory Properties: head/contrib/compiler-rt/ (props changed) Modified: head/contrib/compiler-rt/CREDITS.TXT ============================================================================== --- head/contrib/compiler-rt/CREDITS.TXT Thu Jan 8 19:11:14 2015 (r276850) +++ head/contrib/compiler-rt/CREDITS.TXT Thu Jan 8 19:47:10 2015 (r276851) @@ -22,3 +22,15 @@ D: Maintain Solaris & AuroraUX ports of N: Howard Hinnant E: hhinnant@apple.com D: Architect and primary author of compiler-rt + +N: Guan-Hong Liu +E: koviankevin@hotmail.com +D: IEEE Quad-precision functions + +N: Joerg Sonnenberger +E: joerg@NetBSD.org +D: Maintains NetBSD port. + +N: Matt Thomas +E: matt@NetBSD.org +D: ARM improvements. Modified: head/contrib/compiler-rt/LICENSE.TXT ============================================================================== --- head/contrib/compiler-rt/LICENSE.TXT Thu Jan 8 19:11:14 2015 (r276850) +++ head/contrib/compiler-rt/LICENSE.TXT Thu Jan 8 19:47:10 2015 (r276851) @@ -14,7 +14,7 @@ Full text of the relevant licenses is in University of Illinois/NCSA Open Source License -Copyright (c) 2009-2013 by the contributors listed in CREDITS.TXT +Copyright (c) 2009-2014 by the contributors listed in CREDITS.TXT All rights reserved. @@ -55,7 +55,7 @@ SOFTWARE. ============================================================================== -Copyright (c) 2009-2013 by the contributors listed in CREDITS.TXT +Copyright (c) 2009-2014 by the contributors listed in CREDITS.TXT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -89,9 +89,3 @@ other licenses gives permission to use t University of Illinois to endorse or promote products derived from this Software. -The following pieces of software have additional or alternate copyrights, -licenses, and/or restrictions: - -Program Directory -------- --------- -mach_override lib/interception/mach_override Modified: head/contrib/compiler-rt/README.txt ============================================================================== --- head/contrib/compiler-rt/README.txt Thu Jan 8 19:11:14 2015 (r276850) +++ head/contrib/compiler-rt/README.txt Thu Jan 8 19:47:10 2015 (r276851) @@ -9,335 +9,3 @@ terms of the license agreement found in ================================ -This is a replacement library for libgcc. Each function is contained -in its own file. Each function has a corresponding unit test under -test/Unit. - -A rudimentary script to test each file is in the file called -test/Unit/test. - -Here is the specification for this library: - -http://gcc.gnu.org/onlinedocs/gccint/Libgcc.html#Libgcc - -Here is a synopsis of the contents of this library: - -typedef int si_int; -typedef unsigned su_int; - -typedef long long di_int; -typedef unsigned long long du_int; - -// Integral bit manipulation - -di_int __ashldi3(di_int a, si_int b); // a << b -ti_int __ashlti3(ti_int a, si_int b); // a << b - -di_int __ashrdi3(di_int a, si_int b); // a >> b arithmetic (sign fill) -ti_int __ashrti3(ti_int a, si_int b); // a >> b arithmetic (sign fill) -di_int __lshrdi3(di_int a, si_int b); // a >> b logical (zero fill) -ti_int __lshrti3(ti_int a, si_int b); // a >> b logical (zero fill) - -si_int __clzsi2(si_int a); // count leading zeros -si_int __clzdi2(di_int a); // count leading zeros -si_int __clzti2(ti_int a); // count leading zeros -si_int __ctzsi2(si_int a); // count trailing zeros -si_int __ctzdi2(di_int a); // count trailing zeros -si_int __ctzti2(ti_int a); // count trailing zeros - -si_int __ffsdi2(di_int a); // find least significant 1 bit -si_int __ffsti2(ti_int a); // find least significant 1 bit - -si_int __paritysi2(si_int a); // bit parity -si_int __paritydi2(di_int a); // bit parity -si_int __parityti2(ti_int a); // bit parity - -si_int __popcountsi2(si_int a); // bit population -si_int __popcountdi2(di_int a); // bit population -si_int __popcountti2(ti_int a); // bit population - -uint32_t __bswapsi2(uint32_t a); // a byteswapped, arm only -uint64_t __bswapdi2(uint64_t a); // a byteswapped, arm only - -// Integral arithmetic - -di_int __negdi2 (di_int a); // -a -ti_int __negti2 (ti_int a); // -a -di_int __muldi3 (di_int a, di_int b); // a * b -ti_int __multi3 (ti_int a, ti_int b); // a * b -si_int __divsi3 (si_int a, si_int b); // a / b signed -di_int __divdi3 (di_int a, di_int b); // a / b signed -ti_int __divti3 (ti_int a, ti_int b); // a / b signed -su_int __udivsi3 (su_int n, su_int d); // a / b unsigned -du_int __udivdi3 (du_int a, du_int b); // a / b unsigned -tu_int __udivti3 (tu_int a, tu_int b); // a / b unsigned -si_int __modsi3 (si_int a, si_int b); // a % b signed -di_int __moddi3 (di_int a, di_int b); // a % b signed -ti_int __modti3 (ti_int a, ti_int b); // a % b signed -su_int __umodsi3 (su_int a, su_int b); // a % b unsigned -du_int __umoddi3 (du_int a, du_int b); // a % b unsigned -tu_int __umodti3 (tu_int a, tu_int b); // a % b unsigned -du_int __udivmoddi4(du_int a, du_int b, du_int* rem); // a / b, *rem = a % b unsigned -tu_int __udivmodti4(tu_int a, tu_int b, tu_int* rem); // a / b, *rem = a % b unsigned -su_int __udivmodsi4(su_int a, su_int b, su_int* rem); // a / b, *rem = a % b unsigned -si_int __divmodsi4(si_int a, si_int b, si_int* rem); // a / b, *rem = a % b signed - - - -// Integral arithmetic with trapping overflow - -si_int __absvsi2(si_int a); // abs(a) -di_int __absvdi2(di_int a); // abs(a) -ti_int __absvti2(ti_int a); // abs(a) - -si_int __negvsi2(si_int a); // -a -di_int __negvdi2(di_int a); // -a -ti_int __negvti2(ti_int a); // -a - -si_int __addvsi3(si_int a, si_int b); // a + b -di_int __addvdi3(di_int a, di_int b); // a + b -ti_int __addvti3(ti_int a, ti_int b); // a + b - -si_int __subvsi3(si_int a, si_int b); // a - b -di_int __subvdi3(di_int a, di_int b); // a - b -ti_int __subvti3(ti_int a, ti_int b); // a - b - -si_int __mulvsi3(si_int a, si_int b); // a * b -di_int __mulvdi3(di_int a, di_int b); // a * b -ti_int __mulvti3(ti_int a, ti_int b); // a * b - - -// Integral arithmetic which returns if overflow - -si_int __mulosi4(si_int a, si_int b, int* overflow); // a * b, overflow set to one if result not in signed range -di_int __mulodi4(di_int a, di_int b, int* overflow); // a * b, overflow set to one if result not in signed range -ti_int __muloti4(ti_int a, ti_int b, int* overflow); // a * b, overflow set to - one if result not in signed range - - -// Integral comparison: a < b -> 0 -// a == b -> 1 -// a > b -> 2 - -si_int __cmpdi2 (di_int a, di_int b); -si_int __cmpti2 (ti_int a, ti_int b); -si_int __ucmpdi2(du_int a, du_int b); -si_int __ucmpti2(tu_int a, tu_int b); - -// Integral / floating point conversion - -di_int __fixsfdi( float a); -di_int __fixdfdi( double a); -di_int __fixxfdi(long double a); - -ti_int __fixsfti( float a); -ti_int __fixdfti( double a); -ti_int __fixxfti(long double a); -uint64_t __fixtfdi(long double input); // ppc only, doesn't match documentation - -su_int __fixunssfsi( float a); -su_int __fixunsdfsi( double a); -su_int __fixunsxfsi(long double a); - -du_int __fixunssfdi( float a); -du_int __fixunsdfdi( double a); -du_int __fixunsxfdi(long double a); - -tu_int __fixunssfti( float a); -tu_int __fixunsdfti( double a); -tu_int __fixunsxfti(long double a); -uint64_t __fixunstfdi(long double input); // ppc only - -float __floatdisf(di_int a); -double __floatdidf(di_int a); -long double __floatdixf(di_int a); -long double __floatditf(int64_t a); // ppc only - -float __floattisf(ti_int a); -double __floattidf(ti_int a); -long double __floattixf(ti_int a); - -float __floatundisf(du_int a); -double __floatundidf(du_int a); -long double __floatundixf(du_int a); -long double __floatunditf(uint64_t a); // ppc only - -float __floatuntisf(tu_int a); -double __floatuntidf(tu_int a); -long double __floatuntixf(tu_int a); - -// Floating point raised to integer power - -float __powisf2( float a, si_int b); // a ^ b -double __powidf2( double a, si_int b); // a ^ b -long double __powixf2(long double a, si_int b); // a ^ b -long double __powitf2(long double a, si_int b); // ppc only, a ^ b - -// Complex arithmetic - -// (a + ib) * (c + id) - - float _Complex __mulsc3( float a, float b, float c, float d); - double _Complex __muldc3(double a, double b, double c, double d); -long double _Complex __mulxc3(long double a, long double b, - long double c, long double d); -long double _Complex __multc3(long double a, long double b, - long double c, long double d); // ppc only - -// (a + ib) / (c + id) - - float _Complex __divsc3( float a, float b, float c, float d); - double _Complex __divdc3(double a, double b, double c, double d); -long double _Complex __divxc3(long double a, long double b, - long double c, long double d); -long double _Complex __divtc3(long double a, long double b, - long double c, long double d); // ppc only - - -// Runtime support - -// __clear_cache() is used to tell process that new instructions have been -// written to an address range. Necessary on processors that do not have -// a unified instuction and data cache. -void __clear_cache(void* start, void* end); - -// __enable_execute_stack() is used with nested functions when a trampoline -// function is written onto the stack and that page range needs to be made -// executable. -void __enable_execute_stack(void* addr); - -// __gcc_personality_v0() is normally only called by the system unwinder. -// C code (as opposed to C++) normally does not need a personality function -// because there are no catch clauses or destructors to be run. But there -// is a C language extension __attribute__((cleanup(func))) which marks local -// variables as needing the cleanup function "func" to be run when the -// variable goes out of scope. That includes when an exception is thrown, -// so a personality handler is needed. -_Unwind_Reason_Code __gcc_personality_v0(int version, _Unwind_Action actions, - uint64_t exceptionClass, struct _Unwind_Exception* exceptionObject, - _Unwind_Context_t context); - -// for use with some implementations of assert() in <assert.h> -void __eprintf(const char* format, const char* assertion_expression, - const char* line, const char* file); - - - -// Power PC specific functions - -// There is no C interface to the saveFP/restFP functions. They are helper -// functions called by the prolog and epilog of functions that need to save -// a number of non-volatile float point registers. -saveFP -restFP - -// PowerPC has a standard template for trampoline functions. This function -// generates a custom trampoline function with the specific realFunc -// and localsPtr values. -void __trampoline_setup(uint32_t* trampOnStack, int trampSizeAllocated, - const void* realFunc, void* localsPtr); - -// adds two 128-bit double-double precision values ( x + y ) -long double __gcc_qadd(long double x, long double y); - -// subtracts two 128-bit double-double precision values ( x - y ) -long double __gcc_qsub(long double x, long double y); - -// multiples two 128-bit double-double precision values ( x * y ) -long double __gcc_qmul(long double x, long double y); - -// divides two 128-bit double-double precision values ( x / y ) -long double __gcc_qdiv(long double a, long double b); - - -// ARM specific functions - -// There is no C interface to the switch* functions. These helper functions -// are only needed by Thumb1 code for efficient switch table generation. -switch16 -switch32 -switch8 -switchu8 - -// There is no C interface to the *_vfp_d8_d15_regs functions. There are -// called in the prolog and epilog of Thumb1 functions. When the C++ ABI use -// SJLJ for exceptions, each function with a catch clause or destuctors needs -// to save and restore all registers in it prolog and epliog. But there is -// no way to access vector and high float registers from thumb1 code, so the -// compiler must add call outs to these helper functions in the prolog and -// epilog. -restore_vfp_d8_d15_regs -save_vfp_d8_d15_regs - - -// Note: long ago ARM processors did not have floating point hardware support. -// Floating point was done in software and floating point parameters were -// passed in integer registers. When hardware support was added for floating -// point, new *vfp functions were added to do the same operations but with -// floating point parameters in floating point registers. - -// Undocumented functions - -float __addsf3vfp(float a, float b); // Appears to return a + b -double __adddf3vfp(double a, double b); // Appears to return a + b -float __divsf3vfp(float a, float b); // Appears to return a / b -double __divdf3vfp(double a, double b); // Appears to return a / b -int __eqsf2vfp(float a, float b); // Appears to return one - // iff a == b and neither is NaN. -int __eqdf2vfp(double a, double b); // Appears to return one - // iff a == b and neither is NaN. -double __extendsfdf2vfp(float a); // Appears to convert from - // float to double. -int __fixdfsivfp(double a); // Appears to convert from - // double to int. -int __fixsfsivfp(float a); // Appears to convert from - // float to int. -unsigned int __fixunssfsivfp(float a); // Appears to convert from - // float to unsigned int. -unsigned int __fixunsdfsivfp(double a); // Appears to convert from - // double to unsigned int. -double __floatsidfvfp(int a); // Appears to convert from - // int to double. -float __floatsisfvfp(int a); // Appears to convert from - // int to float. -double __floatunssidfvfp(unsigned int a); // Appears to convert from - // unisgned int to double. -float __floatunssisfvfp(unsigned int a); // Appears to convert from - // unisgned int to float. -int __gedf2vfp(double a, double b); // Appears to return __gedf2 - // (a >= b) -int __gesf2vfp(float a, float b); // Appears to return __gesf2 - // (a >= b) -int __gtdf2vfp(double a, double b); // Appears to return __gtdf2 - // (a > b) -int __gtsf2vfp(float a, float b); // Appears to return __gtsf2 - // (a > b) -int __ledf2vfp(double a, double b); // Appears to return __ledf2 - // (a <= b) -int __lesf2vfp(float a, float b); // Appears to return __lesf2 - // (a <= b) -int __ltdf2vfp(double a, double b); // Appears to return __ltdf2 - // (a < b) -int __ltsf2vfp(float a, float b); // Appears to return __ltsf2 - // (a < b) -double __muldf3vfp(double a, double b); // Appears to return a * b -float __mulsf3vfp(float a, float b); // Appears to return a * b -int __nedf2vfp(double a, double b); // Appears to return __nedf2 - // (a != b) -double __negdf2vfp(double a); // Appears to return -a -float __negsf2vfp(float a); // Appears to return -a -float __negsf2vfp(float a); // Appears to return -a -double __subdf3vfp(double a, double b); // Appears to return a - b -float __subsf3vfp(float a, float b); // Appears to return a - b -float __truncdfsf2vfp(double a); // Appears to convert from - // double to float. -int __unorddf2vfp(double a, double b); // Appears to return __unorddf2 -int __unordsf2vfp(float a, float b); // Appears to return __unordsf2 - - -Preconditions are listed for each function at the definition when there are any. -Any preconditions reflect the specification at -http://gcc.gnu.org/onlinedocs/gccint/Libgcc.html#Libgcc. - -Assumptions are listed in "int_lib.h", and in individual files. Where possible -assumptions are checked at compile time. Modified: head/contrib/compiler-rt/lib/builtins/int_lib.h ============================================================================== --- vendor/compiler-rt/dist/lib/builtins/int_lib.h Wed Jan 7 21:44:57 2015 (r276795) +++ head/contrib/compiler-rt/lib/builtins/int_lib.h Thu Jan 8 19:47:10 2015 (r276851) @@ -25,7 +25,15 @@ #if __ARM_EABI__ # define ARM_EABI_FNALIAS(aeabi_name, name) \ void __aeabi_##aeabi_name() __attribute__((alias("__" #name))); -# define COMPILER_RT_ABI __attribute__((pcs("aapcs"))) + +# if !defined(__clang__) && defined(__GNUC__) && \ + (__GNUC__ < 4 || __GNUC__ == 4 && __GNUC_MINOR__ < 5) +/* The pcs attribute was introduced in GCC 4.5.0 */ +# define COMPILER_RT_ABI +# else +# define COMPILER_RT_ABI __attribute__((pcs("aapcs"))) +# endif + #else # define ARM_EABI_FNALIAS(aeabi_name, name) # define COMPILER_RT_ABI @@ -53,6 +61,26 @@ /* Include internal utility function declarations. */ #include "int_util.h" +/* + * Workaround for LLVM bug 11663. Prevent endless recursion in + * __c?zdi2(), where calls to __builtin_c?z() are expanded to + * __c?zdi2() instead of __c?zsi2(). + * + * Instead of placing this workaround in c?zdi2.c, put it in this + * global header to prevent other C files from making the detour + * through __c?zdi2() as well. + * + * This problem has only been observed on FreeBSD for sparc64 and + * mips64 with GCC 4.2.1. + */ +#if defined(__FreeBSD__) && (defined(__sparc64__) || \ + defined(__mips_n64) || defined(__mips_o64)) +si_int __clzsi2(si_int); +si_int __ctzsi2(si_int); +#define __builtin_clz __clzsi2 +#define __builtin_ctz __ctzsi2 +#endif /* FreeBSD && (sparc64 || mips_n64 || mips_o64) */ + COMPILER_RT_ABI si_int __paritysi2(si_int a); COMPILER_RT_ABI si_int __paritydi2(di_int a); Modified: head/contrib/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h ============================================================================== --- vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_internal_defs.h Wed Jan 7 22:08:09 2015 (r276797) +++ head/contrib/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h Thu Jan 8 19:47:10 2015 (r276851) @@ -48,6 +48,11 @@ # define __has_feature(x) 0 #endif +// Enable sanitizer compilation for pre-C++11 +#if __cplusplus < 201103L +#define nullptr 0 +#endif + // For portability reasons we do not include stddef.h, stdint.h or any other // system header, but we do need some basic types that are not defined // in a portable way by the language itself. Modified: head/contrib/compiler-rt/lib/sanitizer_common/sanitizer_posix.cc ============================================================================== --- vendor/compiler-rt/dist/lib/sanitizer_common/sanitizer_posix.cc Wed Jan 7 22:08:09 2015 (r276797) +++ head/contrib/compiler-rt/lib/sanitizer_common/sanitizer_posix.cc Thu Jan 8 19:47:10 2015 (r276851) @@ -30,6 +30,13 @@ #include <sys/personality.h> #endif +#if SANITIZER_FREEBSD +// The MAP_NORESERVE define has been removed in FreeBSD 11.x, and even before +// that, it was never implemented. So just define it to zero. +#undef MAP_NORESERVE +#define MAP_NORESERVE 0 +#endif + namespace __sanitizer { // ------------- sanitizer_common.h Modified: head/lib/libcompiler_rt/Makefile ============================================================================== --- head/lib/libcompiler_rt/Makefile Thu Jan 8 19:11:14 2015 (r276850) +++ head/lib/libcompiler_rt/Makefile Thu Jan 8 19:47:10 2015 (r276851) @@ -14,16 +14,18 @@ CRTARCH=x86_64 CRTARCH=${MACHINE_CPUARCH} .endif -CRTSRC=${.CURDIR}/../../contrib/compiler-rt/lib +CRTSRC=${.CURDIR}/../../contrib/compiler-rt/lib/builtins .PATH: ${CRTSRC}/${CRTARCH} ${CRTSRC} SRCF= absvdi2 \ absvsi2 \ absvti2 \ + addtf3 \ addvdi3 \ addvsi3 \ addvti3 \ + apple_versioning \ ashldi3 \ ashlti3 \ ashrdi3 \ @@ -44,6 +46,7 @@ SRCF= absvdi2 \ divmoddi4 \ divmodsi4 \ divsc3 \ + divtf3 \ divti3 \ divxc3 \ enable_execute_stack \ @@ -79,6 +82,7 @@ SRCF= absvdi2 \ floatuntidf \ floatuntisf \ floatuntixf \ + gcc_personality_v0 \ int_util \ lshrdi3 \ lshrti3 \ @@ -90,6 +94,7 @@ SRCF= absvdi2 \ mulosi4 \ muloti4 \ mulsc3 \ + multf3 \ multi3 \ mulvdi3 \ mulvsi3 \ @@ -112,6 +117,7 @@ SRCF= absvdi2 \ powisf2 \ powitf2 \ powixf2 \ + subtf3 \ subvdi3 \ subvsi3 \ subvti3 \ @@ -174,14 +180,62 @@ SRCS+= ${file}.c .endfor .if ${MACHINE_CPUARCH} == "arm" -SRCS+= aeabi_idivmod.S \ +SRCS+= aeabi_dcmp.S \ + aeabi_div0.S \ + aeabi_fcmp.S \ + aeabi_idivmod.S \ aeabi_ldivmod.S \ aeabi_memcmp.S \ aeabi_memcpy.S \ aeabi_memmove.S \ aeabi_memset.S \ aeabi_uidivmod.S \ - aeabi_uldivmod.S + aeabi_uldivmod.S \ + bswapdi2.S \ + bswapsi2.S \ + eqdf2.S \ + eqsf2.S \ + floatunssidf.S \ + floatunssisf.S \ + gedf2.S \ + gesf2.S \ + gtdf2.S \ + gtsf2.S \ + ledf2.S \ + lesf2.S \ + ltdf2.S \ + ltsf2.S \ + nedf2.S \ + nesf2.S \ + restore_vfp_d8_d15_regs.S \ + save_vfp_d8_d15_regs.S \ + switch16.S \ + switch32.S \ + switch8.S \ + switchu8.S \ + sync_fetch_and_add_4.S \ + sync_fetch_and_add_8.S \ + sync_fetch_and_and_4.S \ + sync_fetch_and_and_8.S \ + sync_fetch_and_max_4.S \ + sync_fetch_and_max_8.S \ + sync_fetch_and_min_4.S \ + sync_fetch_and_min_8.S \ + sync_fetch_and_nand_4.S \ + sync_fetch_and_nand_8.S \ + sync_fetch_and_or_4.S \ + sync_fetch_and_or_8.S \ + sync_fetch_and_sub_4.S \ + sync_fetch_and_sub_8.S \ + sync_fetch_and_umax_4.S \ + sync_fetch_and_umax_8.S \ + sync_fetch_and_umin_4.S \ + sync_fetch_and_umin_8.S \ + sync_fetch_and_xor_4.S \ + sync_fetch_and_xor_8.S \ + sync_synchronize.S \ + unorddf2.S \ + unordsf2.S .endif .if ${MK_INSTALLLIB} != "no"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501081947.t08JlAhT062105>