Go to file
Jakub Jelinek be80a2e64a i386: Call get_available_features for all CPUs with max_level >= 1 [PR100758]
get_available_features doesn't depend on cpu_model2->__cpu_{family,model}
and just sets stuff up based on CPUID leaf 1, or some extended ones,
so I wonder why are we calling it separately for Intel, AMD and Zhaoxin
and not for all other CPUs too?  I think various programs in the wild
which aren't using __builtin_cpu_{is,supports} just check the various CPUID
leafs and query bits in there, without blacklisting unknown CPU vendors,
so I think even __builtin_cpu_supports ("sse2") etc. should be reliable
if those VENDOR_{CENTAUR,CYRIX,NSC,OTHER} CPUs set those bits in CPUID leaf
1 or some extended ones.  Calling it for all CPUs also means it can be
inlined because there will be just a single caller.

I have tested it on Intel and Martin tested it on AMD, but can't test it
on non-Intel/AMD; for Intel/AMD/Zhaoxin it should be really no change in
behavior.

2023-02-09  Jakub Jelinek  <jakub@redhat.com>

	PR target/100758
	* config/i386/cpuinfo.c (cpu_indicator_init): Call
	get_available_features for all CPUs with max_level >= 1, rather
	than just Intel or AMD.

(cherry picked from commit b24e9c0830)
2023-05-03 14:47:47 +02:00
config Update ChangeLog and version files for release 2022-06-28 08:37:18 +00:00
contrib Update ChangeLog and version files for release 2022-06-28 08:37:18 +00:00
fixincludes Update ChangeLog and version files for release 2022-06-28 08:37:18 +00:00
gcc c++: Handle structured bindings like anon unions in initializers [PR108474] 2023-05-03 14:38:59 +02:00
gnattools Update ChangeLog and version files for release 2022-06-28 08:37:18 +00:00
gotools Update ChangeLog and version files for release 2022-06-28 08:37:18 +00:00
include Update ChangeLog and version files for release 2022-06-28 08:37:18 +00:00
INSTALL
intl Update ChangeLog and version files for release 2022-06-28 08:37:18 +00:00
libada Update ChangeLog and version files for release 2022-06-28 08:37:18 +00:00
libatomic Daily bump. 2023-03-04 00:18:05 +00:00
libbacktrace Update ChangeLog and version files for release 2022-06-28 08:37:18 +00:00
libcc1 Update ChangeLog and version files for release 2022-06-28 08:37:18 +00:00
libcpp Daily bump. 2022-08-03 00:17:42 +00:00
libdecnumber Update ChangeLog and version files for release 2022-06-28 08:37:18 +00:00
libffi Update ChangeLog and version files for release 2022-06-28 08:37:18 +00:00
libgcc i386: Call get_available_features for all CPUs with max_level >= 1 [PR100758] 2023-05-03 14:47:47 +02:00
libgfortran Update ChangeLog and version files for release 2022-06-28 08:37:18 +00:00
libgo libgo: don't include <linux/fs.h> when building gen-sysinfo.go 2022-07-21 14:04:38 +02:00
libgomp openmp: Don't try to destruct DECL_OMP_PRIVATIZED_MEMBER vars [PR108180] 2023-05-03 13:49:31 +02:00
libhsail-rt Update ChangeLog and version files for release 2022-06-28 08:37:18 +00:00
libiberty Update ChangeLog and version files for release 2022-06-28 08:37:18 +00:00
libitm Update ChangeLog and version files for release 2022-06-28 08:37:18 +00:00
libobjc Update ChangeLog and version files for release 2022-06-28 08:37:18 +00:00
liboffloadmic Update ChangeLog and version files for release 2022-06-28 08:37:18 +00:00
libphobos Daily bump. 2022-12-14 00:20:21 +00:00
libquadmath Update ChangeLog and version files for release 2022-06-28 08:37:18 +00:00
libsanitizer libsanitizer: cherry-pick 9cf13067cb5088626ba7 from upstream 2022-07-21 14:04:37 +02:00
libssp Update ChangeLog and version files for release 2022-06-28 08:37:18 +00:00
libstdc++-v3 Daily bump. 2023-04-29 00:18:31 +00:00
libvtv Update ChangeLog and version files for release 2022-06-28 08:37:18 +00:00
lto-plugin Update ChangeLog and version files for release 2022-06-28 08:37:18 +00:00
maintainer-scripts Update ChangeLog and version files for release 2022-06-28 08:37:18 +00:00
zlib Update ChangeLog and version files for release 2022-06-28 08:37:18 +00:00
.dir-locals.el
.gitattributes Add *.md diff=md. 2020-01-15 14:29:53 +01:00
.gitignore Add .clang-tidy to git ignored. 2020-11-25 09:00:08 +01:00
ABOUT-NLS
ar-lib
ChangeLog Update ChangeLog and version files for release 2022-06-28 08:37:18 +00:00
ChangeLog.jit
ChangeLog.tree-ssa
compile
config-ml.in MSP430: Add -fno-exceptions multilib 2019-12-11 19:19:50 +00:00
config.guess Update config.sub and config.guess. 2019-09-09 11:14:32 +02:00
config.rpath
config.sub Update config.sub and config.guess. 2019-09-09 11:14:32 +02:00
configure Darwin, configury : Allow for specification and detection of dsymutil. 2022-05-29 20:05:24 +01:00
configure.ac Darwin, configury : Allow for specification and detection of dsymutil. 2022-05-29 20:05:24 +01:00
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
COPYING.RUNTIME
depcomp
install-sh
libtool-ldflags
libtool.m4 Darwin : Update libtool and dependencies for Darwin20 [PR97865] 2021-01-03 09:15:55 +00:00
lt~obsolete.m4
ltgcc.m4
ltmain.sh Do not use HAVE_DOS_BASED_FILE_SYSTEM for Cygwin. 2020-04-17 09:22:51 +02:00
ltoptions.m4
ltsugar.m4
ltversion.m4
MAINTAINERS MAINTAINERS: add myself for write after approval 2020-04-22 09:39:44 +02:00
Makefile.def Darwin, configury : Allow for specification and detection of dsymutil. 2022-05-29 20:05:24 +01:00
Makefile.in Darwin, configury : Allow for specification and detection of dsymutil. 2022-05-29 20:05:24 +01:00
Makefile.tpl Darwin, configury : Allow for specification and detection of dsymutil. 2022-05-29 20:05:24 +01:00
missing
mkdep
mkinstalldirs
move-if-change
multilib.am
README
symlink-tree
test-driver
ylwrap

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the files whose
names start with COPYING for copying permission.  The manuals, and
some of the runtime libraries, are under different terms; see the
individual source files for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs/ for how to report bugs usefully.

Copyright years on GCC source files may be listed using range
notation, e.g., 1987-2012, indicating that every year in the range,
inclusive, is a copyrightable year that could otherwise be listed
individually.