gcc/libgcc/config/i386
Jakub Jelinek ae6dca8c65 re PR target/84945 (UBSAN: gcc/config/i386/i386.c:33312:22: runtime error: shift exponent 32 is too large for 32-bit type 'int')
PR target/84945
	* config/i386/i386.c (fold_builtin_cpu): For features above 31
	use __cpu_features2 variable instead of __cpu_model.__cpu_features[0].
	Use 1U instead of 1.  Formatting fixes.

	* gcc.target/i386/pr84945.c: New test.

	* config/i386/cpuinfo.h (__cpu_features2): Declare.
	* config/i386/cpuinfo.c (__cpu_features2): New variable for
	ifndef SHARED only.
	(set_feature): Define.
	(get_available_features): Use set_feature macro.  Set __cpu_features2
	to the second word of features ifndef SHARED.

From-SVN: r258673
2018-03-20 09:14:42 +01:00
..
32 Update copyright years. 2018-01-03 11:03:58 +01:00
64
avx_resms64.S
avx_resms64f.S
avx_resms64fx.S
avx_resms64x.S
avx_savms64.S
avx_savms64f.S
cpuinfo.c re PR target/84945 (UBSAN: gcc/config/i386/i386.c:33312:22: runtime error: shift exponent 32 is too large for 32-bit type 'int') 2018-03-20 09:14:42 +01:00
cpuinfo.h re PR target/84945 (UBSAN: gcc/config/i386/i386.c:33312:22: runtime error: shift exponent 32 is too large for 32-bit type 'int') 2018-03-20 09:14:42 +01:00
crtfastmath.c Update copyright years. 2018-01-03 11:03:58 +01:00
crti.S Update copyright years. 2018-01-03 11:03:58 +01:00
crtn.S Update copyright years. 2018-01-03 11:03:58 +01:00
crtprec.c Update copyright years. 2018-01-03 11:03:58 +01:00
cygming-crtbegin.c Update copyright years. 2018-01-03 11:03:58 +01:00
cygming-crtend.c Update copyright years. 2018-01-03 11:03:58 +01:00
cygwin.S re PR debug/83917 (with -mcall-ms2sysv-xlogues, stepping into x86 tail-call restore stub gives bad backtrace) 2018-02-28 09:59:15 +01:00
darwin-lib.h Update copyright years. 2018-01-03 11:03:58 +01:00
dragonfly-unwind.h Update copyright years. 2018-01-03 11:03:58 +01:00
elf-lib.h Update copyright years. 2018-01-03 11:03:58 +01:00
enable-execute-stack-mingw32.c Update copyright years. 2018-01-03 11:03:58 +01:00
freebsd-unwind.h Update copyright years. 2018-01-03 11:03:58 +01:00
gthr-win32.c Update copyright years. 2018-01-03 11:03:58 +01:00
gthr-win32.h Update copyright years. 2018-01-03 11:03:58 +01:00
i386-asm.h re PR debug/83917 (with -mcall-ms2sysv-xlogues, stepping into x86 tail-call restore stub gives bad backtrace) 2018-02-28 09:59:15 +01:00
libgcc-bsd.ver Update copyright years. 2018-01-03 11:03:58 +01:00
libgcc-cygming.ver Update copyright years. 2018-01-03 11:03:58 +01:00
libgcc-darwin.10.4.ver Update copyright years. 2018-01-03 11:03:58 +01:00
libgcc-darwin.10.5.ver Update copyright years. 2018-01-03 11:03:58 +01:00
libgcc-glibc.ver Update copyright years. 2018-01-03 11:03:58 +01:00
libgcc-sol2.ver Update copyright years. 2018-01-03 11:03:58 +01:00
linux-unwind.h Update copyright years. 2018-01-03 11:03:58 +01:00
morestack.S Update copyright years. 2018-01-03 11:03:58 +01:00
resms64.h Update copyright years. 2018-01-03 11:03:58 +01:00
resms64f.h Update copyright years. 2018-01-03 11:03:58 +01:00
resms64fx.h re PR debug/83917 (with -mcall-ms2sysv-xlogues, stepping into x86 tail-call restore stub gives bad backtrace) 2018-02-26 20:46:34 +01:00
resms64x.h re PR debug/83917 (with -mcall-ms2sysv-xlogues, stepping into x86 tail-call restore stub gives bad backtrace) 2018-02-26 20:46:34 +01:00
savms64.h Update copyright years. 2018-01-03 11:03:58 +01:00
savms64f.h Update copyright years. 2018-01-03 11:03:58 +01:00
sfp-exceptions.c Update copyright years. 2018-01-03 11:03:58 +01:00
sfp-machine.h
shadow-stack-unwind.h Additional fix for PR 84239. 2018-02-16 11:19:14 +01:00
sol2-c1.S Update copyright years. 2018-01-03 11:03:58 +01:00
sol2-unwind.h Update copyright years. 2018-01-03 11:03:58 +01:00
sse_resms64.S
sse_resms64f.S
sse_resms64fx.S
sse_resms64x.S
sse_savms64.S
sse_savms64f.S
t-chkstk
t-cpuinfo
t-cpuinfo-static
t-crtpc
t-crtstuff
t-cygming
t-cygwin
t-darwin
t-dlldir
t-dlldir-x
t-dragonfly
t-dw2-eh
t-freebsd
t-gthr-win32
t-linux Enable building libgcc with CET options. 2017-11-17 14:34:39 +01:00
t-mingw32
t-mingw-pthread
t-msabi
t-nto
t-seh-eh
t-sjlj-eh
t-slibgcc-cygming
t-softfp
t-sol2
t-stack-i386
value-unwind.h Update copyright years. 2018-01-03 11:03:58 +01:00
w32-unwind.h Update copyright years. 2018-01-03 11:03:58 +01:00