arm-builtins.c: Include profile-count.h
authorJan Hubicka <hubicka@ucw.cz>
Thu, 29 Jun 2017 22:38:30 +0000 (00:38 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 29 Jun 2017 22:38:30 +0000 (22:38 +0000)
* arm/arm-builtins.c: Include profile-count.h
* except.c (sjlj_emit_function_enter): Use
profile_probability::unlikely.

From-SVN: r249821

gcc/ChangeLog
gcc/config/arm/arm-builtins.c
gcc/except.c

index 00431eede65987402a14b94f6feac9c8925e0232..3b0723577ff6bcb653f4fb950153618856f3269c 100644 (file)
@@ -1,3 +1,9 @@
+2017-06-29  Jan Hubicka  <hubicka@ucw.cz>
+
+       * arm/arm-builtins.c: Include profile-count.h
+       * except.c (sjlj_emit_function_enter): Use
+       profile_probability::unlikely.
+
 2017-06-29  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
 
         * config/rs6000/rs6000.c (toc_relative_expr_p): Make tocrel_base
index 8d14e58d916620108f822cbe88a5c377e3535296..8ebdd96d9c7e98a843c1b87122b85e992144ee53 100644 (file)
@@ -27,6 +27,7 @@
 #include "gimple-expr.h"
 #include "memmodel.h"
 #include "tm_p.h"
+#include "profile-count.h"
 #include "optabs.h"
 #include "emit-rtl.h"
 #include "recog.h"
index 4ec2f82eb1f42eb63b2515fd180365d8c59c8004..5709bdbed65449d129b2ac56d0eb61909fc5b2a5 100644 (file)
@@ -1180,7 +1180,8 @@ sjlj_emit_function_enter (rtx_code_label *dispatch_label)
 
       emit_cmp_and_jump_insns (x, const0_rtx, NE, 0,
                               TYPE_MODE (integer_type_node), 0,
-                              dispatch_label, REG_BR_PROB_BASE / 100);
+                              dispatch_label,
+                              profile_probability::unlikely ());
 #else
       expand_builtin_setjmp_setup (addr, dispatch_label);
 #endif