aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSriraman Tallam <tmsriram@google.com>2013-01-02 20:23:38 +0000
committerSriraman Tallam <tmsriram@gcc.gnu.org>2013-01-02 20:23:38 +0000
commit6a7da30fd7edbf7f22c7fad73f5b8e1ee89839b3 (patch)
tree1ba517c36d62ef0a1ed1d819e60f2c2176796cdf /gcc
parent868f97d5fa2ed609a9b76cda188e5f7c10c1e10f (diff)
downloadgcc-6a7da30fd7edbf7f22c7fad73f5b8e1ee89839b3.zip
gcc-6a7da30fd7edbf7f22c7fad73f5b8e1ee89839b3.tar.gz
gcc-6a7da30fd7edbf7f22c7fad73f5b8e1ee89839b3.tar.bz2
Fix bugs in Function Multiversioning.
2013-01-02 Sriraman Tallam <tmsriram@google.com> * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug in loop predicate. (fold_builtin_cpu): Do not share cpu model decls across statements. From-SVN: r194818
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/i386/i386.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4b3834b..95f8d8b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2013-01-02 Sriraman Tallam <tmsriram@google.com>
+
+ * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
+ in loop predicate.
+ (fold_builtin_cpu): Do not share cpu model decls across statements.
+
2013-01-02 Jason Merrill <jason@redhat.com>
PR c++/55804
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 08eb06c..ee2b052 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -29290,7 +29290,7 @@ ix86_get_function_versions_dispatcher (void *decl)
/* Set the dispatcher for all the versions. */
it_v = default_version_info;
- while (it_v->next != NULL)
+ while (it_v != NULL)
{
it_v->dispatcher_resolver = dispatch_decl;
it_v = it_v->next;
@@ -29626,8 +29626,8 @@ fold_builtin_cpu (tree fndecl, tree *args)
{"avx2", F_AVX2}
};
- static tree __processor_model_type = NULL_TREE;
- static tree __cpu_model_var = NULL_TREE;
+ tree __processor_model_type = NULL_TREE;
+ tree __cpu_model_var = NULL_TREE;
if (__processor_model_type == NULL_TREE)
__processor_model_type = build_processor_model_struct ();