win32: define HAS_BUILTIN_EXPECT on MinGW
authorTomasz Konojacki <me@xenu.pl>
Sun, 12 Aug 2018 23:56:47 +0000 (01:56 +0200)
committerTony Cook <tony@develop-help.com>
Mon, 15 Oct 2018 23:22:11 +0000 (10:22 +1100)
According to perlwin32, the oldest officially supported version of
gcc is 3.4.5. This built-in was introduced in 3.0, which means we
don't have to do any version checks.

[perl #133442]

win32/config.gc
win32/config_H.gc

index 4477ebc..56f367f 100644 (file)
@@ -117,7 +117,7 @@ d_bsdgetpgrp='undef'
 d_bsdsetpgrp='undef'
 d_builtin_add_overflow='undef'
 d_builtin_choose_expr='undef'
-d_builtin_expect='undef'
+d_builtin_expect='define'
 d_builtin_mul_overflow='undef'
 d_builtin_sub_overflow='undef'
 d_c99_variadic_macros='undef'
index 87e90ba..756d4a7 100644 (file)
  *     Can we handle GCC builtin for telling that certain values are more
  *     likely
  */
-/*#define HAS_BUILTIN_EXPECT   / **/
+#define HAS_BUILTIN_EXPECT     /**/
 /*#define HAS_BUILTIN_CHOOSE_EXPR      / **/
 
 /* HAS_C99_VARIADIC_MACROS: