gcc/libgcc
Michael Meissner 3787ee47fc re PR target/81193 (PowerPC GCC __builtin_cpu_is and __builtin_cpu_supports should warn about old libraries)
[gcc]
2017-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>

	PR target/81193
	* config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): If GLIBC
	provides the hardware capability bits, define the macro
	__BUILTIN_CPU_SUPPORTS__.
	* config/rs6000/rs6000.c (cpu_expand_builtin): Generate a warning
	if GLIBC does not provide the hardware capability bits.  Add a
	gcc_unreachable call if the built-in cpu function is neither
	__builtin_cpu_is nor __builtin_cpu_supports.
	(rs6000_get_function_versions_dispatcher): Change the warning
	that an old GLIBC is used which does not export the capability
	bits to be an error.
	* doc/extend.texi (target_clones attribute): Document the
	restriction that GLIBC 2.23 or newer is needed on the PowerPC.
	(PowerPC built-in functions): Document that GLIBC 2.23 or newer is
	needed by __builtin_cpu_is and __builtin_cpu_supports.  Document
	the macros defined by GCC if the newer GLIBC is available.

[gcc/testsuite]
2017-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>

	PR target/81193
	* gcc.target/powerpc/bmi-andn-1.c: Add guard against using
	__builtin_cpu_supports with old GLIBC's.
	* gcc.target/powerpc/bmi-andn-2.c: Likewise.
	* gcc.target/powerpc/bmi-bextr-1.c: Likewise.
	* gcc.target/powerpc/bmi-bextr-2.c: Likewise.
	* gcc.target/powerpc/bmi-bextr-4.c: Likewise.
	* gcc.target/powerpc/bmi-bextr-5.c: Likewise.
	* gcc.target/powerpc/bmi-blsi-1.c: Likewise.
	* gcc.target/powerpc/bmi-blsi-2.c: Likewise.
	* gcc.target/powerpc/bmi-blsmsk-1.c: Likewise.
	* gcc.target/powerpc/bmi-blsmsk-2.c: Likewise.
	* gcc.target/powerpc/bmi-blsr-1.c: Likewise.
	* gcc.target/powerpc/bmi-blsr-2.c: Likewise.
	* gcc.target/powerpc/bmi-tzcnt-1.c: Likewise.
	* gcc.target/powerpc/bmi-tzcnt-2.c: Likewise.
	* gcc.target/powerpc/bmi2-bzhi32-1.c: Likewise.
	* gcc.target/powerpc/bmi2-bzhi64-1.c: Likewise.
	* gcc.target/powerpc/bmi2-mulx32-1.c: Likewise.
	* gcc.target/powerpc/bmi2-mulx32-2.c: Likewise.
	* gcc.target/powerpc/bmi2-mulx64-1.c: Likewise.
	* gcc.target/powerpc/bmi2-mulx64-2.c: Likewise.
	* gcc.target/powerpc/bmi2-pdep32-1.c: Likewise.
	* gcc.target/powerpc/bmi2-pdep64-1.c: Likewise.
	* gcc.target/powerpc/bmi2-pext32-1.c: Likewise.
	* gcc.target/powerpc/bmi2-pext64-1.c: Likewise.
	* gcc.target/powerpc/cpu-builtin-1.c: Likewise.

[libgcc]
2017-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>

	PR target/81193
	* configure.ac (PowerPC float128 hardware support): Test whether
	we can use __builtin_cpu_supports before enabling the ifunc
	handler.
	* configure: Regenerate.

From-SVN: r250165
2017-07-12 23:07:50 +00:00
..
config float128-ifunc.c: Don't include auxv.h. 2017-07-07 16:08:42 -05:00
soft-fp op-common.h (_FP_MUL, [...]): Add /* FALLTHRU */ comments. 2017-01-24 23:32:30 +01:00
ChangeLog re PR target/81193 (PowerPC GCC __builtin_cpu_is and __builtin_cpu_supports should warn about old libraries) 2017-07-12 23:07:50 +00:00
Makefile.in Introduce gcov.h header file (PR gcov-profile/80435). 2017-04-19 08:08:44 +00:00
config.host [ARC] Configure script to allow non uclibc based triplets 2017-07-10 15:55:26 +02:00
config.in re PR gcov-profile/81080 (target libgcov not built with large file support) 2017-06-21 07:01:34 +00:00
configure re PR target/81193 (PowerPC GCC __builtin_cpu_is and __builtin_cpu_supports should warn about old libraries) 2017-07-12 23:07:50 +00:00
configure.ac re PR target/81193 (PowerPC GCC __builtin_cpu_is and __builtin_cpu_supports should warn about old libraries) 2017-07-12 23:07:50 +00:00
crtstuff.c Update copyright years. 2017-01-01 13:07:43 +01:00
dfp-bit.c Update copyright years. 2017-01-01 13:07:43 +01:00
dfp-bit.h Update copyright years. 2017-01-01 13:07:43 +01:00
divmod.c Update copyright years. 2017-01-01 13:07:43 +01:00
empty.mk
emutls.c Update copyright years. 2017-01-01 13:07:43 +01:00
enable-execute-stack-empty.c enable-execute-stack-empty.c (__enable_execute_stack): Add prototype. 2011-06-22 13:20:07 +02:00
enable-execute-stack-mprotect.c Update copyright years. 2017-01-01 13:07:43 +01:00
find-symver.awk Update copyright years. 2017-01-01 13:07:43 +01:00
fixed-bit.c Update copyright years. 2017-01-01 13:07:43 +01:00
fixed-bit.h Update copyright years. 2017-01-01 13:07:43 +01:00
fixed-obj.mk Makefile.in (fixed-funcs,fixed-conv-funcs): filter-out LIB2FUNCS_EXCLUDE before adding them to libgcc-objects, libgcc-s-objects. 2012-08-23 15:41:03 +00:00
floatunsidf.c Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
floatunsisf.c Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
floatunsitf.c Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
floatunsixf.c Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
fp-bit.c Update copyright years. 2017-01-01 13:07:43 +01:00
fp-bit.h Update copyright years. 2017-01-01 13:07:43 +01:00
gbl-ctors.h Update copyright years. 2017-01-01 13:07:43 +01:00
gcov.h Introduce gcov.h header file (PR gcov-profile/80435). 2017-04-19 08:08:44 +00:00
gen-fixed.sh fixed-obj.mk: New file to support fine-grain fixed-point functions. 2007-09-17 22:18:13 +00:00
generic-morestack-thread.c Update copyright years. 2017-01-01 13:07:43 +01:00
generic-morestack.c Update copyright years. 2017-01-01 13:07:43 +01:00
generic-morestack.h Update copyright years. 2017-01-01 13:07:43 +01:00
gstdint.h dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined. 2008-06-11 00:43:09 +01:00
gthr-posix.h Update copyright years. 2017-01-01 13:07:43 +01:00
gthr-single.h Update copyright years. 2017-01-01 13:07:43 +01:00
gthr.h Update copyright years. 2017-01-01 13:07:43 +01:00
libgcc-std.ver.in Update copyright years. 2017-01-01 13:07:43 +01:00
libgcc2.c Update copyright years. 2017-01-01 13:07:43 +01:00
libgcc2.h Update copyright years. 2017-01-01 13:07:43 +01:00
libgcov-driver-system.c Update copyright years. 2017-01-01 13:07:43 +01:00
libgcov-driver.c Validate that destination gcov file does not exist for gcov-tool (PR gcov-profile/78783). 2017-04-18 07:24:20 +00:00
libgcov-interface.c Update copyright years. 2017-01-01 13:07:43 +01:00
libgcov-merge.c Update copyright years. 2017-01-01 13:07:43 +01:00
libgcov-profiler.c Speed-up indirect-call instrumentation 2017-06-09 12:54:53 +00:00
libgcov-util.c Update copyright years. 2017-01-01 13:07:43 +01:00
libgcov.h re PR gcov-profile/81080 (target libgcov not built with large file support) 2017-06-21 07:01:34 +00:00
memcmp.c Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
memcpy.c Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
memmove.c Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
memset.c Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
mkheader.sh Update copyright years. 2017-01-01 13:07:43 +01:00
mkmap-flat.awk Update copyright years. 2017-01-01 13:07:43 +01:00
mkmap-symver.awk Update copyright years. 2017-01-01 13:07:43 +01:00
offloadstuff.c Update copyright years. 2017-01-01 13:07:43 +01:00
shared-object.mk Add the nvptx port. 2014-11-10 16:12:42 +00:00
siditi-object.mk Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
static-object.mk Add the nvptx port. 2014-11-10 16:12:42 +00:00
sync.c Update copyright years. 2017-01-01 13:07:43 +01:00
udivmod.c Update copyright years. 2017-01-01 13:07:43 +01:00
udivmodsi4.c Update copyright years. 2017-01-01 13:07:43 +01:00
unwind-arm-common.inc Update copyright years. 2017-01-01 13:07:43 +01:00
unwind-c.c Update copyright years. 2017-01-01 13:07:43 +01:00
unwind-compat.c Update copyright years. 2017-01-01 13:07:43 +01:00
unwind-compat.h Update copyright years. 2017-01-01 13:07:43 +01:00
unwind-dw2-fde-compat.c Update copyright years. 2017-01-01 13:07:43 +01:00
unwind-dw2-fde-dip.c Update copyright years. 2017-01-01 13:07:43 +01:00
unwind-dw2-fde.c Update copyright years. 2017-01-01 13:07:43 +01:00
unwind-dw2-fde.h Update copyright years. 2017-01-01 13:07:43 +01:00
unwind-dw2.c [AArch64] Only build & test pauth code for LP64 2017-01-20 21:03:41 +00:00
unwind-dw2.h Update copyright years. 2017-01-01 13:07:43 +01:00
unwind-generic.h Update copyright years. 2017-01-01 13:07:43 +01:00
unwind-pe.h Update copyright years. 2017-01-01 13:07:43 +01:00
unwind-seh.c unwind-seh.c: Suppress warnings for RtlUnwindEx calls. 2017-03-02 11:00:28 +00:00
unwind-sjlj.c Update copyright years. 2017-01-01 13:07:43 +01:00
unwind.inc Update copyright years. 2017-01-01 13:07:43 +01:00
vtv_end.c Update copyright years. 2017-01-01 13:07:43 +01:00
vtv_end_preinit.c Update copyright years. 2017-01-01 13:07:43 +01:00
vtv_start.c Update copyright years. 2017-01-01 13:07:43 +01:00
vtv_start_preinit.c Update copyright years. 2017-01-01 13:07:43 +01:00